Skip to main content

Get feature metrics

GET 

<your-unleash-url>/api/admin/client-metrics/features/:name/raw

Get usage metrics for a specific feature for the last 48 hours, grouped by hour

Request

Path Parameters

    name stringrequired

Responses

featureMetricsSchema

Schema
    versionintegerrequired

    The version of this schema

    Possible values: >= 1

    maturitystringrequired

    The maturity level of this API (alpha, beta, stable, deprecated)

    Example: stable
    data object[]required

    Metrics gathered per environment

  • Array [
  • featureNamestring

    The name of the feature

    Example: my.special.feature
    appNamestring

    The name of the application the SDK is being used in

    Example: accounting
    environmentstringrequired

    Which environment the SDK is being used in

    Example: development
    timestamp objectrequired

    The start of the time window these metrics are valid for. The window is usually 1 hour wide

    oneOf
    string

    An RFC-3339-compliant timestamp.

    Example: 2023-07-27T11:23:44Z
    yesintegerrequired

    How many times the toggle evaluated to true

    Example: 974
    nointegerrequired

    How many times the toggle evaluated to false

    Example: 50
    variants object

    How many times each variant was returned

    property name*integer
  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/client-metrics/features/:name/raw' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!