v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBLogs Metrics
Get a log-based metric
Get a specific log-based metric from your organization.
get/api/v2/logs/config/metrics/{metric_id}
Path parameters
metric_idstring required
The name of the log-based metric.
Response
OK
Example response
{
"data": {
"attributes": {
"compute": {
"aggregation_type": "distribution",
"include_percentiles": true,
"path": "@duration"
},
"filter": {
"query": "service:web* AND @http.status_code:[200 TO 299]"
},
"group_by": [
{
"path": "@http.status_code",
"tag_name": "status_code"
}
]
},
"id": "logs.page.load.count",
"type": "logs_metrics"
}
}