Probe history

目次

Probe history#

get_probe_history_agent{agent_id}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/agent/{agent_id}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/agent/{agent_id}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/agent/{agent_id}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/agent/{agent_id}/from/{start_time}/to/{end_time}/{probe_id}

エージェントのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

agent_id

path

integer

true

エージェントID

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe_history_server{server_id}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/server/{server_id}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/server/{server_id}/from/{start_time}/to/{end_time}/{probe_id}

サーバーのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

サーバーID

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe_history_server{server_id}database{database_name}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/server/{server_id}/database/{database_name}/from/{start_time}/to/{end_time}/{probe_id}

データベースのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

サーバーID

database_name

path

string

true

データベース名

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe_history_server{server_id}database{database_name}schema{schema_name}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/from/{start_time}/to/{end_time}/{probe_id}

スキーマのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

サーバーID

database_name

path

string

true

データベース名

schema_name

path

string

true

スキーマ名

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe_history_server{server_id}database{database_name}schema{schema_name}table{table_name}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/table/{table_name}/from/{start_time}/to/{end_time}/{probe_id}

テーブルのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

サーバーID

database_name

path

string

true

データベース名

schema_name

path

string

true

スキーマ名

table_name

path

string

true

テーブル名

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe_history_server{server_id}database{database_name}schema{schema_name}index{index_name}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/index/{index_name}/from/{start_time}/to/{end_time}/{probe_id}

インデックスのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

サーバーID

database_name

path

string

true

データベース名

schema_name

path

string

true

スキーマ名

index_name

path

string

true

インデックス名

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe_history_server{server_id}database{database_name}schema{schema_name}sequence{sequence_name}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/sequence/{sequence_name}/from/{start_time}/to/{end_time}/{probe_id}

シーケンスのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

サーバーID

database_name

path

string

true

データベース名

schema_name

path

string

true

スキーマ名

sequence_name

path

string

true

シークエンス名

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe_history_server{server_id}database{database_name}schema{schema_name}view{view_name}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/view/{view_name}/from/{start_time}/to/{end_time}/{probe_id}

ビューのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

サーバーID

database_name

path

string

true

データベース名

schema_name

path

string

true

スキーマ名

view_name

path

string

true

ビュー名

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe_history_server{server_id}database{database_name}schema{schema_name}function{function_name}from{start_time}to{end_time}_{probe_id}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/from/{start_time}/to/{end_time}/{probe_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/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/from/{start_time}/to/{end_time}/{probe_id}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/from/{start_time}/to/{end_time}/{probe_id}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/history/server/{server_id}/database/{database_name}/schema/{schema_name}/function/{function_name}/from/{start_time}/to/{end_time}/{probe_id}

ファンクションのProbe history を取得します。

パラメーター#

Name

In

Type

Required

Description

server_id

path

integer

true

サーバーID

database_name

path

string

true

データベース名

schema_name

path

string

true

スキーマ名

function_name

path

string

true

ファンクション名

start_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の開始時間

end_time

path

string

true

プローブ履歴を取得するためのISO-8601形式の終了時間

probe_id

path

integer

true

データが返されるプローブID

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

レスポンススキーマ#

注釈

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

get_probe{probe_id}history_from{start_time}to{end_time}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/{probe_id}/history/from/{start_time}/to/{end_time} \
  -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/pem/api/v17/probe/{probe_id}/history/from/{start_time}/to/{end_time}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/{probe_id}/history/from/{start_time}/to/{end_time}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/{probe_id}/history/from/{start_time}/to/{end_time}

指定された時間範囲内の指定されたプローブIDのpemhistoryスキーマから履歴プローブデータを結果ます。

resume_history = trueの場合、空のリストを返します。 RBAC データエンドポイントと同じ。

パラメーター#

Name

In

Type

Required

Description

probe_id

path

integer

true

数値プローブID

start_time

path

string

true

Recorded_timeの下限両端を含みます。 ISO 8601タイムスタンプ YYYY-MM-DD<sep>HH:MM:SS[.ffffff][TZ]、 <sep>`は`T`またはスペースであり、オプションの`TZ`は`Z、±HH、または`±HH:MM`です。例 2024-01-01T00:00:00Z、2024-01-01 00:00:00+00 PostgreSQLのデフォルト。

end_time

path

string

true

Recorded_timeの上限値を含みます。 ISO 8601タイムスタンプ YYYY-MM-DD<sep>HH:MM:SS[.ffffff][TZ]、 <sep>`は`T`またはスペースであり、オプションの`TZ`は`Z、±HH、または`±HH:MM`です。例 2024-12-31T23:59:59Z、2024-12-31 23:59:59+00 PostgreSQLのデフォルト。

server_id

query

integer

false

サーバーIDでフィルターしますサーバーレベルのプローブのみ。 RBACを適用します。

offset

query

integer

false

スキップする行。オフセットがない場合は省略します。

pageSize

query

integer

false

返される最大行数1〜1000。 allを返すのを省略します。

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

400

Bad Request

不正な要求 — 無効なパラメーター

None

404

Not Found

プローブが見つからない、またはサーバーにアクセスできません

None

500

Internal Server Error

内部サーバーエラー

None

レスポンススキーマ#

注釈

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

get_probe{internal_name}history_from{start_time}to{end_time}#

コードサンプル

#  You can also use wget

curl -X GET https://PEM-SERVER-IP/pem/api/v17/probe/{internal_name}/history/from/{start_time}/to/{end_time} \
  -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/pem/api/v17/probe/{internal_name}/history/from/{start_time}/to/{end_time}, headers = headers)

