API

AlertRuleEvent

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id}/acknowledge create Success
POST /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id}/resolve create Success
POST /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id}/silence create Success
POST /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events create Success
GET /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id} load Success
GET /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events load Success
DELETE /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id} remove Success

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

alert_rule_event, err := client.AlertRuleEvent(nil).Load(map[string]any{"alert_rule_id": "example", "space_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(alert_rule_event)
created, err := client.AlertRuleEvent(nil).Create(map[string]any{"alert_rule_id": "example", "space_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
removed, err := client.AlertRuleEvent(nil).Remove(map[string]any{"alert_rule_id": "example", "id": "example_id", "space_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local alert_rule_event, err = client:AlertRuleEvent():load({ alert_rule_id = "example", space_id = "example" })
local created, err = client:AlertRuleEvent():create({ alert_rule_id = "example", space_id = "example" })
local removed, err = client:AlertRuleEvent():remove({ alert_rule_id = "example", id = "example_id", space_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$alert_rule_event = $client->AlertRuleEvent()->load(["alert_rule_id" => "example", "space_id" => "example"]);
$created = $client->AlertRuleEvent()->create(["alert_rule_id" => "example", "space_id" => "example"]);
$client->AlertRuleEvent()->remove(["alert_rule_id" => "example", "id" => "example_id", "space_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

alert_rule_event = client.AlertRuleEvent().load({"alert_rule_id": "example", "space_id": "example"})
created = client.AlertRuleEvent().create({ "alert_rule_id": "example", "space_id": "example" })
client.AlertRuleEvent().remove({"alert_rule_id": "example", "id": "example_id", "space_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

alert_rule_event = client.AlertRuleEvent.load({ "alert_rule_id" => "example", "space_id" => "example" })
created = client.AlertRuleEvent.create({ "alert_rule_id" => "example", "space_id" => "example" })
client.AlertRuleEvent.remove({ "alert_rule_id" => "example", "id" => "example_id", "space_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const alert_rule_event = await client.AlertRuleEvent().load({ alert_rule_id: "example", space_id: "example" })
const created = await client.AlertRuleEvent().create({ alert_rule_id: "example", space_id: "example" })
await client.AlertRuleEvent().remove({ alert_rule_id: "example", id: "example_id", space_id: "example" })

Fields

Field Type Required Description
id string No Id

create

POST /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id}/acknowledge

Operation ID: acknowledge_api_v1_space_alert_rule_event.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
alert_rule_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id}/resolve

Operation ID: resolve_api_v1_space_alert_rule_event.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
alert_rule_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id}/silence

Operation ID: silence_api_v1_space_alert_rule_event.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
alert_rule_id path string Yes
id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

POST /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events

Operation ID: post_api_v1_observability_spaces_space_id_alert_rules_alert_rule_id_events.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
alert_rule_id path string Yes

Request body

application/json

The request body is object.

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

load

GET /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id}

Operation ID: api_v1_space_alert_rule_event.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
alert_rule_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events

Operation ID: api_v1_space_alert_rule_events.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
alert_rule_id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/observability/spaces/{space_id}/alert_rules/{alert_rule_id}/events/{id}

Operation ID: delete_api_v1_observability_spaces_space_id_alert_rules_alert_rule_id_events_id_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
space_id path string Yes
alert_rule_id path string Yes
id path string Yes

Responses

200: Success

application/json

The response is object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway