Skip to main content
POST
/
projects
/
{slug}
/
computes
/
{cuSlug}
/
metrics
Get Compute Resource Metrics
curl --request POST \
  --url https://relytone.data.cloud/api/v1/projects/{slug}/computes/{cuSlug}/metrics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "metrics": [
    "cpu"
  ]
}'
{
  "bizId": "<string>",
  "externalId": "<string>",
  "database": "<string>",
  "metrics": {
    "cpu": [
      {
        "timestamp": "2023-11-07T05:31:56Z",
        "value": 123
      }
    ],
    "memory": [
      {
        "timestamp": "2023-11-07T05:31:56Z",
        "value": 123
      }
    ],
    "disk": [
      {
        "timestamp": "2023-11-07T05:31:56Z",
        "value": 123
      }
    ],
    "network": [
      {
        "timestamp": "2023-11-07T05:31:56Z",
        "value": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Project identifier

cuSlug
string
required

Compute resource identifier

Body

application/json
startTime
string<date-time>

Start time

endTime
string<date-time>

End time

metrics
enum<string>[]

Types of metrics to retrieve

Response

Successfully retrieved metrics data

bizId
string

Business ID

externalId
string

External ID

database
string

Database name

metrics
object
I