get__probe_history_agent_{agent_id}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for agent.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| agent_id | path | integer | true | Agent ID |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_history_server_{server_id}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for server.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| server_id | path | integer | true | Server ID |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_history_server_{server_id}_database_{database_name}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for database.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| server_id | path | integer | true | Server ID |
| database_name | path | string | true | Database name |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_history_server_{server_id}_database_{database_name}_schema_{schema_name}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for schema.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| server_id | path | integer | true | Server ID |
| database_name | path | string | true | Database name |
| schema_name | path | string | true | Schema name |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_history_server_{server_id}_database_{database_name}_schema_{schema_name}_table_{table_name}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for table.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| server_id | path | integer | true | Server ID |
| database_name | path | string | true | Database name |
| schema_name | path | string | true | Schema name |
| table_name | path | string | true | Table name |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_history_server_{server_id}_database_{database_name}_schema_{schema_name}_index_{index_name}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for index.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| server_id | path | integer | true | Server ID |
| database_name | path | string | true | Database name |
| schema_name | path | string | true | Schema name |
| index_name | path | string | true | Index name |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_history_server_{server_id}_database_{database_name}_schema_{schema_name}_sequence_{sequence_name}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for sequence.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| server_id | path | integer | true | Server ID |
| database_name | path | string | true | Database name |
| schema_name | path | string | true | Schema name |
| sequence_name | path | string | true | Sequence name |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_history_server_{server_id}_database_{database_name}_schema_{schema_name}_view_{view_name}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for view.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| server_id | path | integer | true | Server ID |
| database_name | path | string | true | Database name |
| schema_name | path | string | true | Schema name |
| view_name | path | string | true | View name |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_history_server_{server_id}_database_{database_name}_schema_{schema_name}_function_{function_name}_from_{start_time}_to_{end_time}_{probe_id}
Code samples
# 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}
Gets Probe history for function.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| server_id | path | integer | true | Server ID |
| database_name | path | string | true | Database name |
| schema_name | path | string | true | Schema name |
| function_name | path | string | true | Function name |
| start_time | path | string | true | Start time in ISO-8601 format to get probe history |
| end_time | path | string | true | End time in ISO-8601 format to get probe history |
| probe_id | path | integer | true | Probe ID for which data will be returned |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
Response Schema
Info
This operation does not require authentication
get__probe_{probe_id}_history_from_{start_time}_to_{end_time}
Code samples
# 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}
Returns historical probe data from the pemhistory schema for the given probe ID within the specified time range.
Returns an empty list when discard_history = true. RBAC: same as the data endpoint.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| probe_id | path | integer | true | Numeric probe ID |
| start_time | path | string | true | Lower bound on recorded_time (inclusive). ISO 8601 timestamp: YYYY-MM-DD<sep>HH:MM:SS[.ffffff][TZ], where <sep> is T or a space and the optional TZ is Z, ±HH, or ±HH:MM. Examples: 2024-01-01T00:00:00Z, 2024-01-01 00:00:00+00 (PostgreSQL default). |
| end_time | path | string | true | Upper bound on recorded_time (inclusive). ISO 8601 timestamp: YYYY-MM-DD<sep>HH:MM:SS[.ffffff][TZ], where <sep> is T or a space and the optional TZ is Z, ±HH, or ±HH:MM. Examples: 2024-12-31T23:59:59Z, 2024-12-31 23:59:59+00 (PostgreSQL default). |
| server_id | query | integer | false | Filter by server ID (server-level probes only). Enforces RBAC. |
| offset | query | integer | false | Rows to skip. Omit for no offset. |
| pageSize | query | integer | false | Maximum rows to return (1–1000). Omit to return all. |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
| 400 | Bad Request | Bad request — invalid parameter | None |
| 404 | Not Found | Probe not found or server not accessible | None |
| 500 | Internal Server Error | Internal server error | None |
Response Schema
Info
This operation does not require authentication
get__probe_{internal_name}_history_from_{start_time}_to_{end_time}
Code samples
# 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}
Returns historical probe data from the pemhistory schema for the given probe internal_name within the specified time range.
Equivalent to /probe/{probe_id}/history/... but addressed by internal_name.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| internal_name | path | string | true | Probe internal name (e.g. server_info, cpu_usage) |
| start_time | path | string | true | Lower bound on recorded_time (inclusive). ISO 8601 timestamp: YYYY-MM-DD<sep>HH:MM:SS[.ffffff][TZ], where <sep> is T or a space and the optional TZ is Z, ±HH, or ±HH:MM. Examples: 2024-01-01T00:00:00Z, 2024-01-01 00:00:00+00 (PostgreSQL default). |
| end_time | path | string | true | Upper bound on recorded_time (inclusive). ISO 8601 timestamp: YYYY-MM-DD<sep>HH:MM:SS[.ffffff][TZ], where <sep> is T or a space and the optional TZ is Z, ±HH, or ±HH:MM. Examples: 2024-12-31T23:59:59Z, 2024-12-31 23:59:59+00 (PostgreSQL default). |
| server_id | query | integer | false | Filter by server ID (server-level probes only). Enforces RBAC. |
| offset | query | integer | false | Rows to skip. Omit for no offset. |
| pageSize | query | integer | false | Maximum rows to return (1–1000). Omit to return all. |
| X-Auth-Token | header | string | true | Token of authorization |
Example responses
200 Response
[ {} ]
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Successful response | Inline |
| 400 | Bad Request | Bad request — invalid parameter | None |
| 404 | Not Found | Probe not found or server not accessible | None |
| 500 | Internal Server Error | Internal server error | None |
Response Schema
Info
This operation does not require authentication