@agentpulselabs/insights-client
v1.7.3
Published
Typed AppBridge client for the insights app.
Readme
@agentpulselabs/insights-client
Typed AppBridge client for the insights app. Bridge-injected — no runtime dependency on insights or @agentpulse/platform.
Install
npm i @agentpulselabs/insights-clientUsage
import { createClient } from '@agentpulselabs/insights-client';
const insights = createClient(Platform.Bridge);
const result = await insights.widgetActivity(payload);Operations (Insights)
| Method | Op | Summary |
| --- | --- | --- |
| widgetActivity | widget:activity | The team's audit actions per day over 14 days and its top actions over 7 (home widget). |
| widgetJob_failures | widget:job_failures | Failed share of the jobs finished in the last 7 days, with a daily spark (home widget). |
| widgetJobs_by_state | widget:jobs_by_state | Jobs created in the last 7 days, by state (home widget). |
| widgetStale_dashboards | widget:stale_dashboards | Up to four team dashboards unchanged for 30 days or more, oldest first (home widget). |
