v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Unleash Edge

Send metrics in bulk

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

post/api/client/metrics/bulk

Request body

seenTokensstring[]

A list of API tokens observed by downstream providers. (Typically Unleash Edge)

Example request

{
  "applications": [
    {
      "connectVia": [
        {
          "appName": "unleash-edge",
          "instanceId": "edge-pod-bghzv5"
        }
      ],
      "appName": "Ingress load balancer",
      "environment": "development",
      "instanceId": "application-name-dacb1234",
      "interval": 10,
      "started": "2023-07-27T11:23:44Z",
      "strategies": [
        "standard",
        "gradualRollout"
      ],
      "projects": [
        "projectA",
        "projectB"
      ],
      "sdkVersion": "unleash-client-java:8.0.0",
      "sdkType": "backend"
    }
  ],
  "metrics": [
    {
      "featureName": "my.special.feature",
      "appName": "accounting",
      "environment": "development",
      "timestamp": "2023-07-27T11:23:44Z",
      "yes": 974,
      "no": 50,
      "variants": {
        "variantA": 15,
        "variantB": 25,
        "variantC": 5
      }
    }
  ],
  "impactMetrics": [
    {
      "name": "my-counter",
      "help": "Counts the number of operations",
      "type": "counter",
      "samples": [
        {
          "value": 10,
          "labels": {
            "application": "my-app",
            "environment": "production"
          }
        }
      ]
    }
  ]
}

Response

This response has no body.