Skip to main content
POST
/
core.v1.LogsService
/
GetMetricAggregation
cURL
curl -X POST "https://api.joinformal.com/core.v1.LogsService/GetMetricAggregation" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "example": "value"
  }'
{
  "aggregation": {
    "field": "<string>",
    "aggType": "value_count"
  },
  "value": 123
}

Authorizations

X-API-KEY
string
header
required

API key authentication. Get your API key from the Formal console.

Body

application/json
metricAggregation
metric_aggregation · object
query
string
startTimestamp
string
Minimum string length: 1
endTimestamp
string
Minimum string length: 1

Response

Success

aggregation
aggregation · object
value
number<double>