Skip to main content

Send metrics from Edge

POST /edge/metrics

This operation accepts batched metrics from Edge. Metrics will be inserted into Unleash's metrics storage

Request

Body

required

bulkMetricsSchema

  • applications object[]required

    A list of applications registered by an Unleash SDK

  • Array [
  • connectVia object[]

    A list of applications this app registration has been registered through. If connected directly to Unleash, this is an empty list. This can be used in later visualizations to tell how many levels of proxy or Edge instances our SDKs have connected through

  • Array [
  • appName string required
  • instanceId string required
  • ]
  • appName string required

    The name of the application that is evaluating toggles

  • environment string required

    Which environment the application is running in

  • instanceId string required

    A (somewhat) unique identifier for the application

  • interval number

    How often (in seconds) the application refreshes its features

  • started object

    The application started at

    oneOf
  • string date-time

    An RFC-3339-compliant timestamp.

  • strategies string[]

    Enabled strategies in the application

  • sdkVersion string

    The version the sdk is running. Typically :

  • ]
  • metrics object[]required

    a list of client usage metrics registered by downstream providers. (Typically Unleash Edge)

  • Array [
  • featureName string required

    Name of the feature checked by the SDK

  • appName string required

    The name of the application the SDK is being used in

  • environment string required

    Which environment the SDK is being used in

  • timestamp object

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

    oneOf
  • string date-time

    An RFC-3339-compliant timestamp.

  • yes integer

    How many times the toggle evaluated to true

  • no integer

    How many times the toggle evaluated to false

  • variants object

    How many times each variant was returned

  • property name* integer
  • ]
Responses

This response has no body.

Loading...