Datadog · Schema
LogsCompute
A computation to perform over the filtered log set
AnalyticsDashboardsMonitoringPlatformT1Visualizations
Properties
| Name | Type | Description |
|---|---|---|
| aggregation | string | The type of aggregation to compute over log events |
| metric | string | The log attribute to aggregate (required for all aggregations except count) |
| type | string | Whether this is a total aggregation or a timeseries |
| interval | string | The time interval for timeseries computations (e.g., 1m, 1h, 1d) |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/json-schema/datadog-logs-logs-compute-schema.json",
"title": "LogsCompute",
"description": "A computation to perform over the filtered log set",
"type": "object",
"properties": {
"aggregation": {
"type": "string",
"description": "The type of aggregation to compute over log events",
"enum": [
"count",
"cardinality",
"pc75",
"pc90",
"pc95",
"pc98",
"pc99",
"sum",
"avg",
"min",
"max"
],
"example": "count"
},
"metric": {
"type": "string",
"description": "The log attribute to aggregate (required for all aggregations except count)",
"example": "example_value"
},
"type": {
"type": "string",
"description": "Whether this is a total aggregation or a timeseries",
"enum": [
"total",
"timeseries"
],
"example": "total"
},
"interval": {
"type": "string",
"description": "The time interval for timeseries computations (e.g., 1m, 1h, 1d)",
"example": "example_value"
}
},
"required": [
"aggregation",
"type"
]
}