Alerts History#
get_alert_history#
Code samples
# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v14/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/v14/alert/history/, headers = headers)
print(r.json())
const headers = {
Accept:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/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
[
{
"alert_id": 0,
"state": "High",
"value": "string",
"actual_value": 0
}
]
Responses#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
Successful response |
Inline |
Response Schema#
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
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 |
Note
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/v14/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/v14/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/v14/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
[
{
"alert_id": 0,
"state": "High",
"value": "string",
"actual_value": 0
}
]
Responses#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
Successful response |
Inline |
Response Schema#
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
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 |
Note
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/v14/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/v14/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/v14/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 database 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
[
{
"alert_id": 0,
"state": "High",
"value": "string",
"actual_value": 0
}
]
Responses#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
Successful response |
Inline |
Response Schema#
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
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 |
Note
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/v14/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/v14/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/v14/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 database 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
[
{
"alert_id": 0,
"state": "High",
"value": "string",
"actual_value": 0
}
]
Responses#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
Successful response |
Inline |
Response Schema#
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
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 |
Note
This operation does not require authentication