curl --request GET \ --url 'https://api.e2enetworks.com/myaccount/api/v1/nodes/{master_node_id}/monitor/server-health/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>'import requests
response = requests.get( "https://api.e2enetworks.com/myaccount/api/v1/nodes/{master_node_id}/monitor/server-health/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"},)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/nodes/{master_node_id}/monitor/server-health/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "GET", headers: { "Authorization": "Bearer <API_TOKEN>" },});console.log(await response.json());Returns time-series health metrics for a single cluster node - memory, disk and CPU utilisation, disk IOPS, and per-NIC network in/out throughput. Each metric is a { labels, results } pair (labels are timestamps, results are values). The path takes a node id (e.g. the master_node_id from List / Detail, or a node id from Monitoring Nodes). Use interval to set the look-back window in seconds.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The node id whose metrics to fetch (e.g. master_node_id from List / Detail).
Example
320000Query Parameters
Section titled “Query Parameters”Look-back window for the metrics, in seconds.
Example
3600Identifier of the project to scope the request to. Required integer project ID.
Example
<PROJECT_ID>API key used to authenticate the request.
Example
<API_KEY>Region of the node.
Example
<LOCATION>Responses
Section titled “Responses”Successful response
Time-series health metrics for the node. Each metric is a { labels, results } pair where labels are timestamps and results are the metric values at those timestamps.
object
object
object
CPU utilisation series ({ labels, results }).
object
Disk utilisation series ({ labels, results }).
object
Disk IOPS series ({ labels, results }).
object
Per-NIC network in/out throughput series.
object
object
Example
{ "code": 200, "data": { "memory": { "labels": [ "01:27PM", "01:37PM" ], "results": [ 42.5, 43.1 ] } }, "message": "Success"}