コンテンツにスキップ

list_event_rules

GET
/api/v1/event-rules
curl --request GET \
--url https://example.com/api/v1/event-rules \
--header 'Authorization: Bearer <token>'
node_id
string format: uuid

Keep only the rules that reach this node: rules on every node, on one of the node’s folders, and on the node itself.

The stored event rules, or with node_id the ones that reach that node

Media typeapplication/json
Array<object>

A stored event rule (API shape; the engine compiles enabled ones).

object
clear_pattern
string | null
created_at
required
string format: date-time
enabled
required
boolean
group_id

A folder: the rule applies to every node in it and in the folders below it (ADR-232). Never set together with node_id; neither set means every node.

string | null format: uuid
id
required
string format: uuid
match_kind
required

How a rule’s pattern is matched against the event text.

string
Allowed values: substring regex unknown
min_count
required
integer format: int32
name
required
string
node_id
string | null format: uuid
pattern
required
string
severity
required

How serious an alert is. Variants are declared low → high so the derived Ord ranks Unreachable above Critical above Warning above Info.

🚨 A new variant goes at the end only if it is the new top. The order is the ranking, the OpenAPI enum lists the variants in this order, and the WebUI’s SEVERITIES array mirrors it.

string
Allowed values: info warning critical unreachable
source_id
string | null format: uuid
source_kind
string | null
ttl_secs
required
integer format: int32
window_secs
required
integer format: int32
Example
[
{
"match_kind": "substring",
"severity": "info"
}
]

No valid bearer token

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks ManageConfig

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

This core has no write side (skeleton mode)

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}