SDK Examples
SDKs wrap the REST and Event APIs with typed clients, auth handling, retries, and pagination so you can integrate in a few lines instead of hand-rolling HTTP.
Install#
pip install applicare # Python
npm install @applicare/sdk # Node.js
go get github.com/arcturustech/applicare-go # GoPython example#
from applicare import Client
arc = Client(base_url="https://applicare.yourco.com", token=ARC_TOKEN)
# query a metric
latency = arc.metrics.query("service.latency.p95",
service="checkout-api", frm="-1h")
# stream events
for ev in arc.events.stream(types=["alert", "incident"]):
print(ev.type, ev.entity, ev.severity)Node.js example#
import { Client } from "@applicare/sdk";
const arc = new Client({ baseUrl, token });
const alerts = await arc.alerts.list({ tag: "env:prod" });
for await (const ev of arc.events.stream({ types: ["alert"] })) {
console.log(ev.type, ev.entity);
}Each client handles auth, retries with backoff, and cursor pagination automatically.
Was this page helpful?
Can't find what you need?
Ask ArcIn or reach our support engineers.