Alerts Status#
get_alert_status#
コードサンプル
# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v14/alert/status/ \
-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/status/, headers = headers)
print(r.json())
const headers = {
Accept:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/alert/status/,
{
method: GET,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /alert/status/
すべてのアラートの現在のステータスを取得します。
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
X-Auth-Token |
header |
string |
true |
承認トークン |
応答例
[
{
"alert_since": "string",
"alert_id": 0,
"alert_name": "string",
"alert_state": "High",
"value": "string",
"object_description": "string",
"server_id": 0,
"agent_id": 0,
"database": "string",
"schema": "string",
"package": "string",
"object": "string",
"alert_target_level": "Global",
"last_processed": "string",
"info": "string",
"info_cols": [
"string"
],
"info_vals": [
[
"string"
]
]
}
]
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
成功した応答 |
Inline |
レスポンススキーマ#
ステータスコード 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
false |
none |
なし |
|
» alert_since |
string |
false |
none |
アラート状態が最後に変更されたUnix時間 |
» alert_id |
integer |
false |
none |
アラート内部識別番号 |
» alert_name |
string |
false |
none |
アラートの名前 |
» alert_state |
string |
false |
none |
アラートの現在の状態。 'null'値は、アラートのアラートしきい値が現在違反していないことを示します。 |
» value |
string |
false |
none |
アラートの現在値 |
» object_description |
string |
false |
none |
モニタリングオブジェクトの説明/名前 |
» server_id |
integer |
false |
none |
nullまたはサーバーのID |
» agent_id |
integer |
false |
none |
nullまたはエージェントのID |
» database |
string |
false |
none |
nullまたはデータベースの名前 |
» schema |
string |
false |
none |
nullまたはスキーマ/名前空間の名前 |
» package |
string |
false |
none |
nullまたはEDBパッケージの名前 |
» object |
string |
false |
none |
nullまたは他の種類のオブジェクトの名前 |
» alert_target_level |
string |
false |
none |
警戒対象レベル |
» last_processed |
string |
false |
none |
アラートが処理されたUnix時間を表す文字列 |
» info |
string |
false |
none |
アラートが生成された時点の情報 |
» info_cols |
[string] |
false |
none |
情報の列名の配列 |
» info_vals |
[array] |
false |
none |
テーブル形式のアラートに関連付けられた詳細情報配列の配列 |
列挙値#
Property |
Value |
|---|---|
alert_state |
High |
alert_state |
Medium |
alert_state |
Low |
alert_target_level |
Global |
alert_target_level |
Agent |
alert_target_level |
Server |
alert_target_level |
Database |
alert_target_level |
Schema |
alert_target_level |
Table |
alert_target_level |
Index |
alert_target_level |
Sequence |
alert_target_level |
Function |
alert_target_level |
View |
注釈
この操作には認証が必要ありません
get_alert_status{since}#
コードサンプル
# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v14/alert/status/{since} \
-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/status/{since}, headers = headers)
print(r.json())
const headers = {
Accept:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/alert/status/{since},
{
method: GET,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /alert/status/{since}
指定された時間後のアラート状態の変更のリストを取得します。
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
since |
path |
number |
true |
Unixタイムライン |
X-Auth-Token |
header |
string |
true |
承認トークン |
応答例
{
"alert_since": "string",
"alert_id": 0,
"alert_name": "string",
"alert_state": "High",
"value": "string",
"object_description": "string",
"server_id": 0,
"agent_id": 0,
"database": "string",
"schema": "string",
"package": "string",
"object": "string",
"alert_target_level": "Global",
"last_processed": "string",
"info": "string",
"info_cols": [
"string"
],
"info_vals": [
[
"string"
]
]
}
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
成功した応答 |
注釈
この操作には認証が必要ありません