Note: This endpoint is in preview and is subject to change.
If you have any feedback, contact Datadog support.
GET https://api.ap1.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecasthttps://api.ap2.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecasthttps://api.datadoghq.eu/api/v2/cost/budget/{budget_id}/custom-forecasthttps://api.ddog-gov.com/api/v2/cost/budget/{budget_id}/custom-forecasthttps://api.us2.ddog-gov.com/api/v2/cost/budget/{budget_id}/custom-forecasthttps://api.uk1.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecasthttps://api.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecasthttps://api.us3.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecasthttps://api.us5.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecast
Overview
Get the custom forecast for a budget.
Arguments
Path Parameters
Response
OK
Response object containing the custom forecast for a budget.
Expand All
Custom forecast resource wrapper in a response.
Attributes of a custom forecast.
The UUID of the budget that this custom forecast belongs to.
Timestamp the custom forecast was created, in Unix milliseconds.
The id of the user that created the custom forecast.
Monthly custom forecast entries.
Forecast amount for the month.
Month the custom forecast entry applies to, in YYYYMM format.
Tag filters that scope this custom forecast entry to specific resources.
The tag key to filter on.
The tag value to filter on.
Timestamp the custom forecast was last updated, in Unix milliseconds.
The id of the user that last updated the custom forecast.
The unique identifier of the custom forecast.
The type of the custom forecast resource. Must be custom_forecast.
Allowed enum values: custom_forecast
default: custom_forecast
{
"data": {
"attributes": {
"budget_uid": "00000000-0000-0000-0000-000000000001",
"created_at": 1738258683590,
"created_by": "00000000-0a0a-0a0a-aaa0-00000000000a",
"entries": [
{
"amount": 400,
"month": 202501,
"tag_filters": [
{
"tag_key": "service",
"tag_value": "ec2"
}
]
}
],
"updated_at": 1738258683590,
"updated_by": "00000000-0a0a-0a0a-aaa0-00000000000a"
},
"id": "11111111-1111-1111-1111-111111111111",
"type": "custom_forecast"
}
}
Bad Request
{
"errors": [
"Bad Request"
]
}
Not Found
{
"errors": [
"Bad Request"
]
}
Too many requests
{
"errors": [
"Bad Request"
]
}
Code Example
# Path parameters
export budget_id="CHANGE_ME"
# Curl command
curl -X GET "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.us2.ddog-gov.com"https://api.uk1.datadoghq.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/cost/budget/${budget_id}/custom-forecast" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}"