Fetch the result of anomaly query
Anomaly Filter Properties
Bad Request
Internal server error
Anomaly Query result
{- "k8sClusterNames": [
- "string"
], - "k8sNamespaces": [
- "string"
], - "k8sWorkloadNames": [
- "string"
], - "k8sServiceNames": [
- "string"
], - "gcpProjects": [
- "string"
], - "gcpProducts": [
- "string"
], - "gcpSKUDescriptions": [
- "string"
], - "awsAccounts": [
- "string"
], - "awsServices": [
- "string"
], - "awsUsageTypes": [
- "string"
], - "azureSubscriptionGuids": [
- "string"
], - "azureResourceGroups": [
- "string"
], - "azureMeterCategories": [
- "string"
], - "minActualAmount": 0,
- "minAnomalousSpend": 0,
- "timeFilters": [
- {
- "operator": "NOT_IN",
- "timestamp": 0
}
], - "orderBy": [
- {
- "field": "PERSPECTIVE_ID",
- "order": "ASCENDING"
}
], - "groupBy": [
- {
- "groupByField": "PERSPECTIVE_ID"
}
], - "aggregations": [
- {
- "operationType": "SUM",
- "field": "PERSPECTIVE_ID"
}
], - "searchText": [
- "string"
], - "offset": 0,
- "limit": 0,
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Anomaly"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Returns the list of distinct values for all the specified Anomaly fields.
Bad Request
Internal server error
Returns the list of distinct values for all the specified Anomaly fields.
[- "string"
]
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Fetch the list of anomalies reported according to the filters applied
Perspective & Anomaly Filter Properties
object (AnomalyFilterProperties) Properties of the Anomaly Filter defined in Harness | |
object (PerspectiveQueryDTO) The query object for perspective cost anomalies |
Bad Request
Internal server error
List of Anomalies
{- "anomalyFilterPropertiesDTO": {
- "k8sClusterNames": [
- "string"
], - "k8sNamespaces": [
- "string"
], - "k8sWorkloadNames": [
- "string"
], - "k8sServiceNames": [
- "string"
], - "gcpProjects": [
- "string"
], - "gcpProducts": [
- "string"
], - "gcpSKUDescriptions": [
- "string"
], - "awsAccounts": [
- "string"
], - "awsServices": [
- "string"
], - "awsUsageTypes": [
- "string"
], - "azureSubscriptionGuids": [
- "string"
], - "azureResourceGroups": [
- "string"
], - "azureMeterCategories": [
- "string"
], - "minActualAmount": 0,
- "minAnomalousSpend": 0,
- "timeFilters": [
- {
- "operator": "NOT_IN",
- "timestamp": 0
}
], - "orderBy": [
- {
- "field": "PERSPECTIVE_ID",
- "order": "ASCENDING"
}
], - "groupBy": [
- {
- "groupByField": "PERSPECTIVE_ID"
}
], - "aggregations": [
- {
- "operationType": "SUM",
- "field": "PERSPECTIVE_ID"
}
], - "searchText": [
- "string"
], - "offset": 0,
- "limit": 0,
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Anomaly"
}, - "perspectiveQueryDTO": {
- "filters": [
- {
- "idFilter": {
- "field": {
- "fieldId": "string",
- "fieldName": "string",
- "identifier": "CLUSTER",
- "identifierName": "string"
}, - "operator": "NOT_IN",
- "values": [
- "string"
]
}, - "timeFilter": {
- "field": {
- "fieldId": "string",
- "fieldName": "string",
- "identifier": "CLUSTER",
- "identifierName": "string"
}, - "operator": "AFTER",
- "value": 0
}, - "viewMetadataFilter": {
- "viewId": "string",
- "isPreview": true,
- "preview": true
}, - "ruleFilter": {
- "conditions": [
- {
- "field": {
- "fieldId": null,
- "fieldName": null,
- "identifier": null,
- "identifierName": null
}, - "operator": "NOT_IN",
- "values": [
- null
]
}
]
}
}
], - "groupBy": [
- {
- "entityGroupBy": {
- "fieldId": "string",
- "fieldName": "string",
- "identifier": "CLUSTER",
- "identifierName": "string"
}, - "timeTruncGroupBy": {
- "resolution": "HOUR"
}
}
]
}
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Fetch the list of anomalies present in the ignore list according to the filters applied
Anomaly Filter Properties
Bad Request
Internal server error
List of anomalies present in ignore list
{- "k8sClusterNames": [
- "string"
], - "k8sNamespaces": [
- "string"
], - "k8sWorkloadNames": [
- "string"
], - "k8sServiceNames": [
- "string"
], - "gcpProjects": [
- "string"
], - "gcpProducts": [
- "string"
], - "gcpSKUDescriptions": [
- "string"
], - "awsAccounts": [
- "string"
], - "awsServices": [
- "string"
], - "awsUsageTypes": [
- "string"
], - "azureSubscriptionGuids": [
- "string"
], - "azureResourceGroups": [
- "string"
], - "azureMeterCategories": [
- "string"
], - "minActualAmount": 0,
- "minAnomalousSpend": 0,
- "timeFilters": [
- {
- "operator": "NOT_IN",
- "timestamp": 0
}
], - "orderBy": [
- {
- "field": "PERSPECTIVE_ID",
- "order": "ASCENDING"
}
], - "groupBy": [
- {
- "groupByField": "PERSPECTIVE_ID"
}
], - "aggregations": [
- {
- "operationType": "SUM",
- "field": "PERSPECTIVE_ID"
}
], - "searchText": [
- "string"
], - "offset": 0,
- "limit": 0,
- "tags": {
- "property1": "string",
- "property2": "string"
}, - "filterType": "Anomaly"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Fetch anomalies for perspective
Perspective Query
Array of objects (QLCEViewFilterWrapper) The filters for perspective query | |
Array of objects (QLCEViewGroupBy) The group by clause for perspective query |
Bad Request
Internal server error
List of Anomalies for Perspective
{- "filters": [
- {
- "idFilter": {
- "field": {
- "fieldId": "string",
- "fieldName": "string",
- "identifier": "CLUSTER",
- "identifierName": "string"
}, - "operator": "NOT_IN",
- "values": [
- "string"
]
}, - "timeFilter": {
- "field": {
- "fieldId": "string",
- "fieldName": "string",
- "identifier": "CLUSTER",
- "identifierName": "string"
}, - "operator": "AFTER",
- "value": 0
}, - "viewMetadataFilter": {
- "viewId": "string",
- "isPreview": true,
- "preview": true
}, - "ruleFilter": {
- "conditions": [
- {
- "field": {
- "fieldId": "string",
- "fieldName": "string",
- "identifier": "CLUSTER",
- "identifierName": "string"
}, - "operator": "NOT_IN",
- "values": [
- "string"
]
}
]
}
}
], - "groupBy": [
- {
- "entityGroupBy": {
- "fieldId": "string",
- "fieldName": "string",
- "identifier": "CLUSTER",
- "identifierName": "string"
}, - "timeTruncGroupBy": {
- "resolution": "HOUR"
}
}
]
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
Mark an anomaly as true/false anomaly
Bad Request
Internal server error
Report Anomaly Feedback
{- "feedback": "TRUE_ANOMALY"
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}