v1
latestOpenAPI 3.0.02026-07-241310301.1 KBdefault
Create Cost Alert - Account Level
Create a static cost threshold alert. This example shows a 'static' alertType with 'total' alertLevel for organization-wide cost monitoring.
post/api/v2/cost-alerts/rule
Headers
Authorizationstring
apikeystring
Content-Typestring
Request body
object required
Example request
{
"alertRule": {
"uuid": "550e8400-e29b-41d4-a716-446655440004",
"alertName": "Static Cost Threshold Alert",
"filters": {
"linkedaccid": {
"operator": "IS",
"value": "all"
},
"service": {
"operator": "IS",
"value": "all"
}
},
"alertLevel": "total",
"alertType": "static",
"changeType": "increase",
"changePercent": 50,
"changeValue": 1000,
"granularity": 1,
"operatorType": "or",
"costType": "amortized",
"recipients": [
{
"dstId": "ceo@example.com",
"recipientData": {
"dstId": "ceo@example.com",
"type": "EMAIL"
}
}
],
"recipientsEmails": [
"ceo@example.com"
]
}
}Response
Successful response