Rule Groups Service
Events2Metrics Service
Enrichments Service
Contextual data integration service
Custom Enrichments Service
Dashboard service
Dashboard folders service
Incidents service
- POSTList incidents with filters
- GETGet incident by ID
- GETGet incident events
- POSTAcknowledge incidents
- POSTAssign incidents to a user
- POSTGet multiple incidents by IDs
- POSTClose incidents
- POSTGet available filter values
- POSTList incident events with filters
- POSTGet available incident event filter values
- POSTGet total count of incident events
- POSTGet incident aggregations
- POSTResolve incidents
- POSTRemove incident user assignments
Integration service
- GETGet all integrations
- GETGet integration definition
- GETGet deployed integration
- DELDelete integration
- GETList managed integration keys
- GETGet managed integration status
- PUTUpdate integration
- POSTSave integration registration metadata
- POSTTest integration
- GETGet RUM integration versions data
- POSTTrigger sync of RUM integration data
- GETGet integration template
- GETGet integration details
Outgoing webhooks service
- GETList outgoing webhooks
- PUTUpdate an outgoing webhook
- POSTCreate an outgoing webhook
- GETList all outgoing webhooks
- GETList IBM event notification instances
- GETList outbound webhooks summary
- POSTTest an outgoing webhook
- POSTTest an existing outgoing webhook
- GETGet outgoing webhook types
- GETGet outgoing webhook type details
- GETGet outgoing webhook
- DELDelete an outgoing webhook
Policies Service
Retentions Service
Scopes Service
SLO Service
SAML Configuration Service
Team Permissions Management Service
- GETGet Team Group By Name
- PUTUpdate Team Group
- POSTCreate Team Group
- GETGet Team Groups
- POSTAdd Users To Team Groups
- DELRemove Users From Team Groups
- GETGet Team Group
- DELDelete Team Group
- GETGet Team Group Scope
- POSTSet Team Group Scope
- GETGet Group Users
- POSTAdd Users To Team Group
- DELRemove Users From Team Group
Folders for views
Actions Service
Target Service
Alert definitions service
Alert events service
API Keys Service
Alert definitions service
Get alert definition by alert version ID
GET
/
v3
/
alert-defs
/
alert-version-id
/
{alertVersionId}
Copy
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-defs/alert-version-id/%7BalertVersionId%7D';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Copy
{
"alertDef": {
"alertDefProperties": {
"name": "My Alert",
"description": "Alert description",
"enabled": true,
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED",
"activeOn": {
"dayOfWeek": [
"DAY_OF_WEEK_MONDAY_OR_UNSPECIFIED",
"DAY_OF_WEEK_TUESDAY"
],
"startTime": {
"hours": 14,
"minutes": 30
},
"endTime": {
"hours": 14,
"minutes": 30
}
},
"type": "ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED",
"logsImmediate": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"notificationPayloadFilter": [
"obj.field"
]
},
"tracingImmediate": {
"tracingFilter": {
"simpleFilter": {
"tracingLabelFilters": {
"applicationName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"serviceName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"operationName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"spanFields": [
{
"key": "span.field.key",
"filterType": {
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
}
]
},
"latencyThresholdMs": 1000
}
},
"notificationPayloadFilter": [
"obj.field"
]
},
"logsThreshold": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"undetectedValuesManagement": {
"triggerUndetectedValues": true,
"autoRetireTimeframe": "AUTO_RETIRE_TIMEFRAME_NEVER_OR_UNSPECIFIED"
},
"rules": [
{
"condition": {
"threshold": 100,
"timeWindow": {
"logsTimeWindowSpecificValue": "LOGS_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
},
"conditionType": "LOGS_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
},
"override": {
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
}
],
"notificationPayloadFilter": [
"obj.field"
],
"evaluationDelayMs": 60000
},
"logsRatioThreshold": {
"numerator": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"numeratorAlias": "numerator_alias",
"denominator": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"denominatorAlias": "denominator_alias",
"rules": [
{
"condition": {
"threshold": 10,
"timeWindow": {
"logsRatioTimeWindowSpecificValue": "LOGS_RATIO_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
},
"conditionType": "LOGS_RATIO_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
},
"override": {
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
}
],
"notificationPayloadFilter": [
"obj.field"
],
"groupByFor": "LOGS_RATIO_GROUP_BY_FOR_BOTH_OR_UNSPECIFIED",
"undetectedValuesManagement": {
"triggerUndetectedValues": true,
"autoRetireTimeframe": "AUTO_RETIRE_TIMEFRAME_NEVER_OR_UNSPECIFIED"
},
"ignoreInfinity": true,
"evaluationDelayMs": 60000
},
"logsTimeRelativeThreshold": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"rules": [
{
"condition": {
"threshold": 123,
"comparedTo": "LOGS_TIME_RELATIVE_COMPARED_TO_PREVIOUS_HOUR_OR_UNSPECIFIED",
"conditionType": "LOGS_TIME_RELATIVE_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
},
"override": {
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
}
],
"ignoreInfinity": true,
"notificationPayloadFilter": [
"obj.field"
],
"undetectedValuesManagement": {
"triggerUndetectedValues": true,
"autoRetireTimeframe": "AUTO_RETIRE_TIMEFRAME_NEVER_OR_UNSPECIFIED"
},
"evaluationDelayMs": 60000
},
"metricThreshold": {
"metricFilter": {
"promql": "avg_over_time(metric_name[5m]) > 10"
},
"rules": [
{
"condition": {
"threshold": 100,
"forOverPct": 80,
"ofTheLast": {
"metricTimeWindowSpecificValue": "METRIC_TIME_WINDOW_VALUE_MINUTES_1_OR_UNSPECIFIED",
"metricTimeWindowDynamicDuration": "1h30m"
},
"conditionType": "METRIC_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
},
"override": {
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
}
],
"undetectedValuesManagement": {
"triggerUndetectedValues": true,
"autoRetireTimeframe": "AUTO_RETIRE_TIMEFRAME_NEVER_OR_UNSPECIFIED"
},
"missingValues": {
"replaceWithZero": true,
"minNonNullValuesPct": 80
},
"evaluationDelayMs": 60000
},
"tracingThreshold": {
"tracingFilter": {
"simpleFilter": {
"tracingLabelFilters": {
"applicationName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"serviceName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"operationName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"spanFields": [
{
"key": "span.field.key",
"filterType": {
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
}
]
},
"latencyThresholdMs": 1000
}
},
"rules": [
{
"condition": {
"spanAmount": 100,
"timeWindow": {
"tracingTimeWindowValue": "TRACING_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
},
"conditionType": "TRACING_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
}
}
],
"notificationPayloadFilter": [
"obj.field"
]
},
"flow": {
"stages": [
{
"flowStagesGroups": {
"groups": [
{
"alertDefs": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"not": true
}
],
"nextOp": "NEXT_OP_AND_OR_UNSPECIFIED",
"alertsOp": "ALERTS_OP_AND_OR_UNSPECIFIED"
}
]
},
"timeframeMs": "<string>",
"timeframeType": "TIMEFRAME_TYPE_UNSPECIFIED"
}
],
"enforceSuppression": true
},
"logsAnomaly": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"rules": [
{
"condition": {
"minimumThreshold": 10,
"timeWindow": {
"logsTimeWindowSpecificValue": "LOGS_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
},
"conditionType": "LOGS_ANOMALY_CONDITION_TYPE_MORE_THAN_USUAL_OR_UNSPECIFIED"
}
}
],
"notificationPayloadFilter": [
"obj.field"
],
"evaluationDelayMs": 60000,
"anomalyAlertSettings": {
"percentageOfDeviation": 123
}
},
"metricAnomaly": {
"metricFilter": {
"promql": "avg_over_time(metric_name[5m]) > 10"
},
"rules": [
{
"condition": {
"threshold": 10,
"forOverPct": 20,
"ofTheLast": {
"metricTimeWindowSpecificValue": "METRIC_TIME_WINDOW_VALUE_MINUTES_1_OR_UNSPECIFIED",
"metricTimeWindowDynamicDuration": "1h30m"
},
"minNonNullValuesPct": 10,
"conditionType": "METRIC_ANOMALY_CONDITION_TYPE_MORE_THAN_USUAL_OR_UNSPECIFIED"
}
}
],
"evaluationDelayMs": 60000,
"anomalyAlertSettings": {
"percentageOfDeviation": 123
}
},
"logsNewValue": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"rules": [
{
"condition": {
"keypathToTrack": "metadata.field",
"timeWindow": {
"logsNewValueTimeWindowSpecificValue": "LOGS_NEW_VALUE_TIME_WINDOW_VALUE_HOURS_12_OR_UNSPECIFIED"
}
}
}
],
"notificationPayloadFilter": [
"obj.field"
]
},
"logsUniqueCount": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"rules": [
{
"condition": {
"maxUniqueCount": 100,
"timeWindow": {
"logsUniqueValueTimeWindowSpecificValue": "LOGS_UNIQUE_VALUE_TIME_WINDOW_VALUE_MINUTE_1_OR_UNSPECIFIED"
}
}
}
],
"notificationPayloadFilter": [
"obj.field"
],
"maxUniqueCountPerGroupByKey": 100,
"uniqueCountKeypath": "obj.field"
},
"groupByKeys": [
"key1",
"key2"
],
"incidentsSettings": {
"minutes": 30,
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED"
},
"notificationGroup": {
"groupByKeys": [
"key1",
"key2"
],
"webhooks": [
{
"minutes": 15,
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
"integration": {
"integrationId": 123,
"recipients": {
"emails": [
"mail@gmail.com"
]
}
}
}
],
"destinations": [
{
"connectorId": "connector_id_example",
"presetId": "preset_id_example",
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
"triggeredRoutingOverrides": {
"configOverrides": {
"outputSchemaId": "output_schema_id_example",
"messageConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
],
"connectorConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
]
}
},
"resolvedRouteOverrides": {
"configOverrides": {
"outputSchemaId": "output_schema_id_example",
"messageConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
],
"connectorConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
]
}
}
}
],
"router": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED"
}
},
"notificationGroupExcess": [
{
"groupByKeys": [
"key1",
"key2"
],
"webhooks": [
{
"minutes": 15,
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
"integration": {
"integrationId": 123,
"recipients": {
"emails": [
"mail@gmail.com"
]
}
}
}
],
"destinations": [
{
"connectorId": "connector_id_example",
"presetId": "preset_id_example",
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
"triggeredRoutingOverrides": {
"configOverrides": {
"outputSchemaId": "output_schema_id_example",
"messageConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
],
"connectorConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
]
}
},
"resolvedRouteOverrides": {
"configOverrides": {
"outputSchemaId": "output_schema_id_example",
"messageConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
],
"connectorConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
]
}
}
}
],
"router": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED"
}
}
],
"entityLabels": {
"key": "value"
},
"phantomMode": false,
"deleted": false
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"alertVersionId": "<string>",
"createdTime": "2023-10-01T12:00:00.000Z",
"updatedTime": "2023-10-01T12:00:00.000Z"
}
}
Authorizations
API key authentication
Path Parameters
Alert version ID
Response
200
application/json
A successful response.
A response that contains an alert definition for the requested version
Copy
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-defs/alert-version-id/%7BalertVersionId%7D';
let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Copy
{
"alertDef": {
"alertDefProperties": {
"name": "My Alert",
"description": "Alert description",
"enabled": true,
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED",
"activeOn": {
"dayOfWeek": [
"DAY_OF_WEEK_MONDAY_OR_UNSPECIFIED",
"DAY_OF_WEEK_TUESDAY"
],
"startTime": {
"hours": 14,
"minutes": 30
},
"endTime": {
"hours": 14,
"minutes": 30
}
},
"type": "ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED",
"logsImmediate": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"notificationPayloadFilter": [
"obj.field"
]
},
"tracingImmediate": {
"tracingFilter": {
"simpleFilter": {
"tracingLabelFilters": {
"applicationName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"serviceName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"operationName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"spanFields": [
{
"key": "span.field.key",
"filterType": {
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
}
]
},
"latencyThresholdMs": 1000
}
},
"notificationPayloadFilter": [
"obj.field"
]
},
"logsThreshold": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"undetectedValuesManagement": {
"triggerUndetectedValues": true,
"autoRetireTimeframe": "AUTO_RETIRE_TIMEFRAME_NEVER_OR_UNSPECIFIED"
},
"rules": [
{
"condition": {
"threshold": 100,
"timeWindow": {
"logsTimeWindowSpecificValue": "LOGS_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
},
"conditionType": "LOGS_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
},
"override": {
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
}
],
"notificationPayloadFilter": [
"obj.field"
],
"evaluationDelayMs": 60000
},
"logsRatioThreshold": {
"numerator": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"numeratorAlias": "numerator_alias",
"denominator": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"denominatorAlias": "denominator_alias",
"rules": [
{
"condition": {
"threshold": 10,
"timeWindow": {
"logsRatioTimeWindowSpecificValue": "LOGS_RATIO_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
},
"conditionType": "LOGS_RATIO_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
},
"override": {
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
}
],
"notificationPayloadFilter": [
"obj.field"
],
"groupByFor": "LOGS_RATIO_GROUP_BY_FOR_BOTH_OR_UNSPECIFIED",
"undetectedValuesManagement": {
"triggerUndetectedValues": true,
"autoRetireTimeframe": "AUTO_RETIRE_TIMEFRAME_NEVER_OR_UNSPECIFIED"
},
"ignoreInfinity": true,
"evaluationDelayMs": 60000
},
"logsTimeRelativeThreshold": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"rules": [
{
"condition": {
"threshold": 123,
"comparedTo": "LOGS_TIME_RELATIVE_COMPARED_TO_PREVIOUS_HOUR_OR_UNSPECIFIED",
"conditionType": "LOGS_TIME_RELATIVE_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
},
"override": {
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
}
],
"ignoreInfinity": true,
"notificationPayloadFilter": [
"obj.field"
],
"undetectedValuesManagement": {
"triggerUndetectedValues": true,
"autoRetireTimeframe": "AUTO_RETIRE_TIMEFRAME_NEVER_OR_UNSPECIFIED"
},
"evaluationDelayMs": 60000
},
"metricThreshold": {
"metricFilter": {
"promql": "avg_over_time(metric_name[5m]) > 10"
},
"rules": [
{
"condition": {
"threshold": 100,
"forOverPct": 80,
"ofTheLast": {
"metricTimeWindowSpecificValue": "METRIC_TIME_WINDOW_VALUE_MINUTES_1_OR_UNSPECIFIED",
"metricTimeWindowDynamicDuration": "1h30m"
},
"conditionType": "METRIC_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
},
"override": {
"priority": "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED"
}
}
],
"undetectedValuesManagement": {
"triggerUndetectedValues": true,
"autoRetireTimeframe": "AUTO_RETIRE_TIMEFRAME_NEVER_OR_UNSPECIFIED"
},
"missingValues": {
"replaceWithZero": true,
"minNonNullValuesPct": 80
},
"evaluationDelayMs": 60000
},
"tracingThreshold": {
"tracingFilter": {
"simpleFilter": {
"tracingLabelFilters": {
"applicationName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"serviceName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"operationName": [
{
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"spanFields": [
{
"key": "span.field.key",
"filterType": {
"values": [
"value1",
"value2"
],
"operation": "TRACING_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
}
]
},
"latencyThresholdMs": 1000
}
},
"rules": [
{
"condition": {
"spanAmount": 100,
"timeWindow": {
"tracingTimeWindowValue": "TRACING_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
},
"conditionType": "TRACING_THRESHOLD_CONDITION_TYPE_MORE_THAN_OR_UNSPECIFIED"
}
}
],
"notificationPayloadFilter": [
"obj.field"
]
},
"flow": {
"stages": [
{
"flowStagesGroups": {
"groups": [
{
"alertDefs": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"not": true
}
],
"nextOp": "NEXT_OP_AND_OR_UNSPECIFIED",
"alertsOp": "ALERTS_OP_AND_OR_UNSPECIFIED"
}
]
},
"timeframeMs": "<string>",
"timeframeType": "TIMEFRAME_TYPE_UNSPECIFIED"
}
],
"enforceSuppression": true
},
"logsAnomaly": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"rules": [
{
"condition": {
"minimumThreshold": 10,
"timeWindow": {
"logsTimeWindowSpecificValue": "LOGS_TIME_WINDOW_VALUE_MINUTES_5_OR_UNSPECIFIED"
},
"conditionType": "LOGS_ANOMALY_CONDITION_TYPE_MORE_THAN_USUAL_OR_UNSPECIFIED"
}
}
],
"notificationPayloadFilter": [
"obj.field"
],
"evaluationDelayMs": 60000,
"anomalyAlertSettings": {
"percentageOfDeviation": 123
}
},
"metricAnomaly": {
"metricFilter": {
"promql": "avg_over_time(metric_name[5m]) > 10"
},
"rules": [
{
"condition": {
"threshold": 10,
"forOverPct": 20,
"ofTheLast": {
"metricTimeWindowSpecificValue": "METRIC_TIME_WINDOW_VALUE_MINUTES_1_OR_UNSPECIFIED",
"metricTimeWindowDynamicDuration": "1h30m"
},
"minNonNullValuesPct": 10,
"conditionType": "METRIC_ANOMALY_CONDITION_TYPE_MORE_THAN_USUAL_OR_UNSPECIFIED"
}
}
],
"evaluationDelayMs": 60000,
"anomalyAlertSettings": {
"percentageOfDeviation": 123
}
},
"logsNewValue": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"rules": [
{
"condition": {
"keypathToTrack": "metadata.field",
"timeWindow": {
"logsNewValueTimeWindowSpecificValue": "LOGS_NEW_VALUE_TIME_WINDOW_VALUE_HOURS_12_OR_UNSPECIFIED"
}
}
}
],
"notificationPayloadFilter": [
"obj.field"
]
},
"logsUniqueCount": {
"logsFilter": {
"simpleFilter": {
"luceneQuery": "<string>",
"labelFilters": {
"applicationName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"subsystemName": [
{
"value": "my-app",
"operation": "LOG_FILTER_OPERATION_TYPE_IS_OR_UNSPECIFIED"
}
],
"severities": [
"LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
},
"rules": [
{
"condition": {
"maxUniqueCount": 100,
"timeWindow": {
"logsUniqueValueTimeWindowSpecificValue": "LOGS_UNIQUE_VALUE_TIME_WINDOW_VALUE_MINUTE_1_OR_UNSPECIFIED"
}
}
}
],
"notificationPayloadFilter": [
"obj.field"
],
"maxUniqueCountPerGroupByKey": 100,
"uniqueCountKeypath": "obj.field"
},
"groupByKeys": [
"key1",
"key2"
],
"incidentsSettings": {
"minutes": 30,
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED"
},
"notificationGroup": {
"groupByKeys": [
"key1",
"key2"
],
"webhooks": [
{
"minutes": 15,
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
"integration": {
"integrationId": 123,
"recipients": {
"emails": [
"mail@gmail.com"
]
}
}
}
],
"destinations": [
{
"connectorId": "connector_id_example",
"presetId": "preset_id_example",
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
"triggeredRoutingOverrides": {
"configOverrides": {
"outputSchemaId": "output_schema_id_example",
"messageConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
],
"connectorConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
]
}
},
"resolvedRouteOverrides": {
"configOverrides": {
"outputSchemaId": "output_schema_id_example",
"messageConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
],
"connectorConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
]
}
}
}
],
"router": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED"
}
},
"notificationGroupExcess": [
{
"groupByKeys": [
"key1",
"key2"
],
"webhooks": [
{
"minutes": 15,
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
"integration": {
"integrationId": 123,
"recipients": {
"emails": [
"mail@gmail.com"
]
}
}
}
],
"destinations": [
{
"connectorId": "connector_id_example",
"presetId": "preset_id_example",
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
"triggeredRoutingOverrides": {
"configOverrides": {
"outputSchemaId": "output_schema_id_example",
"messageConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
],
"connectorConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
]
}
},
"resolvedRouteOverrides": {
"configOverrides": {
"outputSchemaId": "output_schema_id_example",
"messageConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
],
"connectorConfigFields": [
{
"fieldName": "description",
"template": "template_example"
}
]
}
}
}
],
"router": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED"
}
}
],
"entityLabels": {
"key": "value"
},
"phantomMode": false,
"deleted": false
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"alertVersionId": "<string>",
"createdTime": "2023-10-01T12:00:00.000Z",
"updatedTime": "2023-10-01T12:00:00.000Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.