Skip to main content

list-anomalies

restish dci list-anomalies [flags]

Returns a list of detected anomalies. Anomalies are returned in reverse chronological order by default.

Flags

--min-creation-time: (string)

--max-creation-time: (string)

--filter: (string)

--max-results: (integer format:int64)

--page-token: (string)

Responses

200 (application/json)

OK - The request succeeded.

{
"type": "object",
"properties": {
"anomalies": {
"type": "array",
"items": {
"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": "Cost of the anomaly over and above the expected normal cost",
"format": "double"
},
"id": {
"type": "string"
},
"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"
}
}
}
},
"pageToken": {
"type": "string"
},
"rowCount": {
"type": "integer",
"format": "int64"
}
}
}

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: list-anomalies, listanomalies