Lewati ke konten

Alarms; group=pon|odp for grouped rows; since; limit/cursor.

GET
/alarms
curl --request GET \
--url https://example.com/api/v1/alarms \
--header 'Authorization: Bearer <token>'
status
string

ONUs: online|offline|warning. Alarms: active|cleared|all (default active).

state
string

Alarms: same as status.

severity
string

Critical|major|minor|warning.

type
string

Alarm type.

olt_id
integer

Only this OLT.

since
string

ISO 8601: alarms seen or cleared at or after this time.

group
string

Pon|odp.

limit
integer

1–200, default 50. Switches to cursor pagination.

cursor
string

Meta.next_cursor of the previous page (opaque).

page
integer

Page number (page mode).

per_page
integer

1–200 (page mode).

OK

Media typeapplication/json
object
data
required
Array
One of:
object
id
required
integer
olt_id
required
integer
olt_name
string | null
type
required
string
type_label
string
severity
required
string
Allowed values: critical major minor warning
status
required
string
Allowed values: active cleared
scope
string | null
slot
integer | null
port
integer | null
onu_id
integer | null
onu
required

Stable ONU id (same as /onus).

string | null
serial_number
string | null
customer_name
string | null
message
string | null
first_seen_at
required
string | null format: date-time
last_seen_at
required
string | null format: date-time
cleared_at
string | null format: date-time
target
object | null
links
required
object
ui
required
string | null format: uri
meta
required
object
observed_at
required
string | null format: date-time
stale
required
boolean
count
required
integer
next_cursor
string | null
group
string | null
truncated
boolean
total
integer

Example

{
"data": [
{
"severity": "critical",
"status": "active"
}
]
}

No token, expired (code token_expired) or unknown token.

Media typeapplication/json
object
message
required
string
code
string

Example generated

{
"message": "example",
"code": "example"
}

Service_token_required, ip_not_allowed or scope_missing.

Media typeapplication/json
object
message
required
string
code
string

Example generated

{
"message": "example",
"code": "example"
}

Not found, or belongs to another organisation.

Media typeapplication/json
object
message
required
string
code
string

Example generated

{
"message": "example",
"code": "example"
}

Rate limit of the token; see Retry-After.

Media typeapplication/json
object
message
required
string
code
string

Example generated

{
"message": "example",
"code": "example"
}