Skip to main content
GET
/
flags
/
{flagId}
/
metrics
cURL
curl --request GET \
  --url http://localhost:3000/flags/{flagId}/metrics \
  --header 'Authorization: Bearer <token>'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "totalEvaluations": {
      "value": 123,
      "change": 123
    },
    "uniqueUsers": {
      "value": 123,
      "change": 123
    },
    "successRate": {
      "value": "<string>",
      "change": 123
    },
    "errorRate": {
      "value": "<string>",
      "change": 123
    },
    "avgResponseTime": {
      "value": "<string>",
      "change": 123
    },
    "variationPerformance": [
      {
        "key": "<string>",
        "name": "<string>",
        "evaluations": 123,
        "percentage": 123
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

flagId
string<uuid>
required

Query Parameters

environmentId
string<uuid>
required
period
Available options:
24h

Response

Default Response

statusCode
number
message
string
default:OK
data
object