Description: Gets a a list of node stats.
Security: Requires a valid user
Usage: GET api/v1/nodeStats
Produces: application/json
Parameters:
Parameter | Data Type | Description | Required/Optional |
|---|---|---|---|
| String | A filter on the list based on the nodeId property of the nodeStat. Expects a comma separated string of nodeIds. | Required |
| Integer | A limit on the number of nodeStats returned. | Optional |
| Integer | A cursor for use in pagination. This parameter defines the number of nodeStats skipped. | Optional |
| String | A filter on the list that returns stats that have Format: date-time | Optional |
| String | A filter on the list that returns stats that have Format: date-time | Optional |
| String | The nodeStat properties to sort the results by. Expects a comma separated list of sorters. | Optional |
| Integer | A sort order based on the | Optional |
Sample Request
curl -X GET 'https://mypipelines.io/pipelines/api/v1/nodeStats?nodeIds=2923995'
Sample Response:
[
{
"id": 356045599,
"nodeId": 2925082,
"reportedAt": "2023-06-05T09:47:17.005Z",
"diskUsageInPercentage": "24",
"memoryUsageInPercentage": "14",
"cpuLoadInPercentage": "43",
"activeContainersCount": 0,
"totalContainersCount": 0,
"imageCount": 8,
"projectId": 7,
"createdBy": null,
"updatedBy": null,
"createdAt": "2023-06-05T09:47:17.039Z",
"updatedAt": "2023-06-05T09:47:17.039Z"
}
]Response Codes:
200: Success