EDB Postgres Enterprise Manager REST APIs v6.0: Alerts History v10.2
get__alert_history_
Code samples
# You can also use wget curl -X GET https://PEM-SERVER-IP/api/v6/alert/history/ \ -H 'Accept: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Accept': 'application/json', 'X-Auth-Token': 'string' } r = requests.get('https://PEM-SERVER-IP/api/v6/alert/history/', headers = headers) print(r.json())
const headers = { 'Accept':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v6/alert/history/', { method: 'GET', headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
GET /alert/history/
Gets the state change history of all the alerts.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ { "alert_id": 0, "state": "High", "value": "string", "actual_value": 0 } ]
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [AlertHistory] | false | none | none |
» alert_id | integer | false | none | Alert ID |
» state | string | false | none | State |
» value | string | false | none | User presentable value |
» actual_value | number | false | none | Actual value at the time of state change. |
Enumerated Values
Property | Value |
---|---|
state | High |
state | Medium |
state | Low |
Info
This operation does not require authentication
get__alert_history_agent_{agent_id}
Code samples
# You can also use wget curl -X GET https://PEM-SERVER-IP/api/v6/alert/history/agent/{agent_id} \ -H 'Accept: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Accept': 'application/json', 'X-Auth-Token': 'string' } r = requests.get('https://PEM-SERVER-IP/api/v6/alert/history/agent/{agent_id}', headers = headers) print(r.json())
const headers = { 'Accept':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v6/alert/history/agent/{agent_id}', { method: 'GET', headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
GET /alert/history/agent/{agent_id}
Gets the state change history of all the alerts for the agent.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
agent_id | path | integer | true | Valid Agent ID |
X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ { "alert_id": 0, "state": "High", "value": "string", "actual_value": 0 } ]
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [AlertHistory] | false | none | none |
» alert_id | integer | false | none | Alert ID |
» state | string | false | none | State |
» value | string | false | none | User presentable value |
» actual_value | number | false | none | Actual value at the time of state change. |
Enumerated Values
Property | Value |
---|---|
state | High |
state | Medium |
state | Low |
Info
This operation does not require authentication
get__alert_history_server_{server_id}
Code samples
# You can also use wget curl -X GET https://PEM-SERVER-IP/api/v6/alert/history/server/{server_id} \ -H 'Accept: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Accept': 'application/json', 'X-Auth-Token': 'string' } r = requests.get('https://PEM-SERVER-IP/api/v6/alert/history/server/{server_id}', headers = headers) print(r.json())
const headers = { 'Accept':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v6/alert/history/server/{server_id}', { method: 'GET', headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
GET /alert/history/server/{server_id}
Gets the state change history of all the alerts for the databae server.
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Valid Server ID |
X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ { "alert_id": 0, "state": "High", "value": "string", "actual_value": 0 } ]
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [AlertHistory] | false | none | none |
» alert_id | integer | false | none | Alert ID |
» state | string | false | none | State |
» value | string | false | none | User presentable value |
» actual_value | number | false | none | Actual value at the time of state change. |
Enumerated Values
Property | Value |
---|---|
state | High |
state | Medium |
state | Low |
Info
This operation does not require authentication
get__alert_history_server_{server_id}_database_{database_name}
Code samples
# You can also use wget curl -X GET https://PEM-SERVER-IP/api/v6/alert/history/server/{server_id}/database/{database_name} \ -H 'Accept: application/json' \ -H 'X-Auth-Token: string'
import requests headers = { 'Accept': 'application/json', 'X-Auth-Token': 'string' } r = requests.get('https://PEM-SERVER-IP/api/v6/alert/history/server/{server_id}/database/{database_name}', headers = headers) print(r.json())
const headers = { 'Accept':'application/json', 'X-Auth-Token':'string' }; fetch('https://PEM-SERVER-IP/api/v6/alert/history/server/{server_id}/database/{database_name}', { method: 'GET', headers: headers }) .then(function(res) { return res.json(); }).then(function(body) { console.log(body); });
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
Name | In | Type | Required | Description |
---|---|---|---|---|
server_id | path | integer | true | Valid Server ID |
database_name | path | string | true | Database name |
X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ { "alert_id": 0, "state": "High", "value": "string", "actual_value": 0 } ]
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Successful response | Inline |
Response Schema
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
anonymous | [AlertHistory] | false | none | none |
» alert_id | integer | false | none | Alert ID |
» state | string | false | none | State |
» value | string | false | none | User presentable value |
» actual_value | number | false | none | Actual value at the time of state change. |
Enumerated Values
Property | Value |
---|---|
state | High |
state | Medium |
state | Low |
Info
This operation does not require authentication