EDB Postgres Enterprise Manager REST APIs v4.0: Alerts History v10.2

get__alert_history_

Code samples

GET /alert/history/

Gets the state change history of all the alerts.

Parameters

NameInTypeRequiredDescription
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "alert_id": 0,
    "state": "High",
    "value": "string",
    "actual_value": 0
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[AlertHistory]falsenonenone
» alert_idintegerfalsenoneAlert ID
» statestringfalsenoneState
» valuestringfalsenoneUser presentable value
» actual_valuenumberfalsenoneActual value at the time of state change.
Enumerated Values
PropertyValue
stateHigh
stateMedium
stateLow
Info

This operation does not require authentication

get__alert_history_agent_{agent_id}

Code samples

GET /alert/history/agent/{agent_id}

Gets the state change history of all the alerts for the agent.

Parameters

NameInTypeRequiredDescription
agent_idpathintegertrueValid Agent ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "alert_id": 0,
    "state": "High",
    "value": "string",
    "actual_value": 0
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[AlertHistory]falsenonenone
» alert_idintegerfalsenoneAlert ID
» statestringfalsenoneState
» valuestringfalsenoneUser presentable value
» actual_valuenumberfalsenoneActual value at the time of state change.
Enumerated Values
PropertyValue
stateHigh
stateMedium
stateLow
Info

This operation does not require authentication

get__alert_history_server_{server_id}

Code samples

GET /alert/history/server/{server_id}

Gets the state change history of all the alerts for the databae server.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueValid Server ID
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "alert_id": 0,
    "state": "High",
    "value": "string",
    "actual_value": 0
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[AlertHistory]falsenonenone
» alert_idintegerfalsenoneAlert ID
» statestringfalsenoneState
» valuestringfalsenoneUser presentable value
» actual_valuenumberfalsenoneActual value at the time of state change.
Enumerated Values
PropertyValue
stateHigh
stateMedium
stateLow
Info

This operation does not require authentication

get__alert_history_server_{server_id}_database_{database_name}

Code samples

GET /alert/history/server/{server_id}/database/{database_name}

Gets the state change history of all the alerts for the database of the databae server.

Parameters

NameInTypeRequiredDescription
server_idpathintegertrueValid Server ID
database_namepathstringtrueDatabase name
X-Auth-TokenheaderstringtrueToken of authorization

Example responses

200 Response
[
  {
    "alert_id": 0,
    "state": "High",
    "value": "string",
    "actual_value": 0
  }
]

Responses

StatusMeaningDescriptionSchema
200OKSuccessful responseInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
anonymous[AlertHistory]falsenonenone
» alert_idintegerfalsenoneAlert ID
» statestringfalsenoneState
» valuestringfalsenoneUser presentable value
» actual_valuenumberfalsenoneActual value at the time of state change.
Enumerated Values
PropertyValue
stateHigh
stateMedium
stateLow
Info

This operation does not require authentication