GetSpansMetric
Retrieve span-based metrics from your Datadog organization by specifying the metric ID. Analyze and monitor performance data with JSON responses for success, authorization, and error handling.
Instructions
Get a specific span-based metric from your organization.
Path Parameters:
metric_id (Required): The name of the span-based metric.
Responses:
200 (Success): OK
Content-Type:
application/jsonResponse Properties:
Example:
{
"data": "unknown_type"
}403: Not Authorized
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}404: Not Found
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}429: Too many requests
Content-Type:
application/jsonResponse Properties:
errors: A list of errors.
Example:
{
"errors": [
"Bad Request"
]
}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"metric_id": "<metric_id>"
},
"name": "GetSpansMetric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_id | Yes | The name of the span-based metric. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |