get-anomaly
restish dci get-anomaly id
Returns the specified anomaly.
Responses
200 (application/json)
OK - Anomaly returned.
{
"required": [
"attribution",
"billingAccount",
"costOfAnomaly",
"platform",
"scope",
"serviceName",
"severityLevel",
"startTime",
"timeFrame",
"top3SKUs"
],
"type": "object",
"properties": {
"attribution": {
"type": "string",
"description": "Attribution ID"
},
"billingAccount": {
"type": "string",
"description": "Billing account ID"
},
"costOfAnomaly": {
"type": "number",
"description": "The difference between the actual cost and the maximum cost in the normal range.",
"format": "double"
},
"platform": {
"type": "string",
"description": "Cloud Provider name"
},
"scope": {
"type": "string",
"description": "Scope: Project or Account"
},
"serviceName": {
"type": "string",
"description": "Service name"
},
"severityLevel": {
"type": "string",
"description": "Severity level: Information, Warning or Critical"
},
"startTime": {
"type": "integer",
"description": "Usage start time of the anomaly",
"format": "int64"
},
"endTime": {
"type": "integer",
"nullable": true,
"description": "End of the anomaly"
},
"timeFrame": {
"type": "string",
"description": "Timeframe: Daily or Hourly"
},
"top3SKUs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"cost": {
"type": "number",
"format": "double"
},
"name": {
"type": "string"
}
}
}
},
"resourceData": {
"type": "array",
"description": "Resources contributing to the anomaly",
"items": {
"type": "object",
"properties": {
"cost": {
"type": "number",
"format": "double"
},
"resourceId": {
"type": "string"
},
"skuDescription": {
"type": "string"
},
"operation": {
"description": "For anomalies related to AWS S3",
"type": "string"
}
}
}
},
"status": {
"type": "string",
"nullable": true,
"enum": [
"active",
"inactive"
]
},
"acknowledged": {
"description": "Has the anomaly been acknowledged",
"type": "boolean"
}
}
}
400 (application/json)
Bad Request - The server cannot process the request, often due to a malformed request.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
401 (application/json)
Unauthorized - Invalid API key.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
403 (application/json)
Forbidden - The client is not authorized to perform the request.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
404 (application/json)
Not Found - The requested resource does not exist.
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}
Aliases: get-anomaly, getanomaly