List rules

Prev Next
Get
/v1/triage/rules

Returns the workspace's rules in evaluation order: by evaluation point, then by priority. Each rule is returned without its matcher, which holds the rule's conditions. To read a rule's matcher, use Retrieve a rule.

Security
HTTP
Type bearer
Query parameters
filter.evaluation_point
string

Returns only the rules at this evaluation point. The only evaluation point is "after_verdict".

Valid values[ "after_verdict" ]
filter.enabled
boolean

When true, returns only enabled rules; when false, only disabled rules. Unset returns all rules.

page_size
integer (int32)

The maximum number of rules to retrieve per page. Default is 50. Maximum is 100. If the number of results exceeds the defined page size, use pagination to retrieve the next page by making an identical List rules request and providing the page token from the previous response. Moving or deleting a rule between page requests can make a rule appear twice or not at all; to read a consistent order, read it in one page.

page_token
string

Token received from a previous List rules response. Provide this to retrieve the next page of results.

Responses
200

A successful response.

Expand All
object
rules
Array of object (torq.public.triage.v1.RuleListItem)

The rules returned, in evaluation order.

object

A rule as returned by List rules: every field of the rule except its matcher.

id
string

The unique identifier of the rule.

name
string

The rule name, unique among the workspace's rules and guidance.

description
string

An optional description of the rule.

enabled
boolean

Whether the rule is active. A disabled rule is not evaluated. Always returned, including when false.

priority
integer (int32)

The rule's position in evaluation order within its evaluation point, 1 for first. Positions run from 1 to the number of rules without gaps, counting enabled and disabled rules.

evaluation_point
string

When in triage the rule is evaluated: "after_verdict", once Auto Triage has reached its verdict.

outcome
object (torq.public.triage.v1.RuleOutcome)

What a rule does to an alert it matches: an outcome type, and a config whose shape the type defines. Retrieve rule schemas lists the allowed types and the settings each one takes. Currently the only type is "override_triage_result", which sets the alert's verdict, its severity, or both.

type
string

The outcome type, such as "override_triage_result".

config
object

The outcome's settings, as a JSON object whose fields and values the type's config schema defines. For "override_triage_result": {"verdict": "False Positive", "severity": "Low"}, with at least one of the two.

alerts_matched_last_30_days
integer (int32)

The number of alerts created in the last 30 days that this rule matched. Rules are checked in priority order and checking stops at the first match, so an alert counts only for the first rule that matched it. Approximate: the count is refreshed periodically. Always returned, including when 0.

created_at
string (date-time)

The timestamp when the rule was created.

created_by
object (torq.actor.v1.Actor)

The entity that performed the action.

kind
string

The actor kind. Identifies which actor case is populated. One of: USER, WORKFLOW, INTEGRATION, SERVICE_API_KEY, SOCRATES, TRIAGE, AGENT, BUILDER.

user
object (torq.actor.v1.Actor.User)

User identity information.

email
string

The actor's email address.

full_name
string

The user's full name.

workflow
object (torq.actor.v1.Actor.Workflow)

Workflow execution details.

id
string

The workflow ID.

execution_id
string

The workflow execution ID.

name
string

The workflow name.

integration
object (torq.actor.v1.Actor.Integration)

Integration configuration.

id
string

The integration ID.

type_id
string

The integration type identifier.

service_api_key
object (torq.actor.v1.Actor.ServiceApiKey)

Service account API token information.

name
string

The service account API token name.

client_id
string

The service account API token client ID.

socrates
object (torq.actor.v1.Actor.Socrates)

Original actor information.

original_actor
triage
object (torq.actor.v1.Actor.Triage)

Triage system action.

agent
object (torq.actor.v1.Actor.Agent)

Agent execution details.

id
string

The agent ID.

execution_id
string

The agent execution ID.

builder
object (torq.actor.v1.Actor.Builder)

Workflow Builder acting on behalf of a user.

original_actor
updated_at
string (date-time)

The timestamp when the rule was last updated.

updated_by
object (torq.actor.v1.Actor)

The entity that performed the action.

kind
string

The actor kind. Identifies which actor case is populated. One of: USER, WORKFLOW, INTEGRATION, SERVICE_API_KEY, SOCRATES, TRIAGE, AGENT, BUILDER.

user
object (torq.actor.v1.Actor.User)

User identity information.

email
string

The actor's email address.

full_name
string

The user's full name.

workflow
object (torq.actor.v1.Actor.Workflow)

Workflow execution details.

id
string

The workflow ID.

execution_id
string

The workflow execution ID.

name
string

The workflow name.

integration
object (torq.actor.v1.Actor.Integration)

Integration configuration.

id
string

The integration ID.

type_id
string

The integration type identifier.

service_api_key
object (torq.actor.v1.Actor.ServiceApiKey)

Service account API token information.

name
string

The service account API token name.

client_id
string

The service account API token client ID.

socrates
object (torq.actor.v1.Actor.Socrates)

Original actor information.

original_actor
triage
object (torq.actor.v1.Actor.Triage)

Triage system action.

agent
object (torq.actor.v1.Actor.Agent)

Agent execution details.

id
string

The agent ID.

execution_id
string

The agent execution ID.

builder
object (torq.actor.v1.Actor.Builder)

Workflow Builder acting on behalf of a user.

original_actor
next_page_token
string

When a token is returned, it indicates there is another page of results to retrieve. Pass this token as the page_token parameter in a subsequent List rules request. If this field is empty, there are no additional pages to retrieve.

401

Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token.

object
403

You don't have permission to access this resource.

object