latestOpenAPI 3.0.32026-08-227451,2751.8 MB

d0fc0114da66

Insight

Aggregate insight counts by day for a workspace

Returns a daily histogram of insight counts for a workspace over a required created_time window. Counts are bucketed in the requested timezone and grouped by insight type and insight status. Uses a bounded Datastore scan and in-memory aggregation (does not return full insight entities). Maximum allowed window is 60 calendar days in the requested timezone.

get/workspaces/{workspace_id}/insights/aggregate

Path parameters

workspace_idstring required

The workspace (organization) id

Query parameters

created_after_timeinteger required

Inclusive lower bound on created_time (epoch milliseconds)

created_before_timeinteger required

Inclusive upper bound on created_time (epoch milliseconds)

timezonestring

IANA timezone for daily bucket boundaries (e.g., America/Los_Angeles)

environment_idstring

Restricts the aggregate to insights associated with the given environment ID

application_idstring

Restricts the aggregate to insights associated with the given application ID

archivedboolean

Restricts the aggregate to archived or non-archived insights

insight_typestring

Restricts the aggregate to insights of the given type

Response

Daily insight count histogram

timezonestring required

Normalized IANA timezone used for day bucket boundaries