Skip to main content
GET
/
metric
/
records
/
{id}
/
intervals
cURL
curl --request GET \
  --url http://sandbox.batuenergy.com/api/v1/metric/records/{id}/intervals \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "data": {
    "execution": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "intervals": [
      {
        "process": "prc_<uuid>",
        "startTs": 1727220785,
        "endTs": 1727220785,
        "granularity": "5m",
        "shift": "1m"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The metric id for which the intervals are to be returned

Response

Get intervals response

status
string
required

Indicates the request was successful

Example:

"success"

data
object
required

The data associated with the response