print(r.json())
const headers = {
  Accept: "application/json",
  "X-Auth-Token": "string",
};

fetch(
  "https://PEM-SERVER-IP/pem/api/v17/probe/{internal_name}/history/from/{start_time}/to/{end_time}",
  {
    method: "GET",

    headers: headers,
  },
)
  .then(function (res) {
    return res.json();
  })
  .then(function (body) {
    console.log(body);
  });

GET /probe/{internal_name}/history/from/{start_time}/to/{end_time}

指定された時間範囲内の指定されたプローブinternal_nameのpemhistoryスキーマからプローブ履歴データを結果ます。

/probe/{probe_id}/history/…と同等ですが、internal_nameでアドレス指定されます。

パラメーター#

Name

In

Type

Required

Description

internal_name

path

string

true

プローブの内部名たとえばserver_info、cpu_usage

start_time

path

string

true

Recorded_timeの下限両端を含みます。 ISO 8601タイムスタンプ YYYY-MM-DD<sep>HH:MM:SS[.ffffff][TZ]、 <sep>`は`T`またはスペースであり、オプションの`TZ`は`Z、±HH、または`±HH:MM`です。例 2024-01-01T00:00:00Z、2024-01-01 00:00:00+00 PostgreSQLのデフォルト。

end_time

path

string

true

Recorded_timeの上限値を含みます。 ISO 8601タイムスタンプ YYYY-MM-DD<sep>HH:MM:SS[.ffffff][TZ]、 <sep>`は`T`またはスペースであり、オプションの`TZ`は`Z、±HH、または`±HH:MM`です。例 2024-12-31T23:59:59Z、2024-12-31 23:59:59+00 PostgreSQLのデフォルト。

server_id

query

integer

false

サーバーIDでフィルターしますサーバーレベルのプローブのみ。 RBACを適用します。

offset

query

integer

false

スキップする行。オフセットがない場合は省略します。

pageSize

query

integer

false

返される最大行数1〜1000。 allを返すのを省略します。

X-Auth-Token

header

string

true

承認トークン

応答例

[{}]

応答#

Status

Meaning

Description

Schema

200

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

成功した応答

Inline

400

Bad Request

不正な要求 — 無効なパラメーター

None

404

Not Found

プローブが見つからない、またはサーバーにアクセスできません

None

500

Internal Server Error

内部サーバーエラー

None

レスポンススキーマ#

注釈

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