Alerts History#

get_alert_history#

コードサンプル

#  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/

すべてのアラートの状態変更履歴を取得します。

パラメーター#

Name

In

Type

Required

Description

X-Auth-Token

header

string

true

承認トークン

応答例

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

応答#

Status

Meaning

Description

Schema

200

コマンドラインからのサーバーインストーラーの呼び出し

成功した応答

Inline

レスポンススキーマ#

ステータスコード 200

Name

Type

Required

Restrictions

Description

anonymous

Query information ]

false

none

なし

» alert_id

integer

false

none

アラートID

» state

string

false

none

州

» value

string

false

none

ユーザーに提示できる価値

» actual_value

number

false

none

状態変更時の実際の値

列挙値#

Property

Value

state

High

state

Medium

state

Low

注釈

この操作には認証が必要ありません

get_alert_history_agent{agent_id}#

コードサンプル

#  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}

エージェントのすべてのアラートの状態変更履歴を取得します。

パラメーター#

Name

In

Type

Required

Description

agent_id

path

integer

true

有効なエージェントID

X-Auth-Token

header

string

true

承認トークン

応答例

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

応答#

Status

Meaning

Description

Schema

200

コマンドラインからのサーバーインストーラーの呼び出し

成功した応答

Inline

レスポンススキーマ#

ステータスコード 200

Name

Type

Required

Restrictions

Description

anonymous

Query information ]

false

none

なし

» alert_id

integer

false

none

アラートID

» state

string

false

none

州

» value

string

false

none

ユーザーに提示できる価値

» actual_value

number

false

none

状態変更時の実際の値

列挙値#

Property

Value

state

High

state

Medium

state

Low

注釈

この操作には認証が必要ありません

get_alert_history_server{server_id}#

コードサンプル

#  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}

データベースサーバーのすべてのアラートの状態変更履歴を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

有効なサーバーID

X-Auth-Token

header

string

true

承認トークン

応答例

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

応答#

Status

Meaning

Description

Schema

200

コマンドラインからのサーバーインストーラーの呼び出し

成功した応答

Inline

レスポンススキーマ#

ステータスコード 200

Name

Type

Required

Restrictions

Description

anonymous

Query information ]

false

none

なし

» alert_id

integer

false

none

アラートID

» state

string

false

none

州

» value

string

false

none

ユーザーに提示できる価値

» actual_value

number

false

none

状態変更時の実際の値

列挙値#

Property

Value

state

High

state

Medium

state

Low

注釈

この操作には認証が必要ありません

get_alert_history_server{server_id}database{database_name}#

コードサンプル

#  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}

データベースサーバーのデータベースのすべてのアラートの状態変更履歴を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

有効なサーバーID

database_name

path

string

true

データベース名

X-Auth-Token

header

string

true

承認トークン

応答例

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

応答#

Status

Meaning

Description

Schema

200

コマンドラインからのサーバーインストーラーの呼び出し

成功した応答

Inline

レスポンススキーマ#

ステータスコード 200

Name

Type

Required

Restrictions

Description

anonymous

Query information ]

false

none

なし

» alert_id

integer

false

none

アラートID

» state

string

false

none

州

» value

string

false

none

ユーザーに提示できる価値

» actual_value

number

false

none

状態変更時の実際の値

列挙値#

Property

Value

state

High

state

Medium

state

Low

注釈

この操作には認証が必要ありません