Alerts operations

Alert rules.

Each operation below is reachable at POST /v1/op/{operation_id} or the resource path POST /v1/{resource}/{action}, with a Bearer token (a gpra_ API key or a session token). Back to the Operations Reference index.

alerts.acknowledge_event

Mark an alert event acknowledged (org-scoped).

Scopealerts:write
Side-effectcompute
HTTPPOST /v1/op/alerts.acknowledge_event · POST /v1/alerts/acknowledge_event
Python / TypeScriptclient.alerts.acknowledge_event(…)
CLIgeopera alerts acknowledge-event …

Request — AcknowledgeEventInput

FieldTypeRequiredDescription
event_idstringyes

Response — AlertEventOutput.

alerts.create_rule

Create an alert rule for the caller’s organization.

Scopealerts:write
Side-effectcompute
HTTPPOST /v1/op/alerts.create_rule · POST /v1/alerts/create_rule
Python / TypeScriptclient.alerts.create_rule(…)
CLIgeopera alerts create-rule …

Request — CreateAlertRuleInput

FieldTypeRequiredDescription
namestringyes
descriptionstring—
collection_idstring—
event_typesarray of string—
expressionstringyes
comparisonstringyes
thresholdnumberyes
threshold_uppernumber—
asset_keystring—
band_mappingobject—
notification_channelsarray of string—
cooldown_minutesinteger—

Response — AlertRuleOutput.

alerts.delete_rule

Delete an alert rule (org-scoped).

Scopealerts:write
Side-effectdestructive
HTTPPOST /v1/op/alerts.delete_rule · POST /v1/alerts/delete_rule
Python / TypeScriptclient.alerts.delete_rule(…)
CLIgeopera alerts delete-rule …

Request — DeleteAlertRuleInput

FieldTypeRequiredDescription
rule_idstringyes

Response — DeleteAlertRuleOutput.

alerts.events.list

List the caller’s organization’s alert events (org-scoped, triggered_at desc).

Scopealerts:read
Side-effectread
HTTPPOST /v1/op/alerts.events.list · POST /v1/alerts/events/list
Python / TypeScriptclient.alerts.events.list(…)
CLIgeopera alerts events list …

Request — AlertEventsListInput

FieldTypeRequiredDescription
rule_idstring—
acknowledgedboolean—
limitinteger—
offsetinteger—

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

alerts.rule.get

Get a single alert rule by id (org-scoped; 404 cross-org).

Scopealerts:read
Side-effectread
HTTPPOST /v1/op/alerts.rule.get · POST /v1/alerts/rule/get
Python / TypeScriptclient.alerts.rule.get(…)
CLIgeopera alerts rule get …

Request — AlertRuleGetInput

FieldTypeRequiredDescription
rule_idstringyes

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

alerts.rules.list

List the caller’s organization’s alert rules (org-scoped).

Scopealerts:read
Side-effectread
HTTPPOST /v1/op/alerts.rules.list · POST /v1/alerts/rules/list
Python / TypeScriptclient.alerts.rules.list(…)
CLIgeopera alerts rules list …

Request — AlertRulesListInput

FieldTypeRequiredDescription
activeboolean—
collection_idstring—

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

alerts.test_rule

Test-evaluate an alert rule against an item without persisting.

Scopealerts:read
Side-effectread
HTTPPOST /v1/op/alerts.test_rule · POST /v1/alerts/test_rule
Python / TypeScriptclient.alerts.test_rule(…)
CLIgeopera alerts test-rule …

Request — TestAlertRuleInput

FieldTypeRequiredDescription
rule_idstringyes
item_idstringyes

Response — TestAlertRuleOutput.

alerts.update_rule

Update an alert rule (org-scoped).

Scopealerts:write
Side-effectcompute
HTTPPOST /v1/op/alerts.update_rule · POST /v1/alerts/update_rule
Python / TypeScriptclient.alerts.update_rule(…)
CLIgeopera alerts update-rule …

Request — UpdateAlertRuleInput

FieldTypeRequiredDescription
rule_idstringyes
namestring—
descriptionstring—
collection_idstring—
event_typesarray of string—
expressionstring—
comparisonstring—
thresholdnumber—
threshold_uppernumber—
asset_keystring—
band_mappingobject—
notification_channelsarray of string—
activeboolean—
cooldown_minutesinteger—

Response — AlertRuleOutput.