Anomalies
Get details about any anomalous spike in your cloud and AI costs
Fetch the result of anomaly query
Account Identifier for the Entity.
Properties of the Anomaly Filter defined in Harness
This is the list of Cluster Names on which filter will be applied.
This is the list of Namespaces on which filter will be applied.
This is the list of Workload Names on which filter will be applied.
This is the list of Service Names on which filter will be applied.
This is the list of GCP Projects on which filter will be applied.
This is the list of GCP Products on which filter will be applied.
This is the list of GCP SKU Descriptions on which filter will be applied.
This is the list of AWS Accounts on which filter will be applied.
This is the list of AWS Services on which filter will be applied.
This is the list of AWS Usage Types on which filter will be applied.
This is the list of Azure Subscription Guids on which filter will be applied.
This is the list of Azure Resource Groups on which filter will be applied.
This is the list of Azure Meter Categories on which filter will be applied.
This is the list of OpenAI Project IDs on which filter will be applied.
This is the list of OpenAI Models on which filter will be applied.
This is the list of OpenAI Usage Types on which filter will be applied.
This is the list of Anthropic Project IDs on which filter will be applied.
This is the list of Anthropic Models on which filter will be applied.
This is the list of Anthropic Usage Types on which filter will be applied.
Fetch anomalies with Actual Amount greater-than or equal-to minActualAmount
Fetch anomalies with Anomalous Spend greater-than or equal-to minAnomalousSpend
The search text entered to filter out rows
Query Offset
Query Limit
This is the list of anomaly IDs on which filter will be applied.
Get anomalies detected for given cost categories
List of Perspective IDs to filter anomalies by. Anomalies matching ANY perspective will be returned.
This is the list of Unit Metric Names on which filter will be applied.
Bad Request
This is Failure entity as defied in Harness
Internal server error
Anomaly Query result
POST /gateway/ccm/api/anomaly/summary?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1105
{
"k8sClusterNames": [
"text"
],
"k8sNamespaces": [
"text"
],
"k8sWorkloadNames": [
"text"
],
"k8sServiceNames": [
"text"
],
"gcpProjects": [
"text"
],
"gcpProducts": [
"text"
],
"gcpSKUDescriptions": [
"text"
],
"awsAccounts": [
"text"
],
"awsServices": [
"text"
],
"awsUsageTypes": [
"text"
],
"azureSubscriptionGuids": [
"text"
],
"azureResourceGroups": [
"text"
],
"azureMeterCategories": [
"text"
],
"openaiProjectIds": [
"text"
],
"openaiModels": [
"text"
],
"openaiUsageTypes": [
"text"
],
"anthropicProjectIds": [
"text"
],
"anthropicModels": [
"text"
],
"anthropicUsageTypes": [
"text"
],
"minActualAmount": 1,
"minAnomalousSpend": 1,
"timeFilters": [
{
"operator": "NOT_IN",
"timestamp": 1
}
],
"orderBy": [
{
"field": "PERSPECTIVE_ID",
"order": "ASCENDING"
}
],
"groupBy": [
{
"groupByField": "PERSPECTIVE_ID"
}
],
"aggregations": [
{
"operationType": "SUM",
"field": "PERSPECTIVE_ID"
}
],
"searchText": [
"text"
],
"offset": 1,
"limit": 1,
"status": [
"ACTIVE"
],
"anomalyIds": [
"text"
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"costCategories": [
"text"
],
"perspectiveIds": [
"text"
],
"anomalyView": "RESOURCE",
"unitMetricNames": [
"text"
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "Anomaly"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Returns the list of distinct values for all the specified Anomaly fields.
Account Identifier for the Entity.
Show whitelisted anomalies along with all anomalies
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns the list of distinct values for all the specified Anomaly fields.
POST /gateway/ccm/api/anomaly/filter-values?accountIdentifier=text&showWhitelistedAnomalies=true HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 8
[
"text"
]{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Fetch the list of anomalies reported according to the filters applied
Account Identifier for the Entity.
Bad Request
This is Failure entity as defied in Harness
Internal server error
List of Anomalies
POST /gateway/ccm/api/anomaly?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1912
{
"anomalyFilterPropertiesDTO": {
"k8sClusterNames": [
"text"
],
"k8sNamespaces": [
"text"
],
"k8sWorkloadNames": [
"text"
],
"k8sServiceNames": [
"text"
],
"gcpProjects": [
"text"
],
"gcpProducts": [
"text"
],
"gcpSKUDescriptions": [
"text"
],
"awsAccounts": [
"text"
],
"awsServices": [
"text"
],
"awsUsageTypes": [
"text"
],
"azureSubscriptionGuids": [
"text"
],
"azureResourceGroups": [
"text"
],
"azureMeterCategories": [
"text"
],
"openaiProjectIds": [
"text"
],
"openaiModels": [
"text"
],
"openaiUsageTypes": [
"text"
],
"anthropicProjectIds": [
"text"
],
"anthropicModels": [
"text"
],
"anthropicUsageTypes": [
"text"
],
"minActualAmount": 1,
"minAnomalousSpend": 1,
"timeFilters": [
{
"operator": "NOT_IN",
"timestamp": 1
}
],
"orderBy": [
{
"field": "PERSPECTIVE_ID",
"order": "ASCENDING"
}
],
"groupBy": [
{
"groupByField": "PERSPECTIVE_ID"
}
],
"aggregations": [
{
"operationType": "SUM",
"field": "PERSPECTIVE_ID"
}
],
"searchText": [
"text"
],
"offset": 1,
"limit": 1,
"status": [
"ACTIVE"
],
"anomalyIds": [
"text"
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"costCategories": [
"text"
],
"perspectiveIds": [
"text"
],
"anomalyView": "RESOURCE",
"unitMetricNames": [
"text"
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "Anomaly"
},
"perspectiveQueryDTO": {
"filters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"groupBy": [
{
"entityGroupBy": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"timeTruncGroupBy": {
"resolution": "HOUR"
}
}
]
},
"showWhitelistedAnomalies": true
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Fetch the list of anomalies present in the ignore list according to the filters applied
Account Identifier for the Entity.
Properties of the Anomaly Filter defined in Harness
This is the list of Cluster Names on which filter will be applied.
This is the list of Namespaces on which filter will be applied.
This is the list of Workload Names on which filter will be applied.
This is the list of Service Names on which filter will be applied.
This is the list of GCP Projects on which filter will be applied.
This is the list of GCP Products on which filter will be applied.
This is the list of GCP SKU Descriptions on which filter will be applied.
This is the list of AWS Accounts on which filter will be applied.
This is the list of AWS Services on which filter will be applied.
This is the list of AWS Usage Types on which filter will be applied.
This is the list of Azure Subscription Guids on which filter will be applied.
This is the list of Azure Resource Groups on which filter will be applied.
This is the list of Azure Meter Categories on which filter will be applied.
This is the list of OpenAI Project IDs on which filter will be applied.
This is the list of OpenAI Models on which filter will be applied.
This is the list of OpenAI Usage Types on which filter will be applied.
This is the list of Anthropic Project IDs on which filter will be applied.
This is the list of Anthropic Models on which filter will be applied.
This is the list of Anthropic Usage Types on which filter will be applied.
Fetch anomalies with Actual Amount greater-than or equal-to minActualAmount
Fetch anomalies with Anomalous Spend greater-than or equal-to minAnomalousSpend
The search text entered to filter out rows
Query Offset
Query Limit
This is the list of anomaly IDs on which filter will be applied.
Get anomalies detected for given cost categories
List of Perspective IDs to filter anomalies by. Anomalies matching ANY perspective will be returned.
This is the list of Unit Metric Names on which filter will be applied.
Bad Request
This is Failure entity as defied in Harness
Internal server error
List of anomalies present in ignore list
POST /gateway/ccm/api/anomaly/listIgnoredAnomalies?accountIdentifier=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 1105
{
"k8sClusterNames": [
"text"
],
"k8sNamespaces": [
"text"
],
"k8sWorkloadNames": [
"text"
],
"k8sServiceNames": [
"text"
],
"gcpProjects": [
"text"
],
"gcpProducts": [
"text"
],
"gcpSKUDescriptions": [
"text"
],
"awsAccounts": [
"text"
],
"awsServices": [
"text"
],
"awsUsageTypes": [
"text"
],
"azureSubscriptionGuids": [
"text"
],
"azureResourceGroups": [
"text"
],
"azureMeterCategories": [
"text"
],
"openaiProjectIds": [
"text"
],
"openaiModels": [
"text"
],
"openaiUsageTypes": [
"text"
],
"anthropicProjectIds": [
"text"
],
"anthropicModels": [
"text"
],
"anthropicUsageTypes": [
"text"
],
"minActualAmount": 1,
"minAnomalousSpend": 1,
"timeFilters": [
{
"operator": "NOT_IN",
"timestamp": 1
}
],
"orderBy": [
{
"field": "PERSPECTIVE_ID",
"order": "ASCENDING"
}
],
"groupBy": [
{
"groupByField": "PERSPECTIVE_ID"
}
],
"aggregations": [
{
"operationType": "SUM",
"field": "PERSPECTIVE_ID"
}
],
"searchText": [
"text"
],
"offset": 1,
"limit": 1,
"status": [
"ACTIVE"
],
"anomalyIds": [
"text"
],
"costCategoryDTOs": [
{
"costCategory": "text",
"costBucket": "text"
}
],
"costCategories": [
"text"
],
"perspectiveIds": [
"text"
],
"anomalyView": "RESOURCE",
"unitMetricNames": [
"text"
],
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"filterType": "Anomaly"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Fetch anomalies for perspective
Unique identifier for perspective
Account Identifier for the Entity.
Show whitelisted anomalies along with all anomalies
The query object for perspective cost anomalies
Bad Request
This is Failure entity as defied in Harness
Internal server error
List of Anomalies for Perspective with supported filters
POST /gateway/ccm/api/anomaly/perspective/{perspectiveId}?accountIdentifier=text&showWhitelistedAnomalies=true HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 721
{
"filters": [
{
"idFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
},
"timeFilter": {
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "AFTER",
"value": 1
},
"timeRangeTypeFilter": "LAST_MONTH",
"viewMetadataFilter": {
"viewId": "text",
"isPreview": true,
"preview": true
},
"ruleFilter": {
"conditions": [
{
"field": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"operator": "NOT_IN",
"values": [
"text"
]
}
]
}
}
],
"groupBy": [
{
"entityGroupBy": {
"fieldId": "text",
"fieldName": "text",
"identifier": "CLUSTER",
"identifierName": "text"
},
"timeTruncGroupBy": {
"resolution": "HOUR"
}
}
]
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Mark an anomaly as true/false anomaly
Account Identifier for the Entity.
Unique identifier for perspective
The query object for cost anomaly feedback
Anomaly feedback
Bad Request
This is Failure entity as defied in Harness
Internal server error
Report Anomaly Feedback
PUT /gateway/ccm/api/anomaly/feedback?accountIdentifier=text&anomalyId=text HTTP/1.1
Host: nextgen-ce-d788d786-ssnpc
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"feedback": "TRUE_ANOMALY"
}{
"status": "SUCCESS",
"code": "DEFAULT_ERROR_CODE",
"message": "text",
"correlationId": "text",
"errors": [
{
"fieldId": "text",
"error": "text"
}
]
}Last updated
Was this helpful?