Skip to main content

Get feature metrics

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

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

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

Request

Path Parameters

  • name string required
Responses

featureMetricsSchema

Schema
  • version integer required

    Possible values: >= 1

    The version of this schema

  • maturity string required

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

  • data object[]required

    Metrics gathered per environment

  • Array [
  • featureName string

    The name of the feature

  • appName string

    The name of the application the SDK is being used in

  • environment string required

    Which environment the SDK is being used in

  • timestamp objectrequired

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

    oneOf
  • string date-time

    An RFC-3339-compliant timestamp.

  • yes integer required

    How many times the toggle evaluated to true

  • no integer required

    How many times the toggle evaluated to false

  • variants object

    How many times each variant was returned

  • property name* integer
  • ]

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
name — path required
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/client-metrics/features/:name/raw' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'