SweetConnect LogoSweetConnect
ApiDatabus machines

Get available metrics for a machine

Returns a list of metric keys available for the specified machine

Access restricted to roles:

  • admin
  • manufacturer-admin
  • manufacturer-user
  • producer-admin
  • producer-user
GET
/v1/machines/{machineId}/available_metrics
AuthorizationBearer <token>

In: header

Path Parameters

machineId*string

UUID of the machine

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://test.sweetconnect.io/api/databus/v1/machines/9488c561-749f-4b3d-8c2f-30e867ba66db/available_metrics"
{
  "data": [
    {}
  ]
}
{
  "errors": [
    {
      "errorCode": "RequestValidationError",
      "message": "The 'username' field is required.",
      "extension": {
        "type": "body",
        "key": "username"
      }
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "Unauthorized",
      "message": "Authentication is required to access this resource.",
      "extension": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "NoPermission",
      "message": "You do not have permission to access this resource.",
      "extension": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "NotFound",
      "message": "The requested resource was not found.",
      "extension": {}
    }
  ]
}