Skip to main content
GET
/
metric
/
{id}
cURL
curl --request GET \
  --url http://sandbox.batuenergy.com/api/v1/metric/{id} \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "data": {
    "execution": "exe_<uuid>",
    "metric": {
      "id": "<uuid>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "processId": "<uuid>",
      "name": "<string>",
      "variable": "<string>",
      "units": "<string>",
      "granularity": "<string>",
      "type": "number",
      "metadata": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Id of metric to return

Response

Metric response

status
string
required

Indicates the request was successful

Example:

"success"

data
object
required

The data associated with the response