- DateTimeRange
Event that triggers policy evaluation
Type of trigger event
{ "type": "AGENT_CREATED" }
Group of conditions combined with AND/OR logic. Supports agent properties, findings, and runtime detections.
Filter on agent properties (environment, platform, owner, etc.)
Filter on tool properties (for TOOL_INVOCATION trigger)
Filter on findings present on the agent (type, detectedAt)
Filter on runtime detections on the agent
{ "agentFilter": { "__typename": "AgentFilterOutput" }, "toolFilter": { "__typename": "ToolFilterOutput" }, "findingFilter": { "__typename": "FindingFilterOutput" }, "detectionFilter": { "__typename": "DetectionFilterOutput" } }
Action to execute when policy matches. Policy assigns severity based on context - the same finding can result in different severity issues.
Type of action to execute
Parameters for the action
{ "type": "CREATE_ISSUE", "params": { "__typename": "PolicyCreateIssueActionParams" } }
Parameters for CREATE_ISSUE action
Severity to assign when creating an issue (policy decides severity, not the finding)
{ "issueSeverity": "LOW" }
Integer range output type
Minimum value
Maximum value
{ "min": 40, "max": 40 }
DateTime range output type
{ "min": "Example Custom Scalar", "max": "Example Custom Scalar" }
Filter options for policies page including dynamic ranges
Range of issues count across all policies
Range of last executed dates across all policies
{ "issuesCountRange": { "__typename": "IntRange" }, "lastExecutedAtRange": { "__typename": "DateTimeRange" } }
Response type for policies query containing items and total count
List of policies matching the filter
Total count of policies matching the filter (ignoring pagination)
Aggregated statistics for the filtered policies (computed lazily via field resolver)
Implements interfaces
{ "items": [ { "__typename": "Policy" } ], "total": 40, "aggregations": { "__typename": "PolicyAggregations" } }
Result of testing agent-based policy conditions. Shows preview of agents that would be impacted by this policy.
Agents that match the policy conditions
Total number of matching agents
{ "matchingAgents": [ { "__typename": "Agent" } ], "totalMatches": 40 }
Preview of policy impact before applying changes. Shows matching entities.
Entities that match the policy conditions
{ "matchingEntities": [ { "__typename": "MatchingEntityGroup" } ] }
AI-generated policy metadata (title and description)
AI-generated title for the policy (5-8 words)
AI-generated description explaining what this policy does (1-3 sentences)
{ "title": "Example String", "description": "Example String" }