Skip to main content
Get Spans Count
curl --request GET \
  --url https://api.coralogix.com/mgmt/openapi/latest/dataplans/data-usage/v2/spans:count \
  --header 'Authorization: <api-key>'
{
  "spansCount": [
    {
      "errorSpanCount": "10",
      "lowErrorSpanCount": "5",
      "lowSuccessSpanCount": "50",
      "mediumErrorSpanCount": "20",
      "mediumSuccessSpanCount": "200",
      "successSpanCount": "100",
      "timestamp": "2021-01-01T00:00:00.000Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

date_range
Date Range · object

This data structure represents a date range.

resolution
string
filters
Scopes Filter · object

This data structure represents a filter for scopes.

Response

This data structure is used to return spans count.

spansCount
Spans Count · object[]