Download OpenAPI specification:Download
No description available
ids required | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/service_slos?ids=SOME_ARRAY_VALUE'; 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));
{- "slos": {
- "property1": {
- "id": "slo_id",
- "name": "slo_name",
- "serviceName": "service_name",
- "status": "SLO_STATUS_UNSPECIFIED",
- "description": "slo_description",
- "targetPercentage": 99,
- "createdAt": "2021-01-01T00:00:00.000Z",
- "remainingErrorBudgetPercentage": 1,
- "latencySli": {
- "thresholdMicroseconds": "1000000",
- "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
}, - "errorSli": { },
- "filters": [
- {
- "field": "field_name",
- "compareType": "COMPARE_TYPE_UNSPECIFIED",
- "fieldValues": [
- "value1",
- "value2"
]
}
], - "period": "SLO_PERIOD_UNSPECIFIED"
}, - "property2": {
- "id": "slo_id",
- "name": "slo_name",
- "serviceName": "service_name",
- "status": "SLO_STATUS_UNSPECIFIED",
- "description": "slo_description",
- "targetPercentage": 99,
- "createdAt": "2021-01-01T00:00:00.000Z",
- "remainingErrorBudgetPercentage": 1,
- "latencySli": {
- "thresholdMicroseconds": "1000000",
- "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
}, - "errorSli": { },
- "filters": [
- {
- "field": "field_name",
- "compareType": "COMPARE_TYPE_UNSPECIFIED",
- "fieldValues": [
- "value1",
- "value2"
]
}
], - "period": "SLO_PERIOD_UNSPECIFIED"
}
}, - "notFoundIds": [
- "slo_id1",
- "slo_id2"
]
}
No description available
This data structure represents a request to create a Service SLO.
required | object (Service SLO) This data structure represents a Service Level Objective (SLO) in Coralogix APM. |
{- "slo": {
- "id": "slo_id",
- "name": "slo_name",
- "serviceName": "service_name",
- "status": "SLO_STATUS_UNSPECIFIED",
- "description": "slo_description",
- "targetPercentage": 99,
- "createdAt": "2021-01-01T00:00:00.000Z",
- "remainingErrorBudgetPercentage": 1,
- "latencySli": {
- "thresholdMicroseconds": "1000000",
- "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
}, - "errorSli": { },
- "filters": [
- {
- "field": "field_name",
- "compareType": "COMPARE_TYPE_UNSPECIFIED",
- "fieldValues": [
- "value1",
- "value2"
]
}
], - "period": "SLO_PERIOD_UNSPECIFIED"
}
}
{- "slo": {
- "id": "slo_id",
- "name": "slo_name",
- "serviceName": "service_name",
- "status": "SLO_STATUS_UNSPECIFIED",
- "description": "slo_description",
- "targetPercentage": 99,
- "createdAt": "2021-01-01T00:00:00.000Z",
- "remainingErrorBudgetPercentage": 1,
- "latencySli": {
- "thresholdMicroseconds": "1000000",
- "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
}, - "errorSli": { },
- "filters": [
- {
- "field": "field_name",
- "compareType": "COMPARE_TYPE_UNSPECIFIED",
- "fieldValues": [
- "value1",
- "value2"
]
}
], - "period": "SLO_PERIOD_UNSPECIFIED"
}
}
No description available
This data structure represents a request to update a Service SLO.
required | object (Service SLO) This data structure represents a Service Level Objective (SLO) in Coralogix APM. |
{- "slo": {
- "id": "slo_id",
- "name": "slo_name",
- "serviceName": "service_name",
- "status": "SLO_STATUS_UNSPECIFIED",
- "description": "slo_description",
- "targetPercentage": 99,
- "createdAt": "2021-01-01T00:00:00.000Z",
- "remainingErrorBudgetPercentage": 1,
- "latencySli": {
- "thresholdMicroseconds": "1000000",
- "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
}, - "errorSli": { },
- "filters": [
- {
- "field": "field_name",
- "compareType": "COMPARE_TYPE_UNSPECIFIED",
- "fieldValues": [
- "value1",
- "value2"
]
}
], - "period": "SLO_PERIOD_UNSPECIFIED"
}
}
{- "slo": {
- "id": "slo_id",
- "name": "slo_name",
- "serviceName": "service_name",
- "status": "SLO_STATUS_UNSPECIFIED",
- "description": "slo_description",
- "targetPercentage": 99,
- "createdAt": "2021-01-01T00:00:00.000Z",
- "remainingErrorBudgetPercentage": 1,
- "latencySli": {
- "thresholdMicroseconds": "1000000",
- "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
}, - "errorSli": { },
- "filters": [
- {
- "field": "field_name",
- "compareType": "COMPARE_TYPE_UNSPECIFIED",
- "fieldValues": [
- "value1",
- "value2"
]
}
], - "period": "SLO_PERIOD_UNSPECIFIED"
}
}
No description available
orderBy.fieldName required | string |
orderBy.direction required | string Default: "ORDER_BY_DIRECTION_UNSPECIFIED" Enum: "ORDER_BY_DIRECTION_UNSPECIFIED" "ORDER_BY_DIRECTION_ASC" "ORDER_BY_DIRECTION_DESC" |
serviceNames required | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/service_slos/all?orderBy.fieldName=SOME_STRING_VALUE&orderBy.direction=SOME_STRING_VALUE&serviceNames=SOME_ARRAY_VALUE'; 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));
{- "slos": [
- {
- "id": "slo_id",
- "name": "slo_name",
- "serviceName": "service_name",
- "status": "SLO_STATUS_UNSPECIFIED",
- "description": "slo_description",
- "targetPercentage": 99,
- "createdAt": "2021-01-01T00:00:00.000Z",
- "remainingErrorBudgetPercentage": 1,
- "latencySli": {
- "thresholdMicroseconds": "1000000",
- "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
}, - "errorSli": { },
- "filters": [
- {
- "field": "field_name",
- "compareType": "COMPARE_TYPE_UNSPECIFIED",
- "fieldValues": [
- "value1",
- "value2"
]
}
], - "period": "SLO_PERIOD_UNSPECIFIED"
}
]
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/service_slos/%7Bid%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));
{- "slo": {
- "id": "slo_id",
- "name": "slo_name",
- "serviceName": "service_name",
- "status": "SLO_STATUS_UNSPECIFIED",
- "description": "slo_description",
- "targetPercentage": 99,
- "createdAt": "2021-01-01T00:00:00.000Z",
- "remainingErrorBudgetPercentage": 1,
- "latencySli": {
- "thresholdMicroseconds": "1000000",
- "thresholdSymbol": "THRESHOLD_SYMBOL_UNSPECIFIED"
}, - "errorSli": { },
- "filters": [
- {
- "field": "field_name",
- "compareType": "COMPARE_TYPE_UNSPECIFIED",
- "fieldValues": [
- "value1",
- "value2"
]
}
], - "period": "SLO_PERIOD_UNSPECIFIED"
}
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/service_slos/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
deprecatedEntityType | string |
entityType | string Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/routers?deprecatedEntityType=SOME_STRING_VALUE&entityType=SOME_STRING_VALUE'; 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));
{- "routers": [
- {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-provided-id",
- "deprecatedEntityType": "string",
- "name": "My Router",
- "description": "string",
- "rules": [
- {
- "condition": "alertDef.priority == 'P3'",
- "targets": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "name": "string"
}
], - "fallback": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "entityLabels": {
- "property1": "string",
- "property2": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
]
}
No description available
id | string (A unique identifier - automatically generated unless provided by the user) |
userDefinedId | string (DEPRECATED - A unique identifier provided by the user) |
deprecatedEntityType | string (The source of the notification (e.g., "alerts")) |
name required | string |
description | string |
Array of objects (The routing rules to be applied in order to determine the destinations of the notification, teh first rule that matches will be used) | |
Array of objects (The fallback destinations to be used if no rule matches) | |
createTime | string <date-time> (System-generated timestamp for when the router was last updated) |
updateTime | string <date-time> (System-generated timestamp for when the router was last updated) |
object | |
entityType required | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
{- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-provided-id",
- "deprecatedEntityType": "string",
- "name": "My Router",
- "description": "string",
- "rules": [
- {
- "condition": "alertDef.priority == 'P3'",
- "targets": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "name": "string"
}
], - "fallback": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "entityLabels": {
- "property1": "string",
- "property2": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
{- "router": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-provided-id",
- "deprecatedEntityType": "string",
- "name": "My Router",
- "description": "string",
- "rules": [
- {
- "condition": "alertDef.priority == 'P3'",
- "targets": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "name": "string"
}
], - "fallback": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "entityLabels": {
- "property1": "string",
- "property2": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}
No description available
id | string (A unique identifier - automatically generated unless provided by the user) |
userDefinedId | string (DEPRECATED - A unique identifier provided by the user) |
deprecatedEntityType | string (The source of the notification (e.g., "alerts")) |
name required | string |
description | string |
Array of objects (The routing rules to be applied in order to determine the destinations of the notification, teh first rule that matches will be used) | |
Array of objects (The fallback destinations to be used if no rule matches) | |
createTime | string <date-time> (System-generated timestamp for when the router was last updated) |
updateTime | string <date-time> (System-generated timestamp for when the router was last updated) |
object | |
entityType required | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
{- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-provided-id",
- "deprecatedEntityType": "string",
- "name": "My Router",
- "description": "string",
- "rules": [
- {
- "condition": "alertDef.priority == 'P3'",
- "targets": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "name": "string"
}
], - "fallback": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "entityLabels": {
- "property1": "string",
- "property2": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
{- "router": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-provided-id",
- "deprecatedEntityType": "string",
- "name": "My Router",
- "description": "string",
- "rules": [
- {
- "condition": "alertDef.priority == 'P3'",
- "targets": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "name": "string"
}
], - "fallback": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "entityLabels": {
- "property1": "string",
- "property2": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}
No description available
id required | string |
deprecatedIdentifier.id | string |
deprecatedIdentifier.userFacingId | string |
identifier.id | string The unique identifier automatically generated by the service |
identifier.userDefinedId | string The unique identifier provided by the user |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/routers/%7Bid%7D?deprecatedIdentifier.id=SOME_STRING_VALUE&deprecatedIdentifier.userFacingId=SOME_STRING_VALUE&identifier.id=SOME_STRING_VALUE&identifier.userDefinedId=SOME_STRING_VALUE'; 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));
{- "router": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-provided-id",
- "deprecatedEntityType": "string",
- "name": "My Router",
- "description": "string",
- "rules": [
- {
- "condition": "alertDef.priority == 'P3'",
- "targets": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "name": "string"
}
], - "fallback": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "entityLabels": {
- "property1": "string",
- "property2": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}
No description available
id required | string |
deprecatedIdentifier.id | string |
deprecatedIdentifier.userFacingId | string |
identifier.id | string The unique identifier automatically generated by the service |
identifier.userDefinedId | string The unique identifier provided by the user |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/routers/%7Bid%7D?deprecatedIdentifier.id=SOME_STRING_VALUE&deprecatedIdentifier.userFacingId=SOME_STRING_VALUE&identifier.id=SOME_STRING_VALUE&identifier.userDefinedId=SOME_STRING_VALUE'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
globalRouterIds | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/routers:batchGetSummaries?globalRouterIds=SOME_ARRAY_VALUE'; 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));
{- "routers": {
- "property1": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-provided-id",
- "deprecatedEntityType": "string",
- "name": "My Router",
- "description": "string",
- "rules": [
- {
- "condition": "alertDef.priority == 'P3'",
- "targets": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "name": "string"
}
], - "fallback": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "entityLabels": {
- "property1": "string",
- "property2": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "property2": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-provided-id",
- "deprecatedEntityType": "string",
- "name": "My Router",
- "description": "string",
- "rules": [
- {
- "condition": "alertDef.priority == 'P3'",
- "targets": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "name": "string"
}
], - "fallback": [
- {
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "customDetails": {
- "property1": "string",
- "property2": "string"
}, - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string",
- "presetId": "string"
}
], - "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "entityLabels": {
- "property1": "string",
- "property2": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "notFoundIds": [
- "global-router-id-3"
]
}
No description available
id | string (A unique identifier - automatically generated unless provided by the user) |
userDefinedId | string (DEPRECATED - A unique identifier provided by the user) |
type required | string (notification_centerConnectorType) Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
teamId | integer <int64> |
name required | string <= 200 characters |
description | string <= 5000 characters |
createTime | string <date-time> (System-generated timestamp for when the connector was last updated) |
updateTime | string <date-time> (System-generated timestamp for when the connector was last updated) |
Array of objects (Configuration override templates for specific entity types, values from connector_configs will be used if not overridden) | |
object (Connector Config) Configuration for a specific output schema of a connector |
{- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-connector-id",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": "12345",
- "name": "My Slack Connector",
- "description": "Connector for team notifications",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "configOverrides": [
- {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "fields": [
- {
- "fieldName": "string",
- "template": "string"
}
]
}
], - "connectorConfig": {
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
]
}
}
{- "connector": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-connector-id",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": "12345",
- "name": "My Slack Connector",
- "description": "Connector for team notifications",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "configOverrides": [
- {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "fields": [
- {
- "fieldName": "string",
- "template": "string"
}
]
}
], - "connectorConfig": {
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
]
}
}
}
No description available
connectorType | string Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/connectors?connectorType=SOME_STRING_VALUE'; 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));
{- "connectors": [
- {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-connector-id",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": "12345",
- "name": "My Slack Connector",
- "description": "Connector for team notifications",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "configOverrides": [
- {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "fields": [
- {
- "fieldName": "string",
- "template": "string"
}
]
}
], - "connectorConfig": {
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
]
}
}
]
}
No description available
id | string (A unique identifier - automatically generated unless provided by the user) |
userDefinedId | string (DEPRECATED - A unique identifier provided by the user) |
type required | string (notification_centerConnectorType) Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
teamId | integer <int64> |
name required | string <= 200 characters |
description | string <= 5000 characters |
createTime | string <date-time> (System-generated timestamp for when the connector was last updated) |
updateTime | string <date-time> (System-generated timestamp for when the connector was last updated) |
Array of objects (Configuration override templates for specific entity types, values from connector_configs will be used if not overridden) | |
object (Connector Config) Configuration for a specific output schema of a connector |
{- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-connector-id",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": "12345",
- "name": "My Slack Connector",
- "description": "Connector for team notifications",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "configOverrides": [
- {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "fields": [
- {
- "fieldName": "string",
- "template": "string"
}
]
}
], - "connectorConfig": {
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
]
}
}
{- "connector": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-connector-id",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": "12345",
- "name": "My Slack Connector",
- "description": "Connector for team notifications",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "configOverrides": [
- {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "fields": [
- {
- "fieldName": "string",
- "template": "string"
}
]
}
], - "connectorConfig": {
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
]
}
}
}
No description available
id required | string |
deprecatedId | string |
identifier.id | string The unique identifier automatically generated by the service |
identifier.userDefinedId | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/connectors/%7Bid%7D?deprecatedId=SOME_STRING_VALUE&identifier.id=SOME_STRING_VALUE&identifier.userDefinedId=SOME_STRING_VALUE'; 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));
{- "connector": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-connector-id",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": "12345",
- "name": "My Slack Connector",
- "description": "Connector for team notifications",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "configOverrides": [
- {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "fields": [
- {
- "fieldName": "string",
- "template": "string"
}
]
}
], - "connectorConfig": {
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
]
}
}
}
No description available
id required | string |
deprecatedId | string |
identifier.id | string The unique identifier automatically generated by the service |
identifier.userDefinedId | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/connectors/%7Bid%7D?deprecatedId=SOME_STRING_VALUE&identifier.id=SOME_STRING_VALUE&identifier.userDefinedId=SOME_STRING_VALUE'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
deprecatedIds | Array of strings |
connectorIds | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/connectors:batchGet?deprecatedIds=SOME_ARRAY_VALUE&connectorIds=SOME_ARRAY_VALUE'; 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));
{- "connectors": {
- "property1": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-connector-id",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": "12345",
- "name": "My Slack Connector",
- "description": "Connector for team notifications",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "configOverrides": [
- {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "fields": [
- {
- "fieldName": "string",
- "template": "string"
}
]
}
], - "connectorConfig": {
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
]
}
}, - "property2": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-connector-id",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": "12345",
- "name": "My Slack Connector",
- "description": "Connector for team notifications",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "configOverrides": [
- {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "fields": [
- {
- "fieldName": "string",
- "template": "string"
}
]
}
], - "connectorConfig": {
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
]
}
}
}, - "notFoundIds": [
- "connector-id-3"
]
}
No description available
deprecatedIds | Array of strings |
connectorIds | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/connectors:batchGetSummaries?deprecatedIds=SOME_ARRAY_VALUE&connectorIds=SOME_ARRAY_VALUE'; 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));
{- "connectorSummaries": {
- "property1": {
- "id": "string",
- "userDefinedId": "string",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": 0,
- "name": "string",
- "description": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z"
}, - "property2": {
- "id": "string",
- "userDefinedId": "string",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": 0,
- "name": "string",
- "description": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z"
}
}, - "notFoundIds": [
- "connector-id-3"
]
}
No description available
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/connectors:getTypeSummaries'; 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));
{- "connectorTypeSummaries": [
- {
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "count": "5"
}
]
}
No description available
connectorType | string Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/connectors:listSummaries?connectorType=SOME_STRING_VALUE'; 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));
{- "connectors": [
- {
- "id": "string",
- "userDefinedId": "string",
- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "teamId": 0,
- "name": "string",
- "description": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z"
}
]
}
No description available
id | string (A unique identifier - automatically generated unless provided by the user) |
userDefinedId | string (DEPRECATED - A unique identifier provided by the user) |
deprecatedEntityType | string |
connectorType | string (notification_centerConnectorType) Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
required | Array of objects (A list of of configuration override templates, each associated with a specific output schema and condition) |
name required | string |
description | string |
createTime | string <date-time> (System-generated timestamp for when the preset was created) |
updateTime | string <date-time> (System-generated timestamp for when the preset was last updated) |
presetType | string (v1PresetType) Default: "PRESET_TYPE_UNSPECIFIED" Enum: "PRESET_TYPE_UNSPECIFIED" "SYSTEM" "CUSTOM" |
entityType required | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
parentId | string |
{- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "configOverrides": [
- {
- "conditionType": {
- "matchEntityType": {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "matchEntityTypeAndSubType": {
- "deprecatedEntityType": "string",
- "entitySubType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "payloadType": "string",
- "messageConfig": {
- "fields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
}
}
], - "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "parentId": "preset_system_slack_alerts_detailed"
}
{- "preset": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "configOverrides": [
- {
- "conditionType": {
- "matchEntityType": {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "matchEntityTypeAndSubType": {
- "deprecatedEntityType": "string",
- "entitySubType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "payloadType": "string",
- "messageConfig": {
- "fields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
}
}
], - "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "parentId": "preset_system_slack_alerts_detailed"
}
}
No description available
id | string (A unique identifier - automatically generated unless provided by the user) |
userDefinedId | string (DEPRECATED - A unique identifier provided by the user) |
deprecatedEntityType | string |
connectorType | string (notification_centerConnectorType) Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
required | Array of objects (A list of of configuration override templates, each associated with a specific output schema and condition) |
name required | string |
description | string |
createTime | string <date-time> (System-generated timestamp for when the preset was created) |
updateTime | string <date-time> (System-generated timestamp for when the preset was last updated) |
presetType | string (v1PresetType) Default: "PRESET_TYPE_UNSPECIFIED" Enum: "PRESET_TYPE_UNSPECIFIED" "SYSTEM" "CUSTOM" |
entityType required | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
parentId | string |
{- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "configOverrides": [
- {
- "conditionType": {
- "matchEntityType": {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "matchEntityTypeAndSubType": {
- "deprecatedEntityType": "string",
- "entitySubType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "payloadType": "string",
- "messageConfig": {
- "fields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
}
}
], - "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "parentId": "preset_system_slack_alerts_detailed"
}
{- "preset": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "configOverrides": [
- {
- "conditionType": {
- "matchEntityType": {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "matchEntityTypeAndSubType": {
- "deprecatedEntityType": "string",
- "entitySubType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "payloadType": "string",
- "messageConfig": {
- "fields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
}
}
], - "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "parentId": "preset_system_slack_alerts_detailed"
}
}
No description available
id required | string |
deprecatedIdentifier2.id | string |
deprecatedIdentifier2.userFacingId | string |
identifier.id | string The unique identifier automatically generated by the service |
identifier.userDefinedId | string The unique identifier provided by the user |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/presets/custom/%7Bid%7D?deprecatedIdentifier2.id=SOME_STRING_VALUE&deprecatedIdentifier2.userFacingId=SOME_STRING_VALUE&identifier.id=SOME_STRING_VALUE&identifier.userDefinedId=SOME_STRING_VALUE'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
id required | string |
deprecatedIdentifier2.id | string |
deprecatedIdentifier2.userFacingId | string |
identifier.id | string The unique identifier automatically generated by the service |
identifier.userDefinedId | string The unique identifier provided by the user |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/presets/custom/%7Bid%7D:defaultSet?deprecatedIdentifier2.id=SOME_STRING_VALUE&deprecatedIdentifier2.userFacingId=SOME_STRING_VALUE&identifier.id=SOME_STRING_VALUE&identifier.userDefinedId=SOME_STRING_VALUE'; let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
id required | string |
deprecatedIdentifier2.id | string |
deprecatedIdentifier2.userFacingId | string |
identifier.id | string The unique identifier automatically generated by the service |
identifier.userDefinedId | string The unique identifier provided by the user |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/presets/%7Bid%7D?deprecatedIdentifier2.id=SOME_STRING_VALUE&deprecatedIdentifier2.userFacingId=SOME_STRING_VALUE&identifier.id=SOME_STRING_VALUE&identifier.userDefinedId=SOME_STRING_VALUE'; 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));
{- "preset": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "configOverrides": [
- {
- "conditionType": {
- "matchEntityType": {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "matchEntityTypeAndSubType": {
- "deprecatedEntityType": "string",
- "entitySubType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "payloadType": "string",
- "messageConfig": {
- "fields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
}
}
], - "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "parentId": "preset_system_slack_alerts_detailed"
}
}
No description available
id required | string |
deprecatedIdentifier.id | string |
deprecatedIdentifier.userFacingId | string |
identifier.id | string The unique identifier automatically generated by the service |
identifier.userDefinedId | string The unique identifier provided by the user |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/presets/%7Bid%7D:defaultSet?deprecatedIdentifier.id=SOME_STRING_VALUE&deprecatedIdentifier.userFacingId=SOME_STRING_VALUE&identifier.id=SOME_STRING_VALUE&identifier.userDefinedId=SOME_STRING_VALUE'; let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
deprecatedIds | Array of strings |
presetIds | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/presets:batchGet?deprecatedIds=SOME_ARRAY_VALUE&presetIds=SOME_ARRAY_VALUE'; 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));
{- "presets": {
- "property1": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "configOverrides": [
- {
- "conditionType": {
- "matchEntityType": {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "matchEntityTypeAndSubType": {
- "deprecatedEntityType": "string",
- "entitySubType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "payloadType": "string",
- "messageConfig": {
- "fields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
}
}
], - "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "parentId": "preset_system_slack_alerts_detailed"
}, - "property2": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "configOverrides": [
- {
- "conditionType": {
- "matchEntityType": {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "matchEntityTypeAndSubType": {
- "deprecatedEntityType": "string",
- "entitySubType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "payloadType": "string",
- "messageConfig": {
- "fields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
}
}
], - "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "parentId": "preset_system_slack_alerts_detailed"
}
}, - "notFoundIds": [
- "string"
]
}
No description available
connectorType | string Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
deprecatedEntityType | string |
entityType | string Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/presets:defaultSummaryGet?connectorType=SOME_STRING_VALUE&deprecatedEntityType=SOME_STRING_VALUE&entityType=SOME_STRING_VALUE'; 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));
{- "presetSummary": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "parentId": "c246e826-10c2-405e-8d3f-afcc24ad4d15",
- "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}
No description available
connectorType | string Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
deprecatedEntityType | string |
entityType | string Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/presets:summariesList?connectorType=SOME_STRING_VALUE&deprecatedEntityType=SOME_STRING_VALUE&entityType=SOME_STRING_VALUE'; 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));
{- "presetSummaries": [
- {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "parentId": "c246e826-10c2-405e-8d3f-afcc24ad4d15",
- "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
]
}
No description available
connectorType | string Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
deprecatedEntityType | string |
entityType | string Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/presets:systemDefaultSummaryGet?connectorType=SOME_STRING_VALUE&deprecatedEntityType=SOME_STRING_VALUE&entityType=SOME_STRING_VALUE'; 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));
{- "presetSummary": {
- "id": "a16e24c8-4db2-4abf-ba3c-c9e1fc35a3b9",
- "userDefinedId": "user-preset-id",
- "deprecatedEntityType": "string",
- "connectorType": "CONNECTOR_TYPE_UNSPECIFIED",
- "parentId": "c246e826-10c2-405e-8d3f-afcc24ad4d15",
- "name": "My Preset",
- "description": "Custom preset for alerts",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "presetType": "PRESET_TYPE_UNSPECIFIED",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}
No description available
Request to test a connector configuration
type | string (notification_centerConnectorType) Default: "CONNECTOR_TYPE_UNSPECIFIED" Enum: "CONNECTOR_TYPE_UNSPECIFIED" "SLACK" "GENERIC_HTTPS" "PAGERDUTY" "AWS" "IBM_EVENT_NOTIFICATIONS" |
outputSchemaId | string |
Array of objects (coralogixapisnotification_centerConnectorConfigField) | |
deprecatedEntityType | string |
entityType | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
{- "type": "CONNECTOR_TYPE_UNSPECIFIED",
- "outputSchemaId": "default",
- "fields": [
- {
- "fieldName": "string",
- "value": "string"
}
], - "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
{- "result": {
- "success": { },
- "failure": {
- "message": "string",
- "statusCode": 0
}
}
}
No description available
deprecatedEntityType | string |
entitySubType | string |
deprecatedConnectorId | string |
deprecatedPresetId | string |
outputSchemaId | string |
Array of objects (Message Config Field) | |
object (Deprecated - use single id field instead) | |
object (Deprecated - use single id field instead) | |
entityType | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
Array of objects (notification_centerTemplatedConnectorConfigField) | |
connectorId | string |
presetId | string |
{- "deprecatedEntityType": "string",
- "entitySubType": "logsImmediateResolved",
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "outputSchemaId": "default",
- "messageConfigFields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
], - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "connectorConfigFields": [
- {
- "fieldName": "string",
- "template": "string"
}
], - "connectorId": "string",
- "presetId": "string"
}
{- "result": {
- "success": { },
- "failure": {
- "message": "string",
- "statusCode": 0
}
}
}
No description available
deprecatedConnectorId | string |
outputSchemaId | string |
object (Deprecated - use single id field instead) | |
connectorId | string |
{- "deprecatedConnectorId": "string",
- "outputSchemaId": "default",
- "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "connectorId": "string"
}
{- "result": {
- "success": { },
- "failure": {
- "message": "string",
- "statusCode": 0
}
}
}
No description available
deprecatedEntityType | string |
entitySubType | string |
deprecatedPresetId | string |
deprecatedConnectorId | string |
object (Deprecated - use single id field instead) | |
object (Deprecated - use single id field instead) | |
entityType | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
connectorId | string |
presetId | string |
{- "deprecatedEntityType": "string",
- "entitySubType": "logsImmediateResolved",
- "deprecatedPresetId": "string",
- "deprecatedConnectorId": "string",
- "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "connectorId": "string",
- "presetId": "string"
}
{- "result": {
- "success": { },
- "failure": {
- "message": "string",
- "statusCode": 0
}
}
}
No description available
deprecatedEntityType | string |
entitySubType | string |
deprecatedConnectorId | string |
deprecatedPresetId | string |
Array of objects (notification_centerConfigOverrides) | |
object (Deprecated - use single id field instead) | |
object (Deprecated - use single id field instead) | |
entityType | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
connectorId | string |
parentPresetId | string |
{- "deprecatedEntityType": "string",
- "entitySubType": "metric",
- "deprecatedConnectorId": "string",
- "deprecatedPresetId": "string",
- "configOverrides": [
- {
- "conditionType": {
- "matchEntityType": {
- "deprecatedEntityType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}, - "matchEntityTypeAndSubType": {
- "deprecatedEntityType": "string",
- "entitySubType": "string",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
}, - "payloadType": "string",
- "messageConfig": {
- "fields": [
- {
- "fieldName": "title",
- "template": "{{alert.status}} {{alertDef.priority}} - {{alertDef.name}}"
}
]
}
}
], - "connectorIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "presetIdentifier": {
- "id": "string",
- "userDefinedId": "string"
}, - "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "connectorId": "string",
- "parentPresetId": "string"
}
{- "result": {
- "success": { },
- "failure": {
- "message": "string",
- "statusCode": 0
}
}
}
No description available
Request to check that provided routing condition is valid
deprecatedEntityType | string |
template | string |
entityType | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
{- "deprecatedEntityType": "string",
- "template": "alertDef.priority == 'P1'",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
{- "success": {
- "result": true
}, - "failure": {
- "message": "Invalid condition: condition should be rendered to a boolean value (true or false)"
}
}
No description available
deprecatedEntityType | string |
entitySubType | string |
template | string |
entityType | string (coralogixapisnotification_centerEntityType) Default: "ENTITY_TYPE_UNSPECIFIED" Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
{- "deprecatedEntityType": "string",
- "entitySubType": "logsImmediateResolved",
- "template": "{{ alertDef.name }}",
- "entityType": "ENTITY_TYPE_UNSPECIFIED"
}
{- "result": {
- "success": {
- "renderedValue": "Rendered template result"
}, - "failure": {
- "message": "Template rendering failed",
- "reason": "FAILURE_REASON_UNSPECIFIED"
}
}
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/entity-types'; 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));
{- "deprecatedEntityTypes": [
- "string"
], - "entityTypes": [
- "ENTITY_TYPE_UNSPECIFIED"
]
}
No description available
entityType required | string Enum: "ENTITY_TYPE_UNSPECIFIED" "ALERTS" "TEST_NOTIFICATIONS" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/notification-center/entity-types/%7BentityType%7D/entity-subtypes'; 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));
{- "entitySubTypes": [
- "string"
]
}
No description available
This data structure is used to create an API key.
name required | string |
required | object (v3Owner) |
required | object (Key Permissions) This data structure allows to specify loose permissions and permission presets for an API key. |
hashed required | boolean |
{- "name": "my_api_key",
- "owner": {
- "userId": "string",
- "teamId": 0,
- "organisationId": "string"
}, - "keyPermissions": {
- "presets": [
- "my_preset"
], - "permissions": [
- "read_logs"
]
}, - "hashed": true
}
{- "keyId": "my_key_id",
- "name": "my_api_key",
- "value": "my_api_key_value"
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/send_data'; 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));
{- "keys": [
- {
- "name": "my_api_key",
- "owner": {
- "userId": "string",
- "teamId": 0,
- "organisationId": "string"
}, - "active": true,
- "hashed": true,
- "keyPermissions": {
- "presets": [
- {
- "name": "my_preset",
- "permissions": [
- "read_logs"
]
}
], - "permissions": [
- "string"
]
}, - "value": "string",
- "id": "string"
}
]
}
No description available
keyId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/%7BkeyId%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));
{- "keyInfo": {
- "name": "my_api_key",
- "owner": {
- "userId": "string",
- "teamId": 0,
- "organisationId": "string"
}, - "active": true,
- "hashed": true,
- "keyPermissions": {
- "presets": [
- {
- "name": "my_preset",
- "permissions": [
- "read_logs"
]
}
], - "permissions": [
- "string"
]
}, - "value": "string",
- "id": "string"
}
}
No description available
keyId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/api_keys/%7BkeyId%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
keyId required | string |
newName | string |
isActive | boolean |
object (Presets) This data structure represents a set of permissions presets on an API key. | |
object (Permissions) This data structure represents a set of permissions on an API key. |
{- "newName": "my_new_name",
- "isActive": true,
- "presets": {
- "presets": [
- "string"
]
}, - "permissions": {
- "permissions": [
- "string"
]
}
}
{ }
No description available
This data structure is used to activate or deactivate a SAML identity provider
teamId required | integer <int64> |
isActive required | boolean |
{- "teamId": 0,
- "isActive": true
}
{ }
No description available
teamId required | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/sso/saml/configuration?teamId=SOME_INTEGER_VALUE'; 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));
{- "teamId": 0,
- "spParameters": {
- "signingCertPem": "certificate",
- "nameIdFormat": "name_id",
- "assertionConsumerServiceUrl": "assertion",
- "binding": "binding"
}, - "idpParameters": {
- "active": true,
- "metadataContent": "<?xml version= ...",
- "teamEntityId": 1234567,
- "groupNames": [
- "group1"
]
}, - "idpDetails": {
- "name": "string",
- "icon": "string"
}
}
No description available
This data structure is used to set the parameters of a SAML identity provider
teamId required | integer <int64> |
required | object (IDP Parameters) This data structure represents a set of SAML identity provider parameters |
{- "teamId": 0,
- "params": {
- "active": true,
- "metadataContent": "<?xml version= ...",
- "teamEntityId": 1234567,
- "groupNames": [
- "group1"
]
}
}
{ }
No description available
teamId required | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/sso/saml/sp_parameters?teamId=SOME_INTEGER_VALUE'; 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));
{- "params": {
- "signingCertPem": "certificate",
- "nameIdFormat": "name_id",
- "assertionConsumerServiceUrl": "assertion",
- "binding": "binding"
}
}
View and manage your alerts using alert definitions - data structures that contain the configuration required to create an alert.
No description available
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-defs'; 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));
{- "alertDefs": [
- {
- "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": null,
- "operation": null
}
], - "subsystemName": [
- {
- "value": null,
- "operation": null
}
], - "severities": [
- "LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
}, - "notificationPayloadFilter": [
- "obj.field"
]
}, - "tracingImmediate": {
- "tracingFilter": {
- "simpleFilter": {
- "tracingLabelFilters": {
- "applicationName": [
- {
- "values": [ ],
- "operation": null
}
], - "subsystemName": [
- {
- "values": [ ],
- "operation": null
}
], - "serviceName": [
- {
- "values": [ ],
- "operation": null
}
], - "operationName": [
- {
- "values": [ ],
- "operation": null
}
], - "spanFields": [
- {
- "key": null,
- "filterType": null
}
]
}, - "latencyThresholdMs": 1000
}
}, - "notificationPayloadFilter": [
- "obj.field"
]
}, - "logsThreshold": {
- "logsFilter": {
- "simpleFilter": {
- "luceneQuery": "string",
- "labelFilters": {
- "applicationName": [
- {
- "value": null,
- "operation": null
}
], - "subsystemName": [
- {
- "value": null,
- "operation": null
}
], - "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": null,
- "operation": null
}
], - "subsystemName": [
- {
- "value": null,
- "operation": null
}
], - "severities": [
- "LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
}, - "numeratorAlias": "numerator_alias",
- "denominator": {
- "simpleFilter": {
- "luceneQuery": "string",
- "labelFilters": {
- "applicationName": [
- {
- "value": null,
- "operation": null
}
], - "subsystemName": [
- {
- "value": null,
- "operation": null
}
], - "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": null,
- "operation": null
}
], - "subsystemName": [
- {
- "value": null,
- "operation": null
}
], - "severities": [
- "LOG_SEVERITY_VERBOSE_UNSPECIFIED"
]
}
}
}, - "rules": [
- {
- "condition": {
- "threshold": 0.1,
- "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": [ ],
- "operation": null
}
], - "subsystemName": [
- {
- "values": [ ],
- "operation": null
}
], - "serviceName": [
- {
- "values": [ ],
- "operation": null
}
], - "operationName": [
- {
- "values": [ ],
- "operation": null
}
], - "spanFields": [
- {
- "key": null,
- "filterType": null
}
]
}, - "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": [ ],
- "nextOp": null,
- "alertsOp": null
}
]
}, - "timeframeMs": "string",
- "timeframeType": "TIMEFRAME_TYPE_UNSPECIFIED"
}
], - "enforceSuppression": true
}, - "logsAnomaly": {
- "logsFilter": {
- "simpleFilter": {
- "luceneQuery": "string",
- "labelFilters": {
- "applicationName": [
- {
- "value": null,
- "operation": null
}
], - "subsystemName": [
- {
- "value": null,
- "operation": null
}
], - "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": 0.1
}
}, - "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": 0.1
}
}, - "logsNewValue": {
- "logsFilter": {
- "simpleFilter": {
- "luceneQuery": "string",
- "labelFilters": {
- "applicationName": [
- {
- "value": null,
- "operation": null
}
], - "subsystemName": [
- {
- "value": null,
- "operation": null
}
], - "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": null,
- "operation": null
}
], - "subsystemName": [
- {
- "value": null,
- "operation": null
}
], - "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": [
- null
], - "connectorConfigFields": [
- null
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- null
], - "connectorConfigFields": [
- null
]
}
}
}
], - "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": [ ]
}
}
}
], - "destinations": [
- {
- "connectorId": "connector_id_example",
- "presetId": "preset_id_example",
- "notifyOn": "NOTIFY_ON_TRIGGERED_ONLY_UNSPECIFIED",
- "triggeredRoutingOverrides": {
- "configOverrides": {
- "outputSchemaId": null,
- "messageConfigFields": [ ],
- "connectorConfigFields": [ ]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": null,
- "messageConfigFields": [ ],
- "connectorConfigFields": [ ]
}
}
}
], - "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"
}
]
}
No description available
name required | string The name of the alert definition |
description | string A detailed description of what the alert monitors and when it triggers |
enabled | boolean Default: "true" Whether the alert is currently active and monitoring |
priority required | string (v3AlertDefPriority) Default: "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED" Enum: "ALERT_DEF_PRIORITY_P5_OR_UNSPECIFIED" "ALERT_DEF_PRIORITY_P4" "ALERT_DEF_PRIORITY_P3" "ALERT_DEF_PRIORITY_P2" "ALERT_DEF_PRIORITY_P1" |
object (Alert activity schedule) Defines when an alert should be active based on days of the week and time windows | |
type required | string (v3AlertDefType) Default: "ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED" Enum: "ALERT_DEF_TYPE_LOGS_IMMEDIATE_OR_UNSPECIFIED" "ALERT_DEF_TYPE_LOGS_THRESHOLD" "ALERT_DEF_TYPE_LOGS_ANOMALY" "ALERT_DEF_TYPE_LOGS_RATIO_THRESHOLD" "ALERT_DEF_TYPE_LOGS_NEW_VALUE" "ALERT_DEF_TYPE_LOGS_UNIQUE_COUNT" "ALERT_DEF_TYPE_LOGS_TIME_RELATIVE_THRESHOLD" "ALERT_DEF_TYPE_METRIC_THRESHOLD" "ALERT_DEF_TYPE_METRIC_ANOMALY" "ALERT_DEF_TYPE_TRACING_IMMEDIATE" "ALERT_DEF_TYPE_TRACING_THRESHOLD" "ALERT_DEF_TYPE_FLOW" |
object (Logs immediate alert type) Configuration for immediate alerts triggered on log entries matching specific filters. | |
object (Trace-based immediate alert type) Configuration for immediate alerts triggered on trace entries | |
object (Log-based threshold alert type) Configuration for alerts triggered when log counts exceed or fall below specified thresholds | |
object (Log-based ratio threshold alert type) Configuration for alerts based on the ratio between two log queries | |
object (Log-based time-relative threshold alert type) Configuration for alerts that are triggered when a fixed ratio reaches a set threshold compared to a past time frame. | |
object (Metric-based threshold alert type) Configuration for alerts based on metric threshold violations | |
object (Trace-based threshold alert type) Configuration for alerts based on trace count thresholds | |
object (Flow alert type) Configuration for flow-based alerts with multiple stages | |
object (Log-based anomaly alert type) Configuration for alerts triggered by anomalous log patterns | |
object (Metric-based anomaly alert type) Configuration for alerts triggered by anomalous metric patterns | |
object (Log-based new value alert type) Configuration for alerts triggered by new values appearing in logs | |
object (Log-based unique count alert type) Configuration for alerts based on unique value counts in logs | |
groupByKeys | Array of strings <= 2 items Keys used to group and aggregate alert data |
object (Alert definition incident settings) | |
object (Alert definition notification group) | |
Array of objects (Alert definition notification group) Additional notification groups for alerts (deprecated) | |
object Labels used to identify and categorize the alert entity | |
phantomMode | boolean Default: "false" Whether the alert is in phantom mode (creating incidents or not) |
deleted | boolean Default: "false" Whether the alert has been marked as deleted |
{- "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": 0.1,
- "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": 0.1
}
}, - "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": 0.1
}
}, - "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
}
{- "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": [ ],
- "operation": null
}
}
]
}, - "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": 0.1,
- "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": [ ],
- "operation": null
}
}
]
}, - "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": [
- null
], - "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": 0.1
}
}, - "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": 0.1
}
}, - "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": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- {
- "fieldName": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}
}
], - "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": [
- null
], - "connectorConfigFields": [
- null
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- null
], - "connectorConfigFields": [
- null
]
}
}
}
], - "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"
}
}
No description available
A request to replace an existing alert definition
required | object (Alert definition properties) User-configurable properties of an alert definition |
id required | string (Alert definition ID) Alert definition ID |
{- "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": 0.1,
- "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": null,
- "not": null
}
], - "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": 0.1
}
}, - "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": 0.1
}
}, - "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": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- {
- "fieldName": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}
}
], - "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"
}
{- "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": [ ],
- "operation": null
}
}
]
}, - "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": 0.1,
- "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": [ ],
- "operation": null
}
}
]
}, - "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": [
- null
], - "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": 0.1
}
}, - "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": 0.1
}
}, - "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": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- {
- "fieldName": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}
}
], - "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": [
- null
], - "connectorConfigFields": [
- null
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- null
], - "connectorConfigFields": [
- null
]
}
}
}
], - "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"
}
}
No description available
alertVersionId required | string <UUIDv4> Alert version ID |
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));
{- "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": [ ],
- "operation": null
}
}
]
}, - "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": 0.1,
- "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": [ ],
- "operation": null
}
}
]
}, - "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": [
- null
], - "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": 0.1
}
}, - "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": 0.1
}
}, - "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": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- {
- "fieldName": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}
}
], - "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": [
- null
], - "connectorConfigFields": [
- null
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- null
], - "connectorConfigFields": [
- null
]
}
}
}
], - "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"
}
}
No description available
id required | string <UUIDv4> Alert definition ID |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-defs/%7Bid%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));
{- "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": [ ],
- "operation": null
}
}
]
}, - "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": 0.1,
- "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": [ ],
- "operation": null
}
}
]
}, - "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": [
- null
], - "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": 0.1
}
}, - "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": 0.1
}
}, - "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": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- {
- "fieldName": null,
- "template": null
}
], - "connectorConfigFields": [
- {
- "fieldName": null,
- "template": null
}
]
}
}
}
], - "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": [
- null
], - "connectorConfigFields": [
- null
]
}
}, - "resolvedRouteOverrides": {
- "configOverrides": {
- "outputSchemaId": "output_schema_id_example",
- "messageConfigFields": [
- null
], - "connectorConfigFields": [
- null
]
}
}
}
], - "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"
}
}
No description available
id required | string <UUIDv4> Alert definition ID |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-defs/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
id required | string <UUIDv4> The alert definition ID |
active required | boolean Whether to enable or disable the alert definition |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-defs/%7Bid%7D:setActive?active=SOME_BOOLEAN_VALUE'; let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
Download a list of all accessible alert definitions in base64-encoded byte format.
Requires the following permissions:
alerts:ReadConfig
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/alerts/download'; 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));
{- "result": {
- "content": "SGVsbG8gV29ybGQ="
}, - "error": {
- "code": 0,
- "message": "string",
- "details": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}
Get information regarding your alert events - instances of alerts being triggered.
No description available
ids | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-event-stats?ids=SOME_ARRAY_VALUE'; 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));
{- "eventsStats": {
- "property1": {
- "count": 0,
- "resolvedCount": 0,
- "triggeredCount": 0,
- "triggeredPermutationsSamples": [
- {
- "permutationLabels": {
- "property1": "string",
- "property2": "string"
}
}
], - "resolvedPermutationsSamples": [
- {
- "permutationLabels": {
- "property1": "string",
- "property2": "string"
}
}
], - "activityAnalysisStats": {
- "isMutedCount": 0,
- "rules": [
- "string"
]
}
}, - "property2": {
- "count": 0,
- "resolvedCount": 0,
- "triggeredCount": 0,
- "triggeredPermutationsSamples": [
- {
- "permutationLabels": {
- "property1": "string",
- "property2": "string"
}
}
], - "resolvedPermutationsSamples": [
- {
- "permutationLabels": {
- "property1": "string",
- "property2": "string"
}
}
], - "activityAnalysisStats": {
- "isMutedCount": 0,
- "rules": [
- "string"
]
}
}
}
}
No description available
id required | string Alert event ID |
pagination.pageSize | integer <int64> |
pagination.pageToken | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-event/%7Bid%7D?pagination.pageSize=SOME_INTEGER_VALUE&pagination.pageToken=SOME_STRING_VALUE'; 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));
{- "id": "string",
- "singlePermutation": {
- "permutationLabels": {
- "property1": "string",
- "property2": "string"
}, - "groupLabels": {
- "property1": "string",
- "property2": "string"
}, - "timestamp": "2019-08-24T14:15:22Z",
- "alertId": "string",
- "status": "ALERT_STATUS_RESOLVED_OR_UNSPECIFIED",
- "preGroupingEventId": "string",
- "payload": { },
- "payloadType": "string",
- "permutationId": "string",
- "incidentCorrelationKey": "string",
- "activityAnalysis": {
- "rules": [
- "string"
], - "status": "ACTIVITY_ANALYSIS_STATUS_ACTIVATE_OR_UNSPECIFIED"
}
}, - "multiplePermutation": {
- "alertEventMultiplePermutation": [
- {
- "permutationLabels": {
- "property1": "string",
- "property2": "string"
}, - "groupLabels": {
- "property1": "string",
- "property2": "string"
}, - "timestamp": "2019-08-24T14:15:22Z",
- "alertId": "string",
- "status": "ALERT_STATUS_RESOLVED_OR_UNSPECIFIED",
- "preGroupingEventId": "string",
- "payload": { },
- "payloadType": "string",
- "permutationId": "string",
- "incidentCorrelationKey": "string",
- "activityAnalysis": {
- "rules": [
- "string"
], - "status": "ACTIVITY_ANALYSIS_STATUS_ACTIVATE_OR_UNSPECIFIED"
}
}
]
}, - "pagination": {
- "totalSize": 0,
- "nextPageToken": "string"
}
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/rule-group-sets'; 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));
{- "sets": [
- {
- "id": "string",
- "groups": [
- {
- "name": "string",
- "interval": 0,
- "limit": "string",
- "rules": [
- {
- "record": "string",
- "expr": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "lastEvalDurationMs": "string"
}
], - "lastEvalAt": "string",
- "version": 0,
- "id": "string"
}
], - "name": "string"
}
]
}
No description available
A set of rule groups to create.
Array of objects (In Rule Group) | |
name | string |
{- "groups": [
- {
- "name": "string",
- "interval": 0,
- "limit": "string",
- "rules": [
- {
- "record": "string",
- "expr": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}
}
], - "version": 0,
- "id": "string"
}
], - "name": "string"
}
{- "id": "string"
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/rule-group-sets/%7Bid%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));
{- "id": "string",
- "groups": [
- {
- "name": "string",
- "interval": 0,
- "limit": "string",
- "rules": [
- {
- "record": "string",
- "expr": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}, - "lastEvalDurationMs": "string"
}
], - "lastEvalAt": "string",
- "version": 0,
- "id": "string"
}
], - "name": "string"
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/rule-group-sets/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
id required | string |
Array of objects (In Rule Group) | |
name | string |
{- "groups": [
- {
- "name": "string",
- "interval": 0,
- "limit": "string",
- "rules": [
- {
- "record": "string",
- "expr": "string",
- "labels": {
- "property1": "string",
- "property2": "string"
}
}
], - "version": 0,
- "id": "string"
}
], - "name": "string"
}
{ }
Get a list of all dashboards accessible.
Requires the following permissions:
team-dashboards:Read
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/dashboards/catalog'; 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));
{- "items": [
- {
- "id": "6U1Q8Hpa263Se8PkRKaiE",
- "name": "string",
- "description": "string",
- "isDefault": true,
- "isPinned": true,
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "folder": {
- "id": "string",
- "name": "string",
- "parentId": "string"
}, - "authorId": "string",
- "isLocked": true,
- "lockerAuthorId": "string"
}
]
}
No description available
requestId | string |
object (Dashboard) Dashboard represents the structure and configuration of a Coralogix Custom Dashboard. | |
isLocked | boolean |
{- "requestId": "string",
- "dashboard": {
- "id": "string",
- "name": "string",
- "description": "string",
- "layout": {
- "sections": [
- {
- "id": {
- "value": "string"
}, - "rows": [
- {
- "id": {
- "value": "string"
}, - "appearance": {
- "height": 0
}, - "widgets": [
- {
- "id": {
- "value": null
}, - "title": "string",
- "description": "string",
- "definition": {
- "lineChart": null,
- "dataTable": null,
- "gauge": null,
- "pieChart": null,
- "barChart": null,
- "horizontalBarChart": null,
- "markdown": null,
- "hexagon": null
}, - "appearance": {
- "width": null
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
], - "options": {
- "internal": { },
- "custom": {
- "name": "string",
- "description": "string",
- "collapsed": true,
- "color": {
- "predefined": "SECTION_PREDEFINED_COLOR_UNSPECIFIED"
}
}
}
}
]
}, - "variables": [
- {
- "name": "string",
- "definition": {
- "constant": {
- "value": "string"
}, - "multiSelect": {
- "selected": [
- "string"
], - "source": {
- "logsPath": {
- "value": "string",
- "observationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "metricLabel": {
- "metricName": "string",
- "label": "string"
}, - "constantList": {
- "values": [
- "string"
]
}, - "spanField": {
- "value": {
- "metadataField": "METADATA_FIELD_UNSPECIFIED",
- "tagField": "string",
- "processTagField": "string"
}
}, - "query": {
- "query": {
- "logsQuery": {
- "type": null
}, - "metricsQuery": {
- "type": null
}, - "spansQuery": {
- "type": null
}
}, - "refreshStrategy": "REFRESH_STRATEGY_UNSPECIFIED",
- "valueDisplayOptions": {
- "valueRegex": "string",
- "labelRegex": "string"
}
}
}, - "selection": {
- "all": { },
- "list": {
- "values": [
- "string"
], - "labels": [
- "string"
]
}
}, - "valuesOrderDirection": "ORDER_DIRECTION_UNSPECIFIED",
- "selectionOptions": {
- "selectionType": "SELECTION_TYPE_UNSPECIFIED"
}
}
}, - "displayName": "string",
- "description": "string",
- "displayType": "VARIABLE_DISPLAY_TYPE_UNSPECIFIED"
}
], - "filters": [
- {
- "source": {
- "logs": {
- "field": "string",
- "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}, - "observationField": {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "spans": {
- "field": {
- "metadataField": "METADATA_FIELD_UNSPECIFIED",
- "tagField": "string",
- "processTagField": "string"
}, - "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}, - "observationField": {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "metrics": {
- "metric": "string",
- "label": "string",
- "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}
}
}, - "enabled": true,
- "collapsed": true
}
], - "absoluteTimeFrame": {
- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z"
}, - "relativeTimeFrame": "string",
- "folderId": {
- "value": "string"
}, - "folderPath": {
- "segments": [
- "string"
]
}, - "annotations": [
- {
- "id": "string",
- "name": "string",
- "enabled": true,
- "source": {
- "metrics": {
- "promqlQuery": {
- "value": "string"
}, - "strategy": {
- "startTimeMetric": { }
}, - "messageTemplate": "string",
- "labels": [
- "string"
]
}, - "logs": {
- "luceneQuery": {
- "value": "string"
}, - "strategy": {
- "instant": {
- "timestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "range": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "endTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "duration": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "durationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}
}, - "messageTemplate": "string",
- "labelFields": [
- {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
]
}, - "spans": {
- "luceneQuery": {
- "value": "string"
}, - "strategy": {
- "instant": {
- "timestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "range": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "endTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "duration": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "durationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}
}, - "messageTemplate": "string",
- "labelFields": [
- {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
]
}
}
}
], - "off": { },
- "twoMinutes": { },
- "fiveMinutes": { }
}, - "isLocked": true
}
{- "dashboardId": "string"
}
No description available
requestId | string |
object (Dashboard) Dashboard represents the structure and configuration of a Coralogix Custom Dashboard. | |
isLocked | boolean |
{- "requestId": "string",
- "dashboard": {
- "id": "string",
- "name": "string",
- "description": "string",
- "layout": {
- "sections": [
- {
- "id": {
- "value": "string"
}, - "rows": [
- {
- "id": {
- "value": "string"
}, - "appearance": {
- "height": 0
}, - "widgets": [
- {
- "id": {
- "value": null
}, - "title": "string",
- "description": "string",
- "definition": {
- "lineChart": null,
- "dataTable": null,
- "gauge": null,
- "pieChart": null,
- "barChart": null,
- "horizontalBarChart": null,
- "markdown": null,
- "hexagon": null
}, - "appearance": {
- "width": null
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
], - "options": {
- "internal": { },
- "custom": {
- "name": "string",
- "description": "string",
- "collapsed": true,
- "color": {
- "predefined": "SECTION_PREDEFINED_COLOR_UNSPECIFIED"
}
}
}
}
]
}, - "variables": [
- {
- "name": "string",
- "definition": {
- "constant": {
- "value": "string"
}, - "multiSelect": {
- "selected": [
- "string"
], - "source": {
- "logsPath": {
- "value": "string",
- "observationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "metricLabel": {
- "metricName": "string",
- "label": "string"
}, - "constantList": {
- "values": [
- "string"
]
}, - "spanField": {
- "value": {
- "metadataField": "METADATA_FIELD_UNSPECIFIED",
- "tagField": "string",
- "processTagField": "string"
}
}, - "query": {
- "query": {
- "logsQuery": {
- "type": null
}, - "metricsQuery": {
- "type": null
}, - "spansQuery": {
- "type": null
}
}, - "refreshStrategy": "REFRESH_STRATEGY_UNSPECIFIED",
- "valueDisplayOptions": {
- "valueRegex": "string",
- "labelRegex": "string"
}
}
}, - "selection": {
- "all": { },
- "list": {
- "values": [
- "string"
], - "labels": [
- "string"
]
}
}, - "valuesOrderDirection": "ORDER_DIRECTION_UNSPECIFIED",
- "selectionOptions": {
- "selectionType": "SELECTION_TYPE_UNSPECIFIED"
}
}
}, - "displayName": "string",
- "description": "string",
- "displayType": "VARIABLE_DISPLAY_TYPE_UNSPECIFIED"
}
], - "filters": [
- {
- "source": {
- "logs": {
- "field": "string",
- "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}, - "observationField": {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "spans": {
- "field": {
- "metadataField": "METADATA_FIELD_UNSPECIFIED",
- "tagField": "string",
- "processTagField": "string"
}, - "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}, - "observationField": {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "metrics": {
- "metric": "string",
- "label": "string",
- "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}
}
}, - "enabled": true,
- "collapsed": true
}
], - "absoluteTimeFrame": {
- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z"
}, - "relativeTimeFrame": "string",
- "folderId": {
- "value": "string"
}, - "folderPath": {
- "segments": [
- "string"
]
}, - "annotations": [
- {
- "id": "string",
- "name": "string",
- "enabled": true,
- "source": {
- "metrics": {
- "promqlQuery": {
- "value": "string"
}, - "strategy": {
- "startTimeMetric": { }
}, - "messageTemplate": "string",
- "labels": [
- "string"
]
}, - "logs": {
- "luceneQuery": {
- "value": "string"
}, - "strategy": {
- "instant": {
- "timestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "range": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "endTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "duration": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "durationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}
}, - "messageTemplate": "string",
- "labelFields": [
- {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
]
}, - "spans": {
- "luceneQuery": {
- "value": "string"
}, - "strategy": {
- "instant": {
- "timestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "range": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "endTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "duration": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "durationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}
}, - "messageTemplate": "string",
- "labelFields": [
- {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
]
}
}
}
], - "off": { },
- "twoMinutes": { },
- "fiveMinutes": { }
}, - "isLocked": true
}
{ }
No description available
dashboardId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/dashboards/dashboards/%7BdashboardId%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));
{- "dashboard": {
- "id": "string",
- "name": "string",
- "description": "string",
- "layout": {
- "sections": [
- {
- "id": {
- "value": "string"
}, - "rows": [
- {
- "id": {
- "value": "string"
}, - "appearance": {
- "height": 0
}, - "widgets": [
- {
- "id": {
- "value": null
}, - "title": "string",
- "description": "string",
- "definition": {
- "lineChart": null,
- "dataTable": null,
- "gauge": null,
- "pieChart": null,
- "barChart": null,
- "horizontalBarChart": null,
- "markdown": null,
- "hexagon": null
}, - "appearance": {
- "width": null
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}
], - "options": {
- "internal": { },
- "custom": {
- "name": "string",
- "description": "string",
- "collapsed": true,
- "color": {
- "predefined": "SECTION_PREDEFINED_COLOR_UNSPECIFIED"
}
}
}
}
]
}, - "variables": [
- {
- "name": "string",
- "definition": {
- "constant": {
- "value": "string"
}, - "multiSelect": {
- "selected": [
- "string"
], - "source": {
- "logsPath": {
- "value": "string",
- "observationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "metricLabel": {
- "metricName": "string",
- "label": "string"
}, - "constantList": {
- "values": [
- "string"
]
}, - "spanField": {
- "value": {
- "metadataField": "METADATA_FIELD_UNSPECIFIED",
- "tagField": "string",
- "processTagField": "string"
}
}, - "query": {
- "query": {
- "logsQuery": {
- "type": null
}, - "metricsQuery": {
- "type": null
}, - "spansQuery": {
- "type": null
}
}, - "refreshStrategy": "REFRESH_STRATEGY_UNSPECIFIED",
- "valueDisplayOptions": {
- "valueRegex": "string",
- "labelRegex": "string"
}
}
}, - "selection": {
- "all": { },
- "list": {
- "values": [
- "string"
], - "labels": [
- "string"
]
}
}, - "valuesOrderDirection": "ORDER_DIRECTION_UNSPECIFIED",
- "selectionOptions": {
- "selectionType": "SELECTION_TYPE_UNSPECIFIED"
}
}
}, - "displayName": "string",
- "description": "string",
- "displayType": "VARIABLE_DISPLAY_TYPE_UNSPECIFIED"
}
], - "filters": [
- {
- "source": {
- "logs": {
- "field": "string",
- "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}, - "observationField": {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "spans": {
- "field": {
- "metadataField": "METADATA_FIELD_UNSPECIFIED",
- "tagField": "string",
- "processTagField": "string"
}, - "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}, - "observationField": {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "metrics": {
- "metric": "string",
- "label": "string",
- "operator": {
- "equals": {
- "selection": {
- "all": { },
- "list": {
- "values": [ ]
}
}
}, - "notEquals": {
- "selection": {
- "list": {
- "values": [ ]
}
}
}
}
}
}, - "enabled": true,
- "collapsed": true
}
], - "absoluteTimeFrame": {
- "from": "2019-08-24T14:15:22Z",
- "to": "2019-08-24T14:15:22Z"
}, - "relativeTimeFrame": "string",
- "folderId": {
- "value": "string"
}, - "folderPath": {
- "segments": [
- "string"
]
}, - "annotations": [
- {
- "id": "string",
- "name": "string",
- "enabled": true,
- "source": {
- "metrics": {
- "promqlQuery": {
- "value": "string"
}, - "strategy": {
- "startTimeMetric": { }
}, - "messageTemplate": "string",
- "labels": [
- "string"
]
}, - "logs": {
- "luceneQuery": {
- "value": "string"
}, - "strategy": {
- "instant": {
- "timestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "range": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "endTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "duration": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "durationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}
}, - "messageTemplate": "string",
- "labelFields": [
- {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
]
}, - "spans": {
- "luceneQuery": {
- "value": "string"
}, - "strategy": {
- "instant": {
- "timestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "range": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "endTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}, - "duration": {
- "startTimestampField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}, - "durationField": {
- "keypath": [
- null
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
}
}, - "messageTemplate": "string",
- "labelFields": [
- {
- "keypath": [
- "string"
], - "scope": "DATASET_SCOPE_UNSPECIFIED"
}
]
}
}
}
], - "off": { },
- "twoMinutes": { },
- "fiveMinutes": { }
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updaterAuthorId": "string",
- "updaterName": "string",
- "authorId": "string",
- "authorName": "string",
- "updatedOriginType": "TOKEN_ORIGIN_TYPE_UNSPECIFIED",
- "createdOriginType": "TOKEN_ORIGIN_TYPE_UNSPECIFIED",
- "isLocked": true,
- "lockerAuthorId": "string",
- "lockerName": "string"
}
No description available
dashboardId required | string |
requestId | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/dashboards/dashboards/%7BdashboardId%7D?requestId=SOME_STRING_VALUE'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
dashboardId required | string |
requestId | string |
{- "requestId": "string"
}
{ }
No description available
dashboardId required | string |
requestId | string |
folderId | string (could be null to assign the dashboard to root) |
{- "requestId": "string",
- "folderId": "string"
}
{ }
No description available
dashboardId required | string |
requestId | string |
{- "requestId": "string"
}
{ }
No description available
dashboardId required | string |
requestId | string |
{- "requestId": "string"
}
{ }
List all dashboard folders accessible.
Requires the following permissions:
team-dashboards:Read
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/dashboards/folders'; 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));
{- "folder": [
- {
- "id": "string",
- "name": "string",
- "parentId": "string"
}
]
}
No description available
requestId | string |
object (commonDashboardFolder) |
{- "requestId": "string",
- "folder": {
- "id": "string",
- "name": "string",
- "parentId": "string"
}
}
{ }
No description available
requestId | string |
object (commonDashboardFolder) |
{- "requestId": "string",
- "folder": {
- "id": "string",
- "name": "string",
- "parentId": "string"
}
}
{ }
Returns a dashboard folder data.
Requires the following permissions:
team-dashboards:Read
folderId required | string |
requestId | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/dashboards/folders/%7BfolderId%7D?requestId=SOME_STRING_VALUE'; 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));
{- "folder": {
- "id": "string",
- "name": "string",
- "parentId": "string"
}
}
No description available
folderId required | string |
requestId | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/dashboards/folders/%7BfolderId%7D?requestId=SOME_STRING_VALUE'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v2/actions'; 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));
{- "actions": [
- {
- "id": "string",
- "name": "string",
- "url": "string",
- "isHidden": true,
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
], - "createdBy": "string"
}
]
}
No description available
name | string |
url | string |
isPrivate | boolean |
sourceType | string (actionsv2SourceType) Default: "SOURCE_TYPE_UNSPECIFIED" Enum: "SOURCE_TYPE_UNSPECIFIED" "SOURCE_TYPE_LOG" "SOURCE_TYPE_DATA_MAP" |
applicationNames | Array of strings |
subsystemNames | Array of strings |
{- "name": "string",
- "url": "string",
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
]
}
{- "action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "isHidden": true,
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
], - "createdBy": "string"
}
}
No description available
object (actionsv2Action) |
{- "action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "isHidden": true,
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
], - "createdBy": "string"
}
}
{- "action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "isHidden": true,
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
], - "createdBy": "string"
}
}
No description available
Array of objects (v2ActionExecutionRequest) |
{- "requests": [
- {
- "create": {
- "name": "string",
- "url": "string",
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
]
}, - "replace": {
- "action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "isHidden": true,
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
], - "createdBy": "string"
}
}, - "delete": {
- "id": "string"
}
}
]
}
{- "matchingResponses": [
- {
- "create": {
- "action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "isHidden": true,
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
], - "createdBy": "string"
}
}, - "replace": {
- "action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "isHidden": true,
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
], - "createdBy": "string"
}
}, - "delete": { }
}
]
}
No description available
object | |
object |
{- "privateActionsOrder": {
- "property1": 0,
- "property2": 0
}, - "sharedActionsOrder": {
- "property1": 0,
- "property2": 0
}
}
{ }
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v2/actions/%7Bid%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));
{- "action": {
- "id": "string",
- "name": "string",
- "url": "string",
- "isHidden": true,
- "isPrivate": true,
- "sourceType": "SOURCE_TYPE_UNSPECIFIED",
- "applicationNames": [
- "string"
], - "subsystemNames": [
- "string"
], - "createdBy": "string"
}
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v2/actions/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v2/events2metrics'; 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));
{- "e2m": [
- {
- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
- "name": "Service_catalog_latency",
- "description": "avg and max the latency of catalog service",
- "createTime": "2022-06-30T12:30:00Z'",
- "updateTime": "2022-06-30T12:30:00Z'",
- "permutations": {
- "limit": 30000,
- "hasExceededLimit": true
}, - "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": "SAMPLE_TYPE_UNSPECIFIED"
}, - "histogram": {
- "buckets": 2
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}, - "isInternal": true
}
]
}
No description available
name required | string (Name of E2M to create) |
description | string (Description of E2M to create) |
permutationsLimit | integer <int32> (The permutation limit of the E2M) |
Array of objects (E2M metric labels) | |
Array of objects (E2M metric fields) | |
type | string (Enum defining e2m type) Default: "E2M_TYPE_UNSPECIFIED" Enum: "E2M_TYPE_UNSPECIFIED" "E2M_TYPE_LOGS2METRICS" "E2M_TYPE_SPANS2METRICS" |
object (SpansQuery) This data structure represents a query for spans. | |
object (SpansQuery) This data structure represents a query for logs. |
{- "name": "Service catalog latency",
- "description": "avg and max the latency of catalog service",
- "permutationsLimit": 30000,
- "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": "SAMPLE_TYPE_UNSPECIFIED"
}, - "histogram": {
- "buckets": 2
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}
}
{- "e2m": {
- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
- "name": "Service_catalog_latency",
- "description": "avg and max the latency of catalog service",
- "createTime": "2022-06-30T12:30:00Z'",
- "updateTime": "2022-06-30T12:30:00Z'",
- "permutations": {
- "limit": 30000,
- "hasExceededLimit": true
}, - "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": "SAMPLE_TYPE_UNSPECIFIED"
}, - "histogram": {
- "buckets": 2
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}, - "isInternal": true
}
}
No description available
id | string <uuid> (E2M unique ID, required on update requests) = 36 characters ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]... |
name required | string (Name of the E2M) |
description | string (Description of the E2M) |
createTime | string (E2M create time) |
updateTime | string (E2M update time) |
object (E2M Permutations) This data structure represents the limit of events2metrics permutations and if the limit was exceeded | |
Array of objects (E2M metric labels) | |
Array of objects (E2M metric fields) <= 10 items | |
type required | string (Enum defining e2m type) Default: "E2M_TYPE_UNSPECIFIED" Enum: "E2M_TYPE_UNSPECIFIED" "E2M_TYPE_LOGS2METRICS" "E2M_TYPE_SPANS2METRICS" |
object (SpansQuery) This data structure represents a query for spans. | |
object (SpansQuery) This data structure represents a query for logs. | |
isInternal | boolean (A flag that represents if the e2m is for internal usage) |
{- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
- "name": "Service_catalog_latency",
- "description": "avg and max the latency of catalog service",
- "createTime": "2022-06-30T12:30:00Z'",
- "updateTime": "2022-06-30T12:30:00Z'",
- "permutations": {
- "limit": 30000,
- "hasExceededLimit": true
}, - "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": "SAMPLE_TYPE_UNSPECIFIED"
}, - "histogram": {
- "buckets": 2
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}, - "isInternal": true
}
{- "e2m": {
- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
- "name": "Service_catalog_latency",
- "description": "avg and max the latency of catalog service",
- "createTime": "2022-06-30T12:30:00Z'",
- "updateTime": "2022-06-30T12:30:00Z'",
- "permutations": {
- "limit": 30000,
- "hasExceededLimit": true
}, - "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": "SAMPLE_TYPE_UNSPECIFIED"
}, - "histogram": {
- "buckets": 2
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}, - "isInternal": true
}
}
No description available
Array of objects (represents one of e2m actions create/replace/delete) |
{- "requests": [
- {
- "create": {
- "e2m": {
- "name": "Service catalog latency",
- "description": "avg and max the latency of catalog service",
- "permutationsLimit": 30000,
- "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": null
}, - "histogram": {
- "buckets": [ ]
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}
}
}, - "replace": {
- "e2m": {
- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
- "name": "Service_catalog_latency",
- "description": "avg and max the latency of catalog service",
- "createTime": "2022-06-30T12:30:00Z'",
- "updateTime": "2022-06-30T12:30:00Z'",
- "permutations": {
- "limit": 30000,
- "hasExceededLimit": true
}, - "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": null
}, - "histogram": {
- "buckets": [ ]
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}, - "isInternal": true
}
}, - "delete": {
- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09"
}
}
]
}
{- "matchingResponses": [
- {
- "created": {
- "e2m": {
- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
- "name": "Service_catalog_latency",
- "description": "avg and max the latency of catalog service",
- "createTime": "2022-06-30T12:30:00Z'",
- "updateTime": "2022-06-30T12:30:00Z'",
- "permutations": {
- "limit": 30000,
- "hasExceededLimit": true
}, - "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": null
}, - "histogram": {
- "buckets": [ ]
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}, - "isInternal": true
}
}, - "replaced": {
- "e2m": {
- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
- "name": "Service_catalog_latency",
- "description": "avg and max the latency of catalog service",
- "createTime": "2022-06-30T12:30:00Z'",
- "updateTime": "2022-06-30T12:30:00Z'",
- "permutations": {
- "limit": 30000,
- "hasExceededLimit": true
}, - "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": null
}, - "histogram": {
- "buckets": [ ]
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}, - "isInternal": true
}
}, - "deleted": {
- "id": "string"
}
}
]
}
No description available
spansQuery.lucene | string lucene query |
spansQuery.applicationnameFilters | Array of strings application name filters |
spansQuery.subsystemnameFilters | Array of strings subsystem name filters |
spansQuery.actionFilters | Array of strings action filters |
spansQuery.serviceFilters | Array of strings service filters |
logsQuery.lucene | string lucene query |
logsQuery.alias | string alias |
logsQuery.applicationnameFilters | Array of strings application name filters |
logsQuery.subsystemnameFilters | Array of strings subsystem names filters |
logsQuery.severityFilters | Array of strings Items Enum: "SEVERITY_UNSPECIFIED" "SEVERITY_DEBUG" "SEVERITY_VERBOSE" "SEVERITY_INFO" "SEVERITY_WARNING" "SEVERITY_ERROR" "SEVERITY_CRITICAL" severity type filters |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v2/events2metrics/labels_cardinality?spansQuery.lucene=SOME_STRING_VALUE&spansQuery.applicationnameFilters=SOME_ARRAY_VALUE&spansQuery.subsystemnameFilters=SOME_ARRAY_VALUE&spansQuery.actionFilters=SOME_ARRAY_VALUE&spansQuery.serviceFilters=SOME_ARRAY_VALUE&logsQuery.lucene=SOME_STRING_VALUE&logsQuery.alias=SOME_STRING_VALUE&logsQuery.applicationnameFilters=SOME_ARRAY_VALUE&logsQuery.subsystemnameFilters=SOME_ARRAY_VALUE&logsQuery.severityFilters=SOME_ARRAY_VALUE'; 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));
{- "permutations": [
- {
- "day": "string",
- "permutations": 0
}
]
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v2/events2metrics/limits'; 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));
{- "companyId": "string",
- "labelsLimit": 0,
- "permutationsLimit": {
- "limit": 0,
- "used": 0
}, - "metricsLimit": {
- "limit": 0,
- "used": 0
}
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v2/events2metrics/%7Bid%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));
{- "e2m": {
- "id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
- "name": "Service_catalog_latency",
- "description": "avg and max the latency of catalog service",
- "createTime": "2022-06-30T12:30:00Z'",
- "updateTime": "2022-06-30T12:30:00Z'",
- "permutations": {
- "limit": 30000,
- "hasExceededLimit": true
}, - "metricLabels": [
- {
- "targetLabel": "alias_label_name",
- "sourceField": "log_obj.string_value"
}
], - "metricFields": [
- {
- "targetBaseMetricName": "alias_field_name",
- "sourceField": "log_obj.numeric_field",
- "aggregations": [
- {
- "enabled": true,
- "aggType": "AGG_TYPE_UNSPECIFIED",
- "targetMetricName": "alias_field_name_agg_func",
- "samples": {
- "sampleType": "SAMPLE_TYPE_UNSPECIFIED"
}, - "histogram": {
- "buckets": 2
}
}
]
}
], - "type": "E2M_TYPE_UNSPECIFIED",
- "spansQuery": {
- "lucene": "applicationName:myApp",
- "applicationnameFilters": "myApp",
- "subsystemnameFilters": "mySubsystem",
- "actionFilters": "myAction",
- "serviceFilters": "myService"
}, - "logsQuery": {
- "lucene": "log_obj.numeric_field: [50 TO 100]",
- "alias": "new_query",
- "applicationnameFilters": "app_name",
- "subsystemnameFilters": "sub_name",
- "severityFilters": [
- "SEVERITY_UNSPECIFIED"
]
}, - "isInternal": true
}
}
No description available
id required | string id of e2m to be deleted |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v2/events2metrics/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{- "id": "string"
}
No description available
filter.timestamp.from required | string <date-time> |
filter.timestamp.to required | string <date-time> |
filter.cxEventTypes required | Array of strings |
filter.cxEventKeys required | Array of strings |
filter.cxEventMetadataFilters.operator | string Default: "FILTER_OPERATOR_AND_OR_UNSPECIFIED" Enum: "FILTER_OPERATOR_AND_OR_UNSPECIFIED" "FILTER_OPERATOR_OR" |
pagination.pageSize | integer <int64> |
pagination.pageToken | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/events?filter.timestamp.from=SOME_STRING_VALUE&filter.timestamp.to=SOME_STRING_VALUE&filter.cxEventTypes=SOME_ARRAY_VALUE&filter.cxEventKeys=SOME_ARRAY_VALUE&filter.cxEventMetadataFilters.operator=SOME_STRING_VALUE&pagination.pageSize=SOME_INTEGER_VALUE&pagination.pageToken=SOME_STRING_VALUE'; 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));
{- "events": [
- {
- "cxEventKey": "test",
- "cxEventType": "test_type",
- "cxEventLabels": {
- "test": "test"
}, - "companyId": 1,
- "cxEventTimestamp": 1714857600,
- "cxEventPayloadType": "test_payload_type",
- "cxEventPayload": {
- "test": "test"
}, - "cxEventDedupKey": "test_dedup_key",
- "cxEventMetadata": {
- "test": "test"
}
}
], - "pagination": {
- "totalSize": 10,
- "nextPageToken": "test"
}
}
No description available
ids | Array of strings |
pagination.pageSize | integer <int64> |
pagination.pageToken | string |
filter.timestamp.from required | string <date-time> |
filter.timestamp.to required | string <date-time> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/events/events:batchGet?ids=SOME_ARRAY_VALUE&pagination.pageSize=SOME_INTEGER_VALUE&pagination.pageToken=SOME_STRING_VALUE&filter.timestamp.from=SOME_STRING_VALUE&filter.timestamp.to=SOME_STRING_VALUE'; 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));
{- "events": {
- "property1": {
- "singleEvent": {
- "cxEventKey": "test",
- "cxEventType": "test_type",
- "cxEventLabels": {
- "test": "test"
}, - "companyId": 1,
- "cxEventTimestamp": 1714857600,
- "cxEventPayloadType": "test_payload_type",
- "cxEventPayload": {
- "test": "test"
}, - "cxEventDedupKey": "test_dedup_key",
- "cxEventMetadata": {
- "test": "test"
}
}, - "multipleEvents": {
- "events": [
- {
- "cxEventKey": "test",
- "cxEventType": "test_type",
- "cxEventLabels": {
- "test": "test"
}, - "companyId": 1,
- "cxEventTimestamp": 1714857600,
- "cxEventPayloadType": "test_payload_type",
- "cxEventPayload": {
- "test": "test"
}, - "cxEventDedupKey": "test_dedup_key",
- "cxEventMetadata": {
- "test": "test"
}
}
]
}
}, - "property2": {
- "singleEvent": {
- "cxEventKey": "test",
- "cxEventType": "test_type",
- "cxEventLabels": {
- "test": "test"
}, - "companyId": 1,
- "cxEventTimestamp": 1714857600,
- "cxEventPayloadType": "test_payload_type",
- "cxEventPayload": {
- "test": "test"
}, - "cxEventDedupKey": "test_dedup_key",
- "cxEventMetadata": {
- "test": "test"
}
}, - "multipleEvents": {
- "events": [
- {
- "cxEventKey": "test",
- "cxEventType": "test_type",
- "cxEventLabels": {
- "test": "test"
}, - "companyId": 1,
- "cxEventTimestamp": 1714857600,
- "cxEventPayloadType": "test_payload_type",
- "cxEventPayload": {
- "test": "test"
}, - "cxEventDedupKey": "test_dedup_key",
- "cxEventMetadata": {
- "test": "test"
}
}
]
}
}
}, - "notFoundIds": [
- "string"
], - "pagination": {
- "totalSize": 10,
- "nextPageToken": "test"
}
}
No description available
id required | string |
pagination.pageSize | integer <int64> |
pagination.pageToken | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/events/%7Bid%7D?pagination.pageSize=SOME_INTEGER_VALUE&pagination.pageToken=SOME_STRING_VALUE'; 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));
{- "event": {
- "singleEvent": {
- "cxEventKey": "test",
- "cxEventType": "test_type",
- "cxEventLabels": {
- "test": "test"
}, - "companyId": 1,
- "cxEventTimestamp": 1714857600,
- "cxEventPayloadType": "test_payload_type",
- "cxEventPayload": {
- "test": "test"
}, - "cxEventDedupKey": "test_dedup_key",
- "cxEventMetadata": {
- "test": "test"
}
}, - "multipleEvents": {
- "events": [
- {
- "cxEventKey": "test",
- "cxEventType": "test_type",
- "cxEventLabels": {
- "test": "test"
}, - "companyId": 1,
- "cxEventTimestamp": 1714857600,
- "cxEventPayloadType": "test_payload_type",
- "cxEventPayload": {
- "test": "test"
}, - "cxEventDedupKey": "test_dedup_key",
- "cxEventMetadata": {
- "test": "test"
}
}
]
}
}, - "pagination": {
- "totalSize": 10,
- "nextPageToken": "test"
}
}
No description available
filter.timestamp.from required | string <date-time> |
filter.timestamp.to required | string <date-time> |
filter.cxEventTypes required | Array of strings |
filter.cxEventKeys required | Array of strings |
filter.cxEventMetadataFilters.operator | string Default: "FILTER_OPERATOR_AND_OR_UNSPECIFIED" Enum: "FILTER_OPERATOR_AND_OR_UNSPECIFIED" "FILTER_OPERATOR_OR" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/events:count?filter.timestamp.from=SOME_STRING_VALUE&filter.timestamp.to=SOME_STRING_VALUE&filter.cxEventTypes=SOME_ARRAY_VALUE&filter.cxEventKeys=SOME_ARRAY_VALUE&filter.cxEventMetadataFilters.operator=SOME_STRING_VALUE'; 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));
{- "count": 10,
- "reachedLimit": false
}
No description available
filter.timestamp.from required | string <date-time> |
filter.timestamp.to required | string <date-time> |
filter.cxEventTypes required | Array of strings |
filter.cxEventKeys required | Array of strings |
filter.cxEventMetadataFilters.operator | string Default: "FILTER_OPERATOR_AND_OR_UNSPECIFIED" Enum: "FILTER_OPERATOR_AND_OR_UNSPECIFIED" "FILTER_OPERATOR_OR" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v3/events:statistics?filter.timestamp.from=SOME_STRING_VALUE&filter.timestamp.to=SOME_STRING_VALUE&filter.cxEventTypes=SOME_ARRAY_VALUE&filter.cxEventKeys=SOME_ARRAY_VALUE&filter.cxEventMetadataFilters.operator=SOME_STRING_VALUE'; 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));
{- "cxEventMetadataFieldStatistics": {
- "property1": {
- "fieldStatistics": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "fieldStatistics": {
- "property1": "string",
- "property2": "string"
}
}
}
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/view_folders'; 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));
{- "view_folders": [
- {
- "id": "0cd4ed54-9b59-4eef-b329-151a167e2304",
- "name": "My Folder"
}
]
}
Create view folder
Create view folder.
name | string (View folder name) non-empty Folder name |
{- "name": "My Folder"
}
{- "id": "0cd4ed54-9b59-4eef-b329-151a167e2304",
- "name": "My Folder"
}
Replaces an existing view folder
folder.id required | string <uuid> Unique identifier for folders |
View folder
name required | string non-empty Folder name |
{- "name": "My Folder"
}
{- "id": "0cd4ed54-9b59-4eef-b329-151a167e2304",
- "name": "My Folder"
}
Create view folder
id required | string <uuid> Unique identifier for folders |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/view_folders/%7Bid%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));
{- "id": "0cd4ed54-9b59-4eef-b329-151a167e2304",
- "name": "My Folder"
}
Deletes a view folder by ID
id required | string <uuid> Unique identifier for folders |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/view_folders/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/views'; 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));
{- "views": [
- {
- "id": 52,
- "name": "Logs view",
- "search_query": {
- "query": "logs"
}, - "time_selection": {
- "custom_selection": {
- "from_time": "2024-01-25T11:31:43.152Z",
- "to_time": "2024-01-25T11:37:13.238Z"
}
}, - "filters": {
- "filters": [
- {
- "name": "applicationName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "subsystemName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "operationName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "serviceName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "severity",
- "selected_values": {
- "demo": true
}
}
]
}
}
]
}
Creates a new view
View folder.
name required | string non-empty View name |
object (SearchQuery) | |
required | object (Time selection) |
object (Selected filters) | |
folderId | string <uuid> = 36 characters ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]... Unique identifier for folders |
{- "name": "Logs view",
- "searchQuery": {
- "query": "string"
}, - "timeSelection": {
- "quickSelection": {
- "caption": "Last Hour",
- "seconds": 3600
}, - "customSelection": {
- "fromTime": "2024-01-25T11:31:43.152Z",
- "toTime": "2024-01-25T11:35:43.152Z"
}
}, - "filters": {
- "filters": [
- {
- "name": "applicationName",
- "selectedValues": {
- "demo": true,
- "cs-rest-test1": true
}
}
]
}, - "folderId": "3dc02998-0b50-4ea8-b68a-4779d716fa1f"
}
{- "name": "Logs view",
- "search_query": {
- "query": "logs"
}, - "time_selection": {
- "custom_selection": {
- "from_time": "2024-01-25T11:31:43.152Z",
- "to_time": "2024-01-25T11:37:13.238Z"
}
}, - "filters": {
- "filters": [
- {
- "name": "applicationName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "subsystemName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "operationName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "serviceName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "severity",
- "selected_values": {
- "demo": true
}
}
]
}
}
Gets a view by ID
id required | integer <int32> id |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/views/%7Bid%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));
{- "id": 52,
- "name": "Logs view",
- "search_query": {
- "query": "logs"
}, - "time_selection": {
- "custom_selection": {
- "from_time": "2024-01-25T11:31:43.152Z",
- "to_time": "2024-01-25T11:37:13.238Z"
}
}, - "filters": {
- "filters": [
- {
- "name": "applicationName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "subsystemName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "operationName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "serviceName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "severity",
- "selected_values": {
- "demo": true
}
}
]
}
}
Deletes a view by ID
id required | integer <int32> id |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/views/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
Replaces an existing view
view.id required | integer <int32> id |
View
name required | string (View name) non-empty View name |
object (SearchQuery) | |
required | object (Time selection) |
object (Selected filters) | |
folderId | string <uuid> = 36 characters ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]... Unique identifier for folders |
isCompactMode | boolean |
{- "name": "Logs view",
- "searchQuery": {
- "query": "string"
}, - "timeSelection": {
- "quickSelection": {
- "caption": "Last Hour",
- "seconds": 3600
}, - "customSelection": {
- "fromTime": "2024-01-25T11:31:43.152Z",
- "toTime": "2024-01-25T11:35:43.152Z"
}
}, - "filters": {
- "filters": [
- {
- "name": "applicationName",
- "selectedValues": {
- "demo": true,
- "cs-rest-test1": true
}
}
]
}, - "folderId": "3dc02998-0b50-4ea8-b68a-4779d716fa1f",
- "isCompactMode": true
}
{- "name": "Logs view",
- "search_query": {
- "query": "logs new"
}, - "time_selection": {
- "custom_selection": {
- "from_time": "2024-01-25T11:31:43.152Z",
- "to_time": "2024-01-25T11:37:13.238Z"
}
}, - "filters": {
- "filters": [
- {
- "name": "applicationName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "subsystemName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "operationName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "serviceName",
- "selected_values": {
- "demo": true
}
}, - {
- "name": "severity",
- "selected_values": {
- "demo": true
}
}
]
}
}
No description available
ids required | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/scopes?ids=SOME_ARRAY_VALUE'; 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));
{- "scopes": [
- {
- "id": "scope_id",
- "displayName": "scope_name",
- "description": "scope_description",
- "teamId": 1234,
- "filters": [
- {
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "expression": "expression"
}
], - "defaultExpression": "expression"
}
]
}
No description available
This data structure represents a request to create a scope
displayName required | string |
description | string |
required | Array of objects (Filter) |
defaultExpression | string |
{- "displayName": "scope_name",
- "description": "scope_description",
- "filters": [
- {
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "expression": "expression"
}
], - "defaultExpression": "expression"
}
{- "scope": {
- "id": "scope_id",
- "displayName": "scope_name",
- "description": "scope_description",
- "teamId": 1234,
- "filters": [
- {
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "expression": "expression"
}
], - "defaultExpression": "expression"
}
}
No description available
This data structure represents a request to update a scope
id required | string |
displayName required | string |
description | string |
required | Array of objects (Filter) |
defaultExpression required | string |
{- "id": "scope_id",
- "displayName": "scope_name",
- "description": "scope_description",
- "filters": [
- {
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "expression": "expression"
}
], - "defaultExpression": "expression"
}
{- "scope": {
- "id": "scope_id",
- "displayName": "scope_name",
- "description": "scope_description",
- "teamId": 1234,
- "filters": [
- {
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "expression": "expression"
}
], - "defaultExpression": "expression"
}
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/scopes/list'; 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));
{- "scopes": [
- {
- "id": "scope_id",
- "displayName": "scope_name",
- "description": "scope_description",
- "teamId": 1234,
- "filters": [
- {
- "entityType": "ENTITY_TYPE_UNSPECIFIED",
- "expression": "expression"
}
], - "defaultExpression": "expression"
}
]
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/scopes/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
Handle all operations related to incident management within Coralogix. Identify, manage, and resolve incidents efficiently through automated workflows and team collaboration.
Lists all available incidents based on specified filters and order. The list is ordered in an unspecified direction and sorted by creation time.
Requires the following permissions:
incidents:read
Request to list incidents with filtering, pagination and ordering options
object (Incident query filter) Filter configuration for incidents | |
object (Pagination request) Pagination parameters for list requests | |
Array of objects (Incident order by) Order by fields |
{- "filter": {
- "assignee": [
- "string"
], - "status": [
- "INCIDENT_STATUS_UNSPECIFIED"
], - "state": [
- "INCIDENT_STATE_UNSPECIFIED"
], - "severity": [
- "INCIDENT_SEVERITY_UNSPECIFIED"
], - "contextualLabels": {
- "property1": {
- "contextualLabelValues": [
- "string"
]
}, - "property2": {
- "contextualLabelValues": [
- "string"
]
}
}, - "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "searchQuery": {
- "query": "error",
- "incidentField": "INCIDENTS_FIELDS_UNSPECIFIED",
- "contextualLabel": "string"
}, - "applicationName": [
- "string"
], - "subsystemName": [
- "string"
], - "isMuted": true,
- "createdAtRange": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "incidentDurationRange": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "metaLabelsOp": "FILTER_OPERATOR_OR_OR_UNSPECIFIED"
}, - "pagination": {
- "pageSize": 10,
- "pageToken": "next_page_token"
}, - "orderBys": [
- {
- "incidentField": "INCIDENTS_FIELDS_UNSPECIFIED",
- "contextualLabel": "string",
- "direction": "ORDER_BY_DIRECTION_UNSPECIFIED"
}
]
}
{- "incidents": [
- {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}
], - "pagination": {
- "totalSize": 100,
- "nextPageToken": "next_page_token"
}
}
Retrieve detailed information about a single incident by its unique identifier.
Requires the following permissions:
incidents:read
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents/%7Bid%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));
{- "incident": {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}
}
Retrieve a chronological list of all events associated with a specific incident. Includes state changes, assignments, acknowledgments, and resolutions.
Requires the following permissions:
incidents:read
incidentId required | string ID of the incident to retrieve events for |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents/%7BincidentId%7D/events'; 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));
{- "incidentEvents": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
]
}
Mark one or more incidents as acknowledged.
Requires the following permissions:
incidents:acknowledge
Request to acknowledge one or more incidents
incidentIds required | Array of strings List of incident IDs to acknowledge |
{- "incidentIds": [
- "incident_id_1",
- "incident_id_2"
]
}
{- "incidents": [
- {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}
]
}
Assign one or more incidents to a specific user.
Requires the following permissions:
incidents:assign
Request to assign one or more incidents to a user
incidentIds required | Array of strings List of incident IDs to assign |
required | object (User details) |
{- "incidentIds": [
- "incident_id_1",
- "incident_id_2"
], - "assignedTo": {
- "userId": "user_id"
}
}
{- "incidents": [
- {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}
]
}
Retrieve multiple incidents by their IDs in a single request.
Requires the following permissions:
incidents:read
ids required | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/incidents:batchGet?ids=SOME_ARRAY_VALUE'; let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{- "incidents": {
- "property1": {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}, - "property2": {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}
}, - "notFoundIds": [
- "not_found_id_1",
- "not_found_id_2"
]
}
No description available
Request to close one or more incidents
incidentIds required | Array of strings List of incident IDs to close |
{- "incidentIds": [
- "incident_id_1",
- "incident_id_2"
]
}
{- "incidents": [
- {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}
]
}
No description available
Request to get available filter values for incidents
object (Incident query filter) Filter configuration for incidents |
{- "filter": {
- "assignee": [
- "string"
], - "status": [
- "INCIDENT_STATUS_UNSPECIFIED"
], - "state": [
- "INCIDENT_STATE_UNSPECIFIED"
], - "severity": [
- "INCIDENT_SEVERITY_UNSPECIFIED"
], - "contextualLabels": {
- "property1": {
- "contextualLabelValues": [
- "string"
]
}, - "property2": {
- "contextualLabelValues": [
- "string"
]
}
}, - "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "searchQuery": {
- "query": "error",
- "incidentField": "INCIDENTS_FIELDS_UNSPECIFIED",
- "contextualLabel": "string"
}, - "applicationName": [
- "string"
], - "subsystemName": [
- "string"
], - "isMuted": true,
- "createdAtRange": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "incidentDurationRange": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "metaLabelsOp": "FILTER_OPERATOR_OR_OR_UNSPECIFIED"
}
}
{- "filtersValues": {
- "assigneeWithCount": [
- {
- "assignee": "assignee",
- "count": 10
}
], - "statusWithCount": [
- {
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "count": 10
}
], - "stateWithCount": [
- {
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "count": 10
}
], - "severityWithCount": [
- {
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "count": 10
}
], - "contextualLabels": {
- "property1": {
- "valuesWithCount": [
- {
- "contextualLabelValue": "contextual_label_value",
- "count": 10
}
]
}, - "property2": {
- "valuesWithCount": [
- {
- "contextualLabelValue": "contextual_label_value",
- "count": 10
}
]
}
}, - "metaLabelsWithCount": [
- {
- "metaLabel": {
- "key": "key",
- "value": "value"
}, - "count": 10
}
], - "metaLabelsOp": "FILTER_OPERATOR_OR_OR_UNSPECIFIED"
}
}
List incident events with support for filtering, pagination, and ordering.
Requires the following permissions:
incidents:read
Request to list incident events with filtering, pagination and ordering options
object (Incident event query filter) Filter configuration for incident events | |
object (Pagination request) Pagination parameters for list requests | |
object (List incident events order by request) |
{- "filter": {
- "status": [
- "INCIDENT_STATUS_UNSPECIFIED"
], - "severity": [
- "INCIDENT_SEVERITY_UNSPECIFIED"
], - "contextualLabels": {
- "property1": {
- "contextualLabelValues": [
- "string"
]
}, - "property2": {
- "contextualLabelValues": [
- "string"
]
}
}, - "name": "string",
- "isMuted": true,
- "timestamp": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "labels": {
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "operator": "FILTER_OPERATOR_OR_OR_UNSPECIFIED"
}
}, - "pagination": {
- "pageSize": 10,
- "pageToken": "next_page_token"
}, - "orderBy": {
- "field": "INCIDENT_EVENT_ORDER_BY_FIELD_TYPE_TIMESTAMP_OR_UNSPECIFIED",
- "direction": "ORDER_BY_DIRECTION_UNSPECIFIED"
}
}
{- "items": [
- {
- "cxEventKey": "string",
- "incidentEvent": {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}, - "cxEventTimestamp": "2019-08-24T14:15:22Z",
- "incidentEventExtendedMetadata": {
- "incidentSeverity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "alertId": "string",
- "incidentState": "INCIDENT_STATE_UNSPECIFIED",
- "alertName": "string",
- "alertType": "INCIDENT_EVENT_ALERT_TYPE_STANDARD_OR_UNSPECIFIED",
- "isMuted": true,
- "incidentStatus": "INCIDENT_STATUS_UNSPECIFIED",
- "alertGroupByFields": [
- "string"
], - "alertLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "incidentPermutation": {
- "property1": "string",
- "property2": "string"
}
}
}
], - "pagination": {
- "totalSize": 100,
- "nextPageToken": "next_page_token"
}
}
No description available
A request to get available filter values for incident events
object (Incident event query filter) Filter configuration for incident events |
{- "filter": {
- "status": [
- "INCIDENT_STATUS_UNSPECIFIED"
], - "severity": [
- "INCIDENT_SEVERITY_UNSPECIFIED"
], - "contextualLabels": {
- "property1": {
- "contextualLabelValues": [
- "string"
]
}, - "property2": {
- "contextualLabelValues": [
- "string"
]
}
}, - "name": "string",
- "isMuted": true,
- "timestamp": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "labels": {
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "operator": "FILTER_OPERATOR_OR_OR_UNSPECIFIED"
}
}
}
{- "filtersValues": {
- "assigneeWithCount": [
- {
- "assignee": "assignee",
- "count": 10
}
], - "statusWithCount": [
- {
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "count": 10
}
], - "stateWithCount": [
- {
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "count": 10
}
], - "severityWithCount": [
- {
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "count": 10
}
], - "contextualLabels": {
- "property1": {
- "valuesWithCount": [
- {
- "contextualLabelValue": "contextual_label_value",
- "count": 10
}
]
}, - "property2": {
- "valuesWithCount": [
- {
- "contextualLabelValue": "contextual_label_value",
- "count": 10
}
]
}
}, - "metaLabelsWithCount": [
- {
- "metaLabel": {
- "key": "key",
- "value": "value"
}, - "count": 10
}
], - "metaLabelsOp": "FILTER_OPERATOR_OR_OR_UNSPECIFIED"
}
}
Retrieve the total count of incident events matching a filter.
Requires the following permissions:
incidents:read
A request to get the total count of incident events matching a filter
object (Incident event query filter) Filter configuration for incident events |
{- "filter": {
- "status": [
- "INCIDENT_STATUS_UNSPECIFIED"
], - "severity": [
- "INCIDENT_SEVERITY_UNSPECIFIED"
], - "contextualLabels": {
- "property1": {
- "contextualLabelValues": [
- "string"
]
}, - "property2": {
- "contextualLabelValues": [
- "string"
]
}
}, - "name": "string",
- "isMuted": true,
- "timestamp": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "labels": {
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "operator": "FILTER_OPERATOR_OR_OR_UNSPECIFIED"
}
}
}
{- "count": 100,
- "reachedLimit": false
}
Retrieve aggregated incident data with support for grouping and filtering.
Requires the following permissions:
incidents:read
Request to get aggregated incident data with filtering and grouping options
object (Incident query filter) Filter configuration for incidents | |
Array of objects (Incident group by) Group by fields for aggregation | |
object (Pagination request) Pagination parameters for list requests |
{- "filter": {
- "assignee": [
- "string"
], - "status": [
- "INCIDENT_STATUS_UNSPECIFIED"
], - "state": [
- "INCIDENT_STATE_UNSPECIFIED"
], - "severity": [
- "INCIDENT_SEVERITY_UNSPECIFIED"
], - "contextualLabels": {
- "property1": {
- "contextualLabelValues": [
- "string"
]
}, - "property2": {
- "contextualLabelValues": [
- "string"
]
}
}, - "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "searchQuery": {
- "query": "error",
- "incidentField": "INCIDENTS_FIELDS_UNSPECIFIED",
- "contextualLabel": "string"
}, - "applicationName": [
- "string"
], - "subsystemName": [
- "string"
], - "isMuted": true,
- "createdAtRange": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "incidentDurationRange": {
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z"
}, - "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "metaLabelsOp": "FILTER_OPERATOR_OR_OR_UNSPECIFIED"
}, - "groupBys": [
- {
- "incidentField": "INCIDENTS_FIELDS_UNSPECIFIED",
- "contextualLabel": "string",
- "orderByDirection": "ORDER_BY_DIRECTION_UNSPECIFIED"
}
], - "pagination": {
- "pageSize": 10,
- "pageToken": "next_page_token"
}
}
{- "incidentAggs": [
- {
- "groupBysValue": [
- {
- "incidentField": {
- "id": "string",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "closedAt": "2019-08-24T14:15:22Z",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "lastStateUpdateTime": "2019-08-24T14:15:22Z",
- "applicationName": "string",
- "subsystemName": "string",
- "duration": "string"
}, - "contextualLabels": {
- "fieldName": "field_name",
- "fieldValue": "field_value"
}
}
], - "aggStateCount": [
- {
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "count": 10
}
], - "aggStatusCount": [
- {
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "count": 10
}
], - "aggSeverityCount": [
- {
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "count": 10
}
], - "aggAssignmentsCount": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "count": 10
}
], - "firstCreatedAt": "2019-08-24T14:15:22Z",
- "lastClosedAt": "2019-08-24T14:15:22Z",
- "allValuesCount": 0,
- "listIncidentsId": [
- "string"
], - "lastStateUpdateTime": "2019-08-24T14:15:22Z",
- "aggMetaLabelsCount": [
- {
- "metaLabel": {
- "key": "key",
- "value": "value"
}, - "count": 10
}
]
}
], - "pagination": {
- "totalSize": 100,
- "nextPageToken": "next_page_token"
}
}
Mark one or more incidents as resolved.
Requires the following permissions:
incidents:close
Request to resolve one or more incidents
incidentIds required | Array of strings List of incident IDs to resolve |
{- "incidentIds": [
- "incident_id_1",
- "incident_id_2"
]
}
{- "incidents": [
- {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}
]
}
Remove user assignments from one or more incidents.
Requires the following permissions:
incidents:assign
Request to remove assignments from one or more incidents
incidentIds required | Array of strings List of incident IDs to unassign |
{- "incidentIds": [
- "incident_id_1",
- "incident_id_2"
]
}
{- "incidents": [
- {
- "id": "incident_id",
- "name": "incident_name",
- "state": "INCIDENT_STATE_UNSPECIFIED",
- "status": "INCIDENT_STATUS_UNSPECIFIED",
- "assignments": [
- {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
], - "description": "incident_description",
- "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
- "contextualLabels": {
- "property1": "string",
- "property2": "string"
}, - "displayLabels": {
- "property1": "string",
- "property2": "string"
}, - "events": [
- {
- "id": "incident_event_id",
- "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
- "snoozeIndicator": {
- "startTime": "2019-08-24T14:15:22Z",
- "durationMinutes": 0,
- "userId": "string"
}, - "assignment": {
- "assignment": {
- "assignedTo": {
- "userId": "user_id"
}, - "assignedBy": {
- "userId": "user_id"
}
}
}, - "unassign": { },
- "upsertState": {
- "stateType": "UPSERT_INCIDENT_STATE_TYPE_UNSPECIFIED",
- "payload": {
- "cxEventKey": "string"
}, - "isMuted": true
}, - "acknowledge": {
- "acknowledgedBy": {
- "userId": "user_id"
}
}, - "close": {
- "closedBy": {
- "userId": "user_id"
}
}, - "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
- "administrativeEvent": {
- "userId": "string"
}, - "operationalEvent": {
- "systemName": "string"
}
}
], - "createdAt": "2024-01-01T00:00:00.000Z",
- "closedAt": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
- "lastStateUpdateKey": "last_state_update_key",
- "isMuted": false,
- "metaLabels": [
- {
- "key": "key",
- "value": "value"
}
], - "duration": "string"
}
]
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/metrics-tco'; 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));
{- "rules": 1
}
No description available
This data structure is used to add a metrics tco rule.
label required | string |
regex required | string |
{- "label": "rule1",
- "regex": ".*"
}
{ }
No description available
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/metrics-archive'; 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));
{- "tenantConfig": {
- "tenantId": 0,
- "retentionPolicy": {
- "rawResolution": 1,
- "fiveMinutesResolution": 2,
- "oneHourResolution": 3
}, - "ibm": {
- "endpoint": "s3.us-south.cloud-object-storage.appdomain.cloud",
- "crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/1234567890abcdef1234567890abcdef:12345678-1234-1234-1234-1234567890ab::",
- "serviceCrn": "crn:v1:bluemix:public:cloud-object-storage:global:a/1234567890abcdef1234567890abcdef:12345678-1234-1234-1234-1234567890ab::"
}, - "s3": {
- "bucket": "string",
- "region": "string"
}, - "prefix": "string",
- "disabled": true
}
}
No description available
This data structure is used to configure a tenant.
required | object (Retenion Policy Request) This data structure is used to set the retention policy for a tenant. |
object (IBM Bucket Configuration) This data structure is used to configure an IBM bucket. | |
object (S3 Configuration) This data structure represents the S3 configuration for a tenant. |
{- "retentionPolicy": {
- "rawResolution": 1,
- "fiveMinutesResolution": 2,
- "oneHourResolution": 3
}, - "ibm": {
- "endpoint": "s3.us-south.cloud-object-storage.appdomain.cloud",
- "crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/1234567890abcdef1234567890abcdef:12345678-1234-1234-1234-1234567890ab::",
- "serviceCrn": "crn:v1:bluemix:public:cloud-object-storage:global:a/1234567890abcdef1234567890abcdef:12345678-1234-1234-1234-1234567890ab::"
}, - "s3": {
- "bucket": "string",
- "region": "string"
}
}
{ }
No description available
This data structure is used to update the configuration of a tenant.
retentionDays required | integer <int64> |
object (IBM Bucket Configuration) This data structure is used to configure an IBM bucket. | |
object (S3 Configuration) This data structure represents the S3 configuration for a tenant. |
{- "retentionDays": 0,
- "ibm": {
- "endpoint": "s3.us-south.cloud-object-storage.appdomain.cloud",
- "crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/1234567890abcdef1234567890abcdef:12345678-1234-1234-1234-1234567890ab::",
- "serviceCrn": "crn:v1:bluemix:public:cloud-object-storage:global:a/1234567890abcdef1234567890abcdef:12345678-1234-1234-1234-1234567890ab::"
}, - "s3": {
- "bucket": "string",
- "region": "string"
}
}
{ }
No description available
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/metrics-archive:disable'; let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/metrics-archive:enable'; let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
This data structure is used to validate a bucket.
object (IBM Bucket Configuration) This data structure is used to configure an IBM bucket. | |
object (S3 Configuration) This data structure represents the S3 configuration for a tenant. |
{- "ibm": {
- "endpoint": "s3.us-south.cloud-object-storage.appdomain.cloud",
- "crn": "crn:v1:bluemix:public:cloud-object-storage:global:a/1234567890abcdef1234567890abcdef:12345678-1234-1234-1234-1234567890ab::",
- "serviceCrn": "crn:v1:bluemix:public:cloud-object-storage:global:a/1234567890abcdef1234567890abcdef:12345678-1234-1234-1234-1234567890ab::"
}, - "s3": {
- "bucket": "string",
- "region": "string"
}
}
{ }
No description available
dateRange.fromDate | string <date-time> |
dateRange.toDate | string <date-time> |
resolution | string Aggregation resolution. Minimum supported value is 1h Do note that to avoid overloading the service we enforce resolution limits that depend on the server configuration. This is configured by the server. This means that, for instance, requests with 1 hour resolution for an interval of 30 days will be rejected but accepted for 1 day interval. Resolution must be between 1 hour and date_range interval |
aggregate | Array of strings Items Enum: "AGGREGATE_BY_UNSPECIFIED" "AGGREGATE_BY_APPLICATION" "AGGREGATE_BY_SUBSYSTEM" "AGGREGATE_BY_PILLAR" "AGGREGATE_BY_PRIORITY" List of aggregate parameters. i.e. if AggregateBy is [AGGREGATE_BY_PILLAR, AGGREGATE_BY_PRIORITY], then the response will stream data aggregated by pillar and priority. |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage?dateRange.fromDate=SOME_STRING_VALUE&dateRange.toDate=SOME_STRING_VALUE&resolution=SOME_STRING_VALUE&aggregate=SOME_ARRAY_VALUE'; 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));
{- "result": {
- "entries": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "sizeGb": 0.1,
- "units": 0.1,
- "dimensions": [
- {
- "pillar": "PILLAR_UNSPECIFIED",
- "genericDimension": {
- "key": "key",
- "value": "value"
}, - "tier": "TCO_TIER_UNSPECIFIED",
- "severity": "SEVERITY_UNSPECIFIED",
- "priority": "PRIORITY_UNSPECIFIED"
}
]
}
]
}, - "error": {
- "code": 0,
- "message": "string",
- "details": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}
No description available
range | string (datausagev2Range) Default: "RANGE_UNSPECIFIED" Enum: "RANGE_UNSPECIFIED" "RANGE_CURRENT_MONTH" "RANGE_LAST_30_DAYS" "RANGE_LAST_90_DAYS" "RANGE_LAST_WEEK" |
{- "range": "RANGE_UNSPECIFIED",
- "dateRange": {
- "fromDate": "2021-01-01T00:00:00.000Z",
- "toDate": "2021-01-01T00:00:00.000Z"
}
}
{- "tokens": [
- {
- "statsDate": "2019-08-24T14:15:22Z",
- "totalTokens": {
- "value": 0.1
}, - "evaluations": [
- {
- "evaluatorName": "string",
- "evaluationTokens": {
- "value": 0.1
}
}
]
}
]
}
No description available
range | string (datausagev2Range) Default: "RANGE_UNSPECIFIED" Enum: "RANGE_UNSPECIFIED" "RANGE_CURRENT_MONTH" "RANGE_LAST_30_DAYS" "RANGE_LAST_90_DAYS" "RANGE_LAST_WEEK" |
{- "range": "RANGE_UNSPECIFIED",
- "dateRange": {
- "fromDate": "2021-01-01T00:00:00.000Z",
- "toDate": "2021-01-01T00:00:00.000Z"
}
}
{- "gbs": [
- {
- "statsDate": "2019-08-24T14:15:22Z",
- "totalGbs": {
- "value": 0.1
}, - "blockedGbs": {
- "value": 0.1
}, - "lowLogsGbs": {
- "value": 0.1
}, - "mediumLogsGbs": {
- "value": 0.1
}, - "highLogsGbs": {
- "value": 0.1
}, - "highMetricsGbs": {
- "value": 0.1
}, - "lowTracingGbs": {
- "value": 0.1
}, - "mediumTracingGbs": {
- "value": 0.1
}, - "highTracingGbs": {
- "value": 0.1
}, - "lowSessionRecordingGbs": {
- "value": 0.1
}, - "cpuProfilesGbs": {
- "value": 0.1
}, - "blockedMetricsGbs": {
- "value": 0.1
}
}
]
}
No description available
range | string (datausagev2Range) Default: "RANGE_UNSPECIFIED" Enum: "RANGE_UNSPECIFIED" "RANGE_CURRENT_MONTH" "RANGE_LAST_30_DAYS" "RANGE_LAST_90_DAYS" "RANGE_LAST_WEEK" |
{- "range": "RANGE_UNSPECIFIED",
- "dateRange": {
- "fromDate": "2021-01-01T00:00:00.000Z",
- "toDate": "2021-01-01T00:00:00.000Z"
}
}
{- "units": [
- {
- "statsDate": "2019-08-24T14:15:22Z",
- "totalUnits": {
- "value": 0.1
}, - "blockedUnits": {
- "value": 0.1
}, - "lowLogsUnits": {
- "value": 0.1
}, - "mediumLogsUnits": {
- "value": 0.1
}, - "highLogsUnits": {
- "value": 0.1
}, - "highMetricsUnits": {
- "value": 0.1
}, - "lowTracingUnits": {
- "value": 0.1
}, - "mediumTracingUnits": {
- "value": 0.1
}, - "highTracingUnits": {
- "value": 0.1
}, - "lowSessionRecordingUnits": {
- "value": 0.1
}, - "evaluationUnits": {
- "value": 0.1
}, - "cpuProfilesUnits": {
- "value": 0.1
}, - "blockedMetricsUnits": {
- "value": 0.1
}
}
]
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/exportstatus'; 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));
{- "enabled": true
}
No description available
This data structure is used to update data usage metrics export status.
enabled | boolean |
{- "enabled": true
}
{- "enabled": true
}
No description available
dateRange.fromDate | string <date-time> |
dateRange.toDate | string <date-time> |
resolution | string Aggregation resolution with second precision. Resolution must be between 1 second and date_range interval |
filters.application | Array of strings |
filters.subsystem | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/logscount?dateRange.fromDate=SOME_STRING_VALUE&dateRange.toDate=SOME_STRING_VALUE&resolution=SOME_STRING_VALUE&filters.application=SOME_ARRAY_VALUE&filters.subsystem=SOME_ARRAY_VALUE'; 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));
{- "result": {
- "logsCount": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "logsCount": 100,
- "severity": "SEVERITY_UNSPECIFIED",
- "priority": "PRIORITY_UNSPECIFIED"
}
]
}, - "error": {
- "code": 0,
- "message": "string",
- "details": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}
No description available
dateRange.fromDate | string <date-time> |
dateRange.toDate | string <date-time> |
resolution | string Aggregation resolution with second precision. Resolution must be between 1 second and date_range interval |
filters.application | Array of strings |
filters.subsystem | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v2/datausage/spanscount?dateRange.fromDate=SOME_STRING_VALUE&dateRange.toDate=SOME_STRING_VALUE&resolution=SOME_STRING_VALUE&filters.application=SOME_ARRAY_VALUE&filters.subsystem=SOME_ARRAY_VALUE'; 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));
{- "result": {
- "spansCount": [
- {
- "timestamp": "2021-01-01T00:00:00.000Z",
- "successSpanCount": 100,
- "errorSpanCount": 10,
- "lowSuccessSpanCount": 50,
- "lowErrorSpanCount": 5,
- "mediumSuccessSpanCount": 200,
- "mediumErrorSpanCount": 20
}
]
}, - "error": {
- "code": 0,
- "message": "string",
- "details": [
- {
- "@type": "string",
- "property1": null,
- "property2": null
}
]
}
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v2/target'; 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));
{- "target": {
- "s3": {
- "bucket": "bucket",
- "region": "us-west-2"
}, - "ibmCos": {
- "bucketCrn": "bucket_crn",
- "serviceCrn": "service_crn",
- "bucketType": "IBM_BUCKET_TYPE_UNSPECIFIED"
}, - "archiveSpec": {
- "archivingFormatId": "json_id",
- "isActive": true,
- "enableTags": true
}
}
}
No description available
This data structure is used to set a storage target for logs.
isActive required | boolean |
object (IBM COS Target Spec) This data structure represents an IBM COS target. |
{- "isActive": true,
- "s3": {
- "bucket": "bucket",
- "region": "us-west-2"
}, - "ibmCos": {
- "bucketCrn": "bucket_crn",
- "serviceCrn": "service_crn",
- "bucketType": "IBM_BUCKET_TYPE_UNSPECIFIED"
}
}
{- "target": {
- "s3": {
- "bucket": "bucket",
- "region": "us-west-2"
}, - "ibmCos": {
- "bucketCrn": "bucket_crn",
- "serviceCrn": "service_crn",
- "bucketType": "IBM_BUCKET_TYPE_UNSPECIFIED"
}, - "archiveSpec": {
- "archivingFormatId": "json_id",
- "isActive": true,
- "enableTags": true
}
}
}
No description available
This data structure is used to validate a storage target for logs.
isActive required | boolean |
object (IBM COS Target Spec) This data structure represents an IBM COS target. |
{- "isActive": true,
- "s3": {
- "bucket": "bucket",
- "region": "us-west-2"
}, - "ibmCos": {
- "bucketCrn": "bucket_crn",
- "serviceCrn": "service_crn",
- "bucketType": "IBM_BUCKET_TYPE_UNSPECIFIED"
}
}
{- "isValid": true
}
No description available
name | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups?name=SOME_STRING_VALUE'; 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));
{- "group": {
- "groupId": {
- "id": 0
}, - "name": "string",
- "description": "string",
- "externalId": "string",
- "groupOrigin": "GROUP_ORIGIN_UNSPECIFIED",
- "teamId": {
- "id": 0
}, - "roles": [
- {
- "roleId": {
- "id": 0
}, - "name": "string",
- "description": "string"
}
], - "scope": {
- "id": {
- "id": 0
}, - "filters": {
- "subsystems": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
], - "applications": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
]
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "nextGenScopeId": "string"
}
}
No description available
Request to create a new team group with specified name, description, roles, users, and optional scope filters. Can be associated with a specific team or the authenticated team.
name | string (/ Team group name) |
object (coralogixpermissionsv1TeamId) | |
description | string (/ Team group description) |
externalId | string / Team group external_id. Applies if team is externally defined. |
Array of objects (/ Roles to associate with team group) | |
Array of objects (/ Users to associate with team group) | |
object (/ Scope filters are currently possible to be defined for subsystems and applications) | |
nextGenScopeId | string |
{- "name": "string",
- "teamId": {
- "id": 0
}, - "description": "string",
- "externalId": "string",
- "roleIds": [
- {
- "id": 0
}
], - "userIds": [
- {
- "id": "string"
}
], - "scopeFilters": {
- "subsystems": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
], - "applications": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
]
}, - "nextGenScopeId": "string"
}
{- "groupId": {
- "id": 0
}
}
No description available
Request to modify an existing team group's details, including its name, description, roles, users, and scope settings.
object (TeamGroupId) This data structure represents the information associated with a team group. | |
name | string (/ Updated team group name) |
description | string (/ Updated team group description) |
externalId | string (/ Updated team group external_id) |
object (RoleUpdates) This data structure represents the information associated with an API key. | |
object (UserUpdates) This data structure represents the information associated with an API key. | |
object (/ Scope filters are currently possible to be defined for subsystems and applications) | |
nextGenScopeId | string (/ If set, updates new team group next gen scope) |
{- "groupId": {
- "id": 0
}, - "name": "string",
- "description": "string",
- "externalId": "string",
- "roleUpdates": {
- "roleIds": [
- {
- "id": 0
}
]
}, - "userUpdates": {
- "userIds": [
- {
- "id": "string"
}
]
}, - "scopeFilters": {
- "subsystems": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
], - "applications": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
]
}, - "nextGenScopeId": "string"
}
{ }
No description available
teamId.id | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups/list?teamId.id=SOME_INTEGER_VALUE'; 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));
{- "groups": [
- {
- "groupId": {
- "id": 0
}, - "name": "string",
- "description": "string",
- "externalId": "string",
- "groupOrigin": "GROUP_ORIGIN_UNSPECIFIED",
- "teamId": {
- "id": 0
}, - "roles": [
- {
- "roleId": {
- "id": 0
}, - "name": "string",
- "description": "string"
}
], - "scope": {
- "id": {
- "id": 0
}, - "filters": {
- "subsystems": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
], - "applications": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
]
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "nextGenScopeId": "string"
}
]
}
No description available
teamId.id | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups/users?teamId.id=SOME_INTEGER_VALUE'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
Bulk request to assign users to multiple team groups simultaneously, efficiently managing group memberships at scale.
object (coralogixpermissionsv1TeamId) | |
Array of objects (AddUsersToTeamGroup) |
{- "teamId": {
- "id": 0
}, - "addUsersToGroup": [
- {
- "groupId": {
- "id": 0
}, - "userIds": [
- {
- "id": "string"
}
]
}
]
}
{ }
No description available
groupId.id required | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups/%7BgroupId.id%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));
{- "group": {
- "groupId": {
- "id": 0
}, - "name": "string",
- "description": "string",
- "externalId": "string",
- "groupOrigin": "GROUP_ORIGIN_UNSPECIFIED",
- "teamId": {
- "id": 0
}, - "roles": [
- {
- "roleId": {
- "id": 0
}, - "name": "string",
- "description": "string"
}
], - "scope": {
- "id": {
- "id": 0
}, - "filters": {
- "subsystems": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
], - "applications": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
]
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "nextGenScopeId": "string"
}
}
No description available
groupId.id required | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups/%7BgroupId.id%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
groupId.id required | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups/%7BgroupId.id%7D/scope'; 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));
{- "scope": {
- "id": {
- "id": 0
}, - "filters": {
- "subsystems": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
], - "applications": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
]
}
}
}
No description available
groupId.id required | integer <int64> |
groupId | |
object (/ Scope filters are currently possible to be defined for subsystems and applications) |
{- "groupId": { },
- "scopeFilters": {
- "subsystems": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
], - "applications": [
- {
- "term": "string",
- "filterType": "FILTER_TYPE_UNSPECIFIED"
}
]
}
}
{- "scopeId": {
- "id": 0
}
}
No description available
groupId.id required | integer <int64> |
pageSize | integer <int64> / Pagination size. Defaults to 100 if empty |
pageToken | string / Optional pagination continuation token / Contains an encoded cursor |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups/%7BgroupId.id%7D/users?pageSize=SOME_INTEGER_VALUE&pageToken=SOME_STRING_VALUE'; 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));
{- "users": [
- {
- "userId": {
- "id": "string"
}, - "userAccountId": {
- "id": 0
}, - "username": "string",
- "firstName": "string",
- "lastName": "string",
- "status": "USER_STATUS_UNSPECIFIED"
}
], - "noMorePages": { },
- "token": {
- "nextPageToken": "string"
}
}
No description available
groupId.id required | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/teams/groups/%7BgroupId.id%7D/users'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
groupId.id required | integer <int64> |
groupId | |
Array of objects (/ Users to add to group) |
{- "groupId": { },
- "userIds": [
- {
- "id": "string"
}
]
}
{- "teamId": {
- "id": 0
}
}
A service that enables querying for integration information.
No description available
includeTestingRevision | boolean |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations?includeTestingRevision=SOME_BOOLEAN_VALUE'; 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));
{- "integrations": [
- {
- "integration": {
- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "darkIcon": "string",
- "tags": [
- "string"
], - "versions": [
- "string"
], - "integrationType": {
- "managed": {
- "variant": "DEFAULT"
}, - "untracked": { },
- "cloudformation": { },
- "arm": { },
- "pushBasedContextualData": { },
- "contextualData": { },
- "genericWebhook": { }
}, - "featureFlag": "string"
}, - "amountIntegrations": 0,
- "errors": [
- "string"
], - "upgradeAvailable": true,
- "isNew": true
}
]
}
No description available
id required | string |
includeTestingRevision | boolean |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations/definition/%7Bid%7D?includeTestingRevision=SOME_BOOLEAN_VALUE'; 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));
{- "integrationDefinition": {
- "key": "string",
- "integrationType": {
- "managed": {
- "variant": "DEFAULT"
}, - "untracked": { },
- "cloudformation": { },
- "arm": { },
- "pushBasedContextualData": { },
- "contextualData": { },
- "genericWebhook": { }
}, - "revisions": [
- {
- "id": "string",
- "fields": [
- {
- "single": {
- "defaultValue": "string"
}, - "multiText": {
- "options": [
- "string"
], - "defaultValues": [
- "string"
]
}, - "multipleSelection": {
- "options": [
- "string"
]
}, - "singleBoolean": {
- "defaultValue": true
}, - "selection": {
- "options": [
- "string"
], - "defaultValue": "string"
}, - "singleNumber": {
- "defaultValue": 0.1
}, - "type": "API_KEY",
- "name": "string",
- "tooltip": "string",
- "templateParamName": "string",
- "placeholder": "string",
- "required": true,
- "predefined": true,
- "visible": true,
- "readonly": true,
- "applicableIf": {
- "type": "UNKNOWN",
- "values": [
- {
- "fieldName": "string",
- "valuePattern": "string"
}
]
}, - "groupId": "string",
- "upgradeNotice": "string",
- "allowedPattern": "string",
- "documentationReference": "string"
}
], - "groups": [
- {
- "id": "string",
- "name": "string"
}
], - "cloudFormation": {
- "templateUrl": "string",
- "parameters": {
- "property1": "string",
- "property2": "string"
}, - "postInstallationSteps": {
- "property1": "string",
- "property2": "string"
}
}, - "managedService": { },
- "helmChart": {
- "template": "string",
- "commands": [
- {
- "name": "string",
- "command": "string",
- "description": "string",
- "tooltipText": "string",
- "language": "UNKNOWN",
- "links": [
- {
- "key": "string",
- "text": "string",
- "url": "string"
}
]
}
], - "guide": {
- "introduction": "string",
- "installationRequirements": "string"
}
}, - "azureArmTemplate": {
- "templateUrl": "string"
}, - "rum": {
- "browserSdkCommands": [
- {
- "name": "string",
- "command": "string",
- "description": "string",
- "tooltipText": "string",
- "language": "UNKNOWN",
- "links": [
- {
- "key": "string",
- "text": "string",
- "url": "string"
}
]
}
], - "sourceMapCommands": [
- {
- "name": "string",
- "command": "string",
- "description": "string",
- "tooltipText": "string",
- "language": "UNKNOWN",
- "links": [
- {
- "key": "string",
- "text": "string",
- "url": "string"
}
]
}
]
}, - "terraform": {
- "configurationBlocks": [
- {
- "name": "string",
- "value": "string",
- "description": "string"
}
]
}, - "upgradeInstructionsMd": "string",
- "revisionDeploymentSupported": true,
- "featureFlag": "string"
}
], - "featureFlag": "string"
}
}
No description available
integrationId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations/deployed/%7BintegrationId%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));
{- "integration": {
- "id": "string",
- "definitionKey": "string",
- "definitionVersion": "string",
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
], - "integrationStatus": {
- "connectionStatus": "PENDING",
- "details": {
- "property1": "string",
- "property2": "string"
}, - "messages": [
- "string"
]
}
}
}
No description available
integrationId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations/instance/%7BintegrationId%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations/managed/list'; 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));
{- "integrationKeys": [
- "string"
]
}
No description available
integrationId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations/managed/status/%7BintegrationId%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));
{- "integrationId": "string",
- "status": {
- "connectionStatus": "PENDING",
- "details": {
- "property1": "string",
- "property2": "string"
}, - "messages": [
- "string"
]
}
}
No description available
required | object (Integration metadata) This data structure represents the metadata of an integration. |
{- "metadata": {
- "integrationKey": "string",
- "version": "string",
- "integrationParameters": {
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
]
}
}
}
{- "integrationId": "string"
}
No description available
This data structure represents a list of outgoing webhook types.
id required | string (This is the integration ID generated at creation time) |
required | object (Integration metadata) This data structure represents the metadata of an integration. |
{- "id": "string",
- "metadata": {
- "integrationKey": "string",
- "version": "string",
- "integrationParameters": {
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
]
}
}
}
{ }
No description available
required | object (Integration metadata) This data structure represents the metadata of an integration. |
integrationId | string |
{- "integrationData": {
- "integrationKey": "string",
- "version": "string",
- "integrationParameters": {
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
]
}
}, - "integrationId": "string"
}
{- "result": {
- "success": { },
- "failure": {
- "errorMessage": "string"
}
}
}
No description available
applicationName required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations/rum/app-versions?applicationName=SOME_STRING_VALUE'; 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));
{- "versionData": {
- "versions": [
- {
- "version": "string",
- "logMetadata": {
- "firstOccurrence": "2019-08-24T14:15:22Z",
- "lastOccurrence": "2019-08-24T14:15:22Z"
}, - "sourceMapMetadata": {
- "createdAt": "2019-08-24T14:15:22Z",
- "isUploadedSuccessful": true
}
}
], - "syncedAt": "2019-08-24T14:15:22Z"
}
}
No description available
force | boolean The time between syncs is controlled by configuration. |
{- "force": true
}
{- "syncExecuted": true,
- "syncedAt": "2019-08-24T14:15:22Z"
}
No description available
integrationId required | string |
commonArmParams.logsUrl required | string |
commonArmParams.apiKey required | string |
commonArmParams.cgxDomain required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations/template?integrationId=SOME_STRING_VALUE&commonArmParams.logsUrl=SOME_STRING_VALUE&commonArmParams.apiKey=SOME_STRING_VALUE&commonArmParams.cgxDomain=SOME_STRING_VALUE'; 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));
{- "templateUrl": "string"
}
No description available
id required | string |
includeTestingRevision | boolean |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/integrations/%7Bid%7D?includeTestingRevision=SOME_BOOLEAN_VALUE'; 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));
{- "integrationDetail": {
- "integration": {
- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "darkIcon": "string",
- "tags": [
- "string"
], - "versions": [
- "string"
], - "integrationType": {
- "managed": {
- "variant": "DEFAULT"
}, - "untracked": { },
- "cloudformation": { },
- "arm": { },
- "pushBasedContextualData": { },
- "contextualData": { },
- "genericWebhook": { }
}, - "featureFlag": "string"
}, - "extensions": [
- {
- "id": "string",
- "name": "string",
- "image": "string",
- "darkModeImage": "string",
- "revisions": [
- {
- "version": "string",
- "description": "string",
- "excerpt": "string",
- "labels": [
- "[]"
], - "integrationDetails": [
- {
- "name": "string",
- "link": "string"
}
], - "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "targetDomain": "ACTION",
- "data": { },
- "binaries": [
- {
- "type": null,
- "data": null,
- "fileName": null
}
], - "isMandatory": "false",
- "permissionResource": "UNKNOWN",
- "extendedInternalId": "string",
- "uniqueId": "string"
}
], - "binaries": [
- {
- "type": "KIBANA_INDEX_PATTERN",
- "data": "string"
}
], - "permissionDeniedItems": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "targetDomain": "ACTION",
- "data": { },
- "binaries": [
- {
- "type": null,
- "data": null,
- "fileName": null
}
], - "isMandatory": "false",
- "permissionResource": "UNKNOWN",
- "extendedInternalId": "string",
- "uniqueId": "string"
}
], - "isTesting": "false"
}
], - "isHidden": "false",
- "integrations": [
- "[]"
], - "keywords": [
- "[]"
], - "permissionDeniedRevisions": [
- {
- "version": "string",
- "description": "string",
- "excerpt": "string",
- "labels": [
- "[]"
], - "integrationDetails": [
- {
- "name": "string",
- "link": "string"
}
], - "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "targetDomain": "ACTION",
- "data": { },
- "binaries": [
- {
- "type": null,
- "data": null,
- "fileName": null
}
], - "isMandatory": "false",
- "permissionResource": "UNKNOWN",
- "extendedInternalId": "string",
- "uniqueId": "string"
}
], - "binaries": [
- {
- "type": "KIBANA_INDEX_PATTERN",
- "data": "string"
}
], - "permissionDeniedItems": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "targetDomain": "ACTION",
- "data": { },
- "binaries": [
- {
- "type": null,
- "data": null,
- "fileName": null
}
], - "isMandatory": "false",
- "permissionResource": "UNKNOWN",
- "extendedInternalId": "string",
- "uniqueId": "string"
}
], - "isTesting": "false"
}
], - "changelog": [
- {
- "version": "string",
- "descriptionMd": "string"
}
], - "deprecation": {
- "reason": "string",
- "replacementExtensions": [
- "[]"
]
}
}
], - "docs": [
- {
- "name": "string",
- "link": "string"
}
], - "default": {
- "registered": [
- {
- "id": "string",
- "definitionVersion": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
], - "integrationStatus": {
- "connectionStatus": "PENDING",
- "details": {
- "property1": "string",
- "property2": "string"
}, - "messages": [
- "string"
]
}, - "empty": { },
- "cloudformation": {
- "arn": "string",
- "region": "string"
}, - "arm": {
- "subscriptionId": "string",
- "resourceGroupName": "string"
}, - "isTesting": true
}
]
}, - "local": {
- "changes": [
- {
- "version": "string",
- "descriptionMd": "string"
}
]
}, - "external": {
- "url": "string"
}
}
}
No description available
required | object (Integration metadata) This data structure represents the metadata of an integration. |
{- "metadata": {
- "integrationKey": "string",
- "version": "string",
- "integrationParameters": {
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
]
}
}
}
{- "integrationId": "string"
}
No description available
integrationId required | string |
required | object (Integration metadata) This data structure represents the metadata of an integration. |
{- "integrationId": "string",
- "metadata": {
- "integrationKey": "string",
- "version": "string",
- "integrationParameters": {
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
]
}
}
}
{ }
No description available
required | object (Integration metadata) This data structure represents the metadata of an integration. |
integrationId | string |
{- "integrationData": {
- "integrationKey": "string",
- "version": "string",
- "integrationParameters": {
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
]
}
}, - "integrationId": "string"
}
{- "result": {
- "success": { },
- "failure": {
- "errorMessage": "string"
}
}
}
No description available
integrationId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/contextual-data/integration/%7BintegrationId%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
includeTestingIntegrations | boolean |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/contextual-data/integrations?includeTestingIntegrations=SOME_BOOLEAN_VALUE'; 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));
{- "integrations": [
- {
- "integration": {
- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "darkIcon": "string",
- "tags": [
- "string"
], - "versions": [
- "string"
], - "integrationType": {
- "managed": {
- "variant": "DEFAULT"
}, - "untracked": { },
- "cloudformation": { },
- "arm": { },
- "pushBasedContextualData": { },
- "contextualData": { },
- "genericWebhook": { }
}, - "featureFlag": "string"
}, - "amountIntegrations": 0,
- "errors": [
- "string"
], - "upgradeAvailable": true,
- "isNew": true
}
]
}
No description available
id required | string |
includeTestingIntegrations | boolean |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/contextual-data/integrations/definition/%7Bid%7D?includeTestingIntegrations=SOME_BOOLEAN_VALUE'; 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));
{- "integrationDefinition": {
- "key": "string",
- "integrationType": {
- "managed": {
- "variant": "DEFAULT"
}, - "untracked": { },
- "cloudformation": { },
- "arm": { },
- "pushBasedContextualData": { },
- "contextualData": { },
- "genericWebhook": { }
}, - "revisions": [
- {
- "id": "string",
- "fields": [
- {
- "single": {
- "defaultValue": "string"
}, - "multiText": {
- "options": [
- "string"
], - "defaultValues": [
- "string"
]
}, - "multipleSelection": {
- "options": [
- "string"
]
}, - "singleBoolean": {
- "defaultValue": true
}, - "selection": {
- "options": [
- "string"
], - "defaultValue": "string"
}, - "singleNumber": {
- "defaultValue": 0.1
}, - "type": "API_KEY",
- "name": "string",
- "tooltip": "string",
- "templateParamName": "string",
- "placeholder": "string",
- "required": true,
- "predefined": true,
- "visible": true,
- "readonly": true,
- "applicableIf": {
- "type": "UNKNOWN",
- "values": [
- {
- "fieldName": "string",
- "valuePattern": "string"
}
]
}, - "groupId": "string",
- "upgradeNotice": "string",
- "allowedPattern": "string",
- "documentationReference": "string"
}
], - "groups": [
- {
- "id": "string",
- "name": "string"
}
], - "cloudFormation": {
- "templateUrl": "string",
- "parameters": {
- "property1": "string",
- "property2": "string"
}, - "postInstallationSteps": {
- "property1": "string",
- "property2": "string"
}
}, - "managedService": { },
- "helmChart": {
- "template": "string",
- "commands": [
- {
- "name": "string",
- "command": "string",
- "description": "string",
- "tooltipText": "string",
- "language": "UNKNOWN",
- "links": [
- {
- "key": "string",
- "text": "string",
- "url": "string"
}
]
}
], - "guide": {
- "introduction": "string",
- "installationRequirements": "string"
}
}, - "azureArmTemplate": {
- "templateUrl": "string"
}, - "rum": {
- "browserSdkCommands": [
- {
- "name": "string",
- "command": "string",
- "description": "string",
- "tooltipText": "string",
- "language": "UNKNOWN",
- "links": [
- {
- "key": "string",
- "text": "string",
- "url": "string"
}
]
}
], - "sourceMapCommands": [
- {
- "name": "string",
- "command": "string",
- "description": "string",
- "tooltipText": "string",
- "language": "UNKNOWN",
- "links": [
- {
- "key": "string",
- "text": "string",
- "url": "string"
}
]
}
]
}, - "terraform": {
- "configurationBlocks": [
- {
- "name": "string",
- "value": "string",
- "description": "string"
}
]
}, - "upgradeInstructionsMd": "string",
- "revisionDeploymentSupported": true,
- "featureFlag": "string"
}
], - "featureFlag": "string"
}
}
No description available
id required | string |
includeTestingRevisions | boolean |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/contextual-data/integrations/%7Bid%7D?includeTestingRevisions=SOME_BOOLEAN_VALUE'; 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));
{- "integrationDetail": {
- "integration": {
- "id": "string",
- "name": "string",
- "description": "string",
- "icon": "string",
- "darkIcon": "string",
- "tags": [
- "string"
], - "versions": [
- "string"
], - "integrationType": {
- "managed": {
- "variant": "DEFAULT"
}, - "untracked": { },
- "cloudformation": { },
- "arm": { },
- "pushBasedContextualData": { },
- "contextualData": { },
- "genericWebhook": { }
}, - "featureFlag": "string"
}, - "extensions": [
- {
- "id": "string",
- "name": "string",
- "image": "string",
- "darkModeImage": "string",
- "revisions": [
- {
- "version": "string",
- "description": "string",
- "excerpt": "string",
- "labels": [
- "[]"
], - "integrationDetails": [
- {
- "name": "string",
- "link": "string"
}
], - "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "targetDomain": "ACTION",
- "data": { },
- "binaries": [
- {
- "type": null,
- "data": null,
- "fileName": null
}
], - "isMandatory": "false",
- "permissionResource": "UNKNOWN",
- "extendedInternalId": "string",
- "uniqueId": "string"
}
], - "binaries": [
- {
- "type": "KIBANA_INDEX_PATTERN",
- "data": "string"
}
], - "permissionDeniedItems": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "targetDomain": "ACTION",
- "data": { },
- "binaries": [
- {
- "type": null,
- "data": null,
- "fileName": null
}
], - "isMandatory": "false",
- "permissionResource": "UNKNOWN",
- "extendedInternalId": "string",
- "uniqueId": "string"
}
], - "isTesting": "false"
}
], - "isHidden": "false",
- "integrations": [
- "[]"
], - "keywords": [
- "[]"
], - "permissionDeniedRevisions": [
- {
- "version": "string",
- "description": "string",
- "excerpt": "string",
- "labels": [
- "[]"
], - "integrationDetails": [
- {
- "name": "string",
- "link": "string"
}
], - "items": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "targetDomain": "ACTION",
- "data": { },
- "binaries": [
- {
- "type": null,
- "data": null,
- "fileName": null
}
], - "isMandatory": "false",
- "permissionResource": "UNKNOWN",
- "extendedInternalId": "string",
- "uniqueId": "string"
}
], - "binaries": [
- {
- "type": "KIBANA_INDEX_PATTERN",
- "data": "string"
}
], - "permissionDeniedItems": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "targetDomain": "ACTION",
- "data": { },
- "binaries": [
- {
- "type": null,
- "data": null,
- "fileName": null
}
], - "isMandatory": "false",
- "permissionResource": "UNKNOWN",
- "extendedInternalId": "string",
- "uniqueId": "string"
}
], - "isTesting": "false"
}
], - "changelog": [
- {
- "version": "string",
- "descriptionMd": "string"
}
], - "deprecation": {
- "reason": "string",
- "replacementExtensions": [
- "[]"
]
}
}
], - "docs": [
- {
- "name": "string",
- "link": "string"
}
], - "default": {
- "registered": [
- {
- "id": "string",
- "definitionVersion": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "parameters": [
- {
- "key": "string",
- "stringValue": "string",
- "booleanValue": true,
- "stringList": {
- "values": [
- "string"
]
}, - "apiKey": {
- "id": "string",
- "value": "string"
}, - "numericValue": 0.1,
- "sensitiveData": { }
}
], - "integrationStatus": {
- "connectionStatus": "PENDING",
- "details": {
- "property1": "string",
- "property2": "string"
}, - "messages": [
- "string"
]
}, - "empty": { },
- "cloudformation": {
- "arn": "string",
- "region": "string"
}, - "arm": {
- "subscriptionId": "string",
- "resourceGroupName": "string"
}, - "isTesting": true
}
]
}, - "local": {
- "changes": [
- {
- "version": "string",
- "descriptionMd": "string"
}
]
}, - "external": {
- "url": "string"
}
}
}
No description available
type required | string Default: "UNKNOWN" Enum: "UNKNOWN" "GENERIC" "SLACK" "PAGERDUTY" "SEND_LOG" "EMAIL_GROUP" "MICROSOFT_TEAMS" "JIRA" "OPSGENIE" "DEMISTO" "AWS_EVENT_BRIDGE" "IBM_EVENT_NOTIFICATIONS" "MS_TEAMS_WORKFLOW" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/outgoing-webhooks?type=SOME_STRING_VALUE'; 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));
{- "deployed": [
- {
- "id": "webhook_id",
- "name": "my_webhook",
- "url": "slack.webhook.com",
- "createdAt": "2024-10-20T00:00:00.000Z",
- "updatedAt": "2024-10-20T00:00:00.000Z",
- "externalId": "external_id_example"
}
]
}
No description available
required | object (Outgoing webhook input data) |
{- "data": {
- "type": "UNKNOWN",
- "name": "my_webhook",
- "url": "slack.webhook.com",
- "genericWebhook": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "method": "UNKNOWN",
- "headers": {
- "Content-Type": "application/json"
}, - "payload": {
- "key": "value"
}
}, - "slack": {
- "digests": [
- {
- "type": "UNKNOWN",
- "isActive": "false"
}
], - "attachments": [
- {
- "type": "EMPTY",
- "isActive": "false"
}
]
}, - "pagerDuty": {
- "serviceKey": "pager_duty_service_key"
}, - "sendLog": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "payload": {
- "key": "value"
}
}, - "emailGroup": {
- "emailAddresses": [
- "example@coralogix.com"
]
}, - "microsoftTeams": { },
- "jira": {
- "apiToken": "jira_api_token",
- "email": "jira_email",
- "projectKey": "jira_project_key"
}, - "opsgenie": { },
- "demisto": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "payload": {
- "key": "value"
}
}, - "awsEventBridge": {
- "eventBusArn": "arn:aws:events:us-east-1:123456789012:event-bus/default",
- "detail": {
- "key": "value"
}, - "detailType": "detail_type",
- "source": "source",
- "roleName": "role_name"
}, - "ibmEventNotifications": {
- "eventNotificationsInstanceId": "string",
- "regionId": "string",
- "sourceId": "string",
- "sourceName": "string",
- "endpointType": "ENDPOINT_TYPE_DEFAULT_OR_PUBLIC"
}, - "msTeamsWorkflow": { }
}
}
{- "id": "example_id"
}
No description available
id required | string |
required | object (Outgoing webhook input data) |
{- "id": "example_id",
- "data": {
- "type": "UNKNOWN",
- "name": "my_webhook",
- "url": "slack.webhook.com",
- "genericWebhook": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "method": "UNKNOWN",
- "headers": {
- "Content-Type": "application/json"
}, - "payload": {
- "key": "value"
}
}, - "slack": {
- "digests": [
- {
- "type": "UNKNOWN",
- "isActive": "false"
}
], - "attachments": [
- {
- "type": "EMPTY",
- "isActive": "false"
}
]
}, - "pagerDuty": {
- "serviceKey": "pager_duty_service_key"
}, - "sendLog": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "payload": {
- "key": "value"
}
}, - "emailGroup": {
- "emailAddresses": [
- "example@coralogix.com"
]
}, - "microsoftTeams": { },
- "jira": {
- "apiToken": "jira_api_token",
- "email": "jira_email",
- "projectKey": "jira_project_key"
}, - "opsgenie": { },
- "demisto": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "payload": {
- "key": "value"
}
}, - "awsEventBridge": {
- "eventBusArn": "arn:aws:events:us-east-1:123456789012:event-bus/default",
- "detail": {
- "key": "value"
}, - "detailType": "detail_type",
- "source": "source",
- "roleName": "role_name"
}, - "ibmEventNotifications": {
- "eventNotificationsInstanceId": "string",
- "regionId": "string",
- "sourceId": "string",
- "sourceName": "string",
- "endpointType": "ENDPOINT_TYPE_DEFAULT_OR_PUBLIC"
}, - "msTeamsWorkflow": { }
}
}
{ }
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/outgoing-webhooks/all'; 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));
{- "deployed": [
- {
- "id": "webhook_id",
- "type": "UNKNOWN",
- "name": "my_webhook",
- "url": "slack.webhook.com",
- "createdAt": "2024-10-20T00:00:00.000Z",
- "updatedAt": "2024-10-20T00:00:00.000Z",
- "externalId": "external_id_example"
}
]
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/outgoing-webhooks/ibm-event-notifications/instances'; 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));
{- "instances": [
- {
- "instanceId": "5a8b249b-3915-49e7-ad43-030f585d84c5",
- "regionId": "eu-gb",
- "name": "example-name",
- "crn": "crn:v1:staging:public:logs:eu-gb:a/436fa6f7760f46eba99e22f099c33cb8:5a8b249b-3915-49e7-ad43-030f585d84c5::",
- "isUsed": true
}
]
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/outgoing-webhooks/summary'; 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));
{- "outboundWebhookSummaries": [
- {
- "id": "string",
- "type": "UNKNOWN",
- "name": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "externalId": 0
}
]
}
No description available
required | object (Outgoing webhook input data) |
{- "data": {
- "type": "UNKNOWN",
- "name": "my_webhook",
- "url": "slack.webhook.com",
- "genericWebhook": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "method": "UNKNOWN",
- "headers": {
- "Content-Type": "application/json"
}, - "payload": {
- "key": "value"
}
}, - "slack": {
- "digests": [
- {
- "type": "UNKNOWN",
- "isActive": "false"
}
], - "attachments": [
- {
- "type": "EMPTY",
- "isActive": "false"
}
]
}, - "pagerDuty": {
- "serviceKey": "pager_duty_service_key"
}, - "sendLog": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "payload": {
- "key": "value"
}
}, - "emailGroup": {
- "emailAddresses": [
- "example@coralogix.com"
]
}, - "microsoftTeams": { },
- "jira": {
- "apiToken": "jira_api_token",
- "email": "jira_email",
- "projectKey": "jira_project_key"
}, - "opsgenie": { },
- "demisto": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "payload": {
- "key": "value"
}
}, - "awsEventBridge": {
- "eventBusArn": "arn:aws:events:us-east-1:123456789012:event-bus/default",
- "detail": {
- "key": "value"
}, - "detailType": "detail_type",
- "source": "source",
- "roleName": "role_name"
}, - "ibmEventNotifications": {
- "eventNotificationsInstanceId": "string",
- "regionId": "string",
- "sourceId": "string",
- "sourceName": "string",
- "endpointType": "ENDPOINT_TYPE_DEFAULT_OR_PUBLIC"
}, - "msTeamsWorkflow": { }
}
}
{- "success": { },
- "failure": {
- "errorMessage": "example_error_message",
- "displayMessage": "example_display_message",
- "statusCode": 400
}
}
No description available
id required | string |
{- "id": "example_id"
}
{- "success": { },
- "failure": {
- "errorMessage": "example_error_message",
- "displayMessage": "example_display_message",
- "statusCode": 400
}
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/outgoing-webhooks/types'; 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));
{- "webhooks": [
- {
- "type": "UNKNOWN",
- "label": "example_label",
- "count": 3
}
]
}
No description available
type required | string Enum: "UNKNOWN" "GENERIC" "SLACK" "PAGERDUTY" "SEND_LOG" "EMAIL_GROUP" "MICROSOFT_TEAMS" "JIRA" "OPSGENIE" "DEMISTO" "AWS_EVENT_BRIDGE" "IBM_EVENT_NOTIFICATIONS" "MS_TEAMS_WORKFLOW" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/outgoing-webhooks/types/%7Btype%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));
{- "details": {
- "type": "UNKNOWN",
- "label": "example_label"
}
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/outgoing-webhooks/%7Bid%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));
{- "webhook": {
- "id": "webhook_id",
- "type": "UNKNOWN",
- "name": "my_webhook",
- "url": "slack.webhook.com",
- "createdAt": "2024-10-20T00:00:00.000Z",
- "updatedAt": "2024-10-20T00:00:00.000Z",
- "externalId": "external_id_example",
- "genericWebhook": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "method": "UNKNOWN",
- "headers": {
- "Content-Type": "application/json"
}, - "payload": {
- "key": "value"
}
}, - "slack": {
- "digests": [
- {
- "type": "UNKNOWN",
- "isActive": "false"
}
], - "attachments": [
- {
- "type": "EMPTY",
- "isActive": "false"
}
]
}, - "pagerDuty": {
- "serviceKey": "pager_duty_service_key"
}, - "sendLog": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "payload": {
- "key": "value"
}
}, - "emailGroup": {
- "emailAddresses": [
- "example@coralogix.com"
]
}, - "microsoftTeams": { },
- "jira": {
- "apiToken": "jira_api_token",
- "email": "jira_email",
- "projectKey": "jira_project_key"
}, - "opsgenie": { },
- "demisto": {
- "uuid": "d838cd7b-087b-40c6-bc33-80997020f5d0",
- "payload": {
- "key": "value"
}
}, - "awsEventBridge": {
- "eventBusArn": "arn:aws:events:us-east-1:123456789012:event-bus/default",
- "detail": {
- "key": "value"
}, - "detailType": "detail_type",
- "source": "source",
- "roleName": "role_name"
}, - "ibmEventNotifications": {
- "eventNotificationsInstanceId": "string",
- "regionId": "string",
- "sourceId": "string",
- "sourceName": "string",
- "endpointType": "ENDPOINT_TYPE_DEFAULT_OR_PUBLIC"
}, - "msTeamsWorkflow": { }
}
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/outgoing-webhooks/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
name | string |
description | string |
enabled | boolean |
hidden | boolean |
creator | string |
Array of objects (v1RuleMatcher) | |
Array of objects (v1GetRuleGroupModelMappingRequestCreateRuleSubgroup) | |
order | integer <int64> |
{- "name": "string",
- "description": "string",
- "enabled": true,
- "hidden": true,
- "creator": "string",
- "ruleMatchers": [
- {
- "applicationName": {
- "value": "string"
}, - "subsystemName": {
- "value": "string"
}, - "severity": {
- "value": "VALUE_DEBUG_OR_UNSPECIFIED"
}
}
], - "ruleSubgroups": [
- {
- "rules": [
- {
- "name": "string",
- "description": "string",
- "sourceField": "string",
- "parameters": {
- "extractParameters": {
- "rule": "string"
}, - "jsonExtractParameters": {
- "destinationFieldType": "DESTINATION_FIELD_CATEGORY_OR_UNSPECIFIED",
- "rule": "string",
- "destinationFieldText": "string"
}, - "replaceParameters": {
- "destinationField": "string",
- "replaceNewVal": "string",
- "rule": "string"
}, - "parseParameters": {
- "destinationField": "string",
- "rule": "string"
}, - "allowParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "blockParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "extractTimestampParameters": {
- "standard": "FORMAT_STANDARD_STRFTIME_OR_UNSPECIFIED",
- "format": "string"
}, - "removeFieldsParameters": {
- "fields": [
- "string"
]
}, - "jsonStringifyParameters": {
- "destinationField": "string",
- "deleteSource": true
}, - "jsonParseParameters": {
- "destinationField": "string",
- "deleteSource": true,
- "escapedValue": true,
- "overrideDest": true
}
}, - "enabled": true,
- "order": 0
}
], - "enabled": true,
- "order": 0
}
], - "order": 0
}
{- "ruleDefinition": { }
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v1/rulegroups'; 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));
{- "ruleGroups": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "creator": "string",
- "enabled": true,
- "hidden": true,
- "ruleMatchers": [
- {
- "applicationName": {
- "value": "string"
}, - "subsystemName": {
- "value": "string"
}, - "severity": {
- "value": "VALUE_DEBUG_OR_UNSPECIFIED"
}
}
], - "ruleSubgroups": [
- {
- "id": "string",
- "rules": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "sourceField": "string",
- "parameters": {
- "extractParameters": {
- "rule": "string"
}, - "jsonExtractParameters": {
- "destinationFieldType": "DESTINATION_FIELD_CATEGORY_OR_UNSPECIFIED",
- "rule": "string",
- "destinationFieldText": "string"
}, - "replaceParameters": {
- "destinationField": "string",
- "replaceNewVal": "string",
- "rule": "string"
}, - "parseParameters": {
- "destinationField": "string",
- "rule": "string"
}, - "allowParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "blockParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "extractTimestampParameters": {
- "standard": "FORMAT_STANDARD_STRFTIME_OR_UNSPECIFIED",
- "format": "string"
}, - "removeFieldsParameters": {
- "fields": [
- null
]
}, - "jsonStringifyParameters": {
- "destinationField": "string",
- "deleteSource": true
}, - "jsonParseParameters": {
- "destinationField": "string",
- "deleteSource": true,
- "escapedValue": true,
- "overrideDest": true
}
}, - "enabled": true,
- "order": 0
}
], - "enabled": true,
- "order": 0
}
], - "order": 0
}
]
}
No description available
groupIds | Array of strings |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v1/rulegroups?groupIds=SOME_ARRAY_VALUE'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
name | string |
description | string |
enabled | boolean |
hidden | boolean |
creator | string |
Array of objects (v1RuleMatcher) | |
Array of objects (v1CreateRuleGroupRequestCreateRuleSubgroup) | |
order | integer <int64> |
object (coralogixrulesv1TeamId) |
{- "name": "string",
- "description": "string",
- "enabled": true,
- "hidden": true,
- "creator": "string",
- "ruleMatchers": [
- {
- "applicationName": {
- "value": "string"
}, - "subsystemName": {
- "value": "string"
}, - "severity": {
- "value": "VALUE_DEBUG_OR_UNSPECIFIED"
}
}
], - "ruleSubgroups": [
- {
- "rules": [
- {
- "name": "string",
- "description": "string",
- "sourceField": "string",
- "parameters": {
- "extractParameters": {
- "rule": "string"
}, - "jsonExtractParameters": {
- "destinationFieldType": "DESTINATION_FIELD_CATEGORY_OR_UNSPECIFIED",
- "rule": "string",
- "destinationFieldText": "string"
}, - "replaceParameters": {
- "destinationField": "string",
- "replaceNewVal": "string",
- "rule": "string"
}, - "parseParameters": {
- "destinationField": "string",
- "rule": "string"
}, - "allowParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "blockParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "extractTimestampParameters": {
- "standard": "FORMAT_STANDARD_STRFTIME_OR_UNSPECIFIED",
- "format": "string"
}, - "removeFieldsParameters": {
- "fields": [
- "string"
]
}, - "jsonStringifyParameters": {
- "destinationField": "string",
- "deleteSource": true
}, - "jsonParseParameters": {
- "destinationField": "string",
- "deleteSource": true,
- "escapedValue": true,
- "overrideDest": true
}
}, - "enabled": true,
- "order": 0
}
], - "enabled": true,
- "order": 0
}
], - "order": 0,
- "teamId": {
- "id": 0
}
}
{- "ruleGroup": {
- "id": "string",
- "name": "string",
- "description": "string",
- "creator": "string",
- "enabled": true,
- "hidden": true,
- "ruleMatchers": [
- {
- "applicationName": {
- "value": "string"
}, - "subsystemName": {
- "value": "string"
}, - "severity": {
- "value": "VALUE_DEBUG_OR_UNSPECIFIED"
}
}
], - "ruleSubgroups": [
- {
- "id": "string",
- "rules": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "sourceField": "string",
- "parameters": {
- "extractParameters": {
- "rule": "string"
}, - "jsonExtractParameters": {
- "destinationFieldType": "DESTINATION_FIELD_CATEGORY_OR_UNSPECIFIED",
- "rule": "string",
- "destinationFieldText": "string"
}, - "replaceParameters": {
- "destinationField": "string",
- "replaceNewVal": "string",
- "rule": "string"
}, - "parseParameters": {
- "destinationField": "string",
- "rule": "string"
}, - "allowParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "blockParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "extractTimestampParameters": {
- "standard": "FORMAT_STANDARD_STRFTIME_OR_UNSPECIFIED",
- "format": "string"
}, - "removeFieldsParameters": {
- "fields": [
- "string"
]
}, - "jsonStringifyParameters": {
- "destinationField": "string",
- "deleteSource": true
}, - "jsonParseParameters": {
- "destinationField": "string",
- "deleteSource": true,
- "escapedValue": true,
- "overrideDest": true
}
}, - "enabled": true,
- "order": 0
}
], - "enabled": true,
- "order": 0
}
], - "order": 0
}
}
No description available
{ }
{- "companyId": "string",
- "limits": {
- "parsingThemes": 0,
- "groups": 0,
- "rules": 0
}, - "usage": {
- "parsingThemes": 0,
- "groups": 0,
- "rules": 0
}
}
No description available
groupId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v1/rulegroups/%7BgroupId%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));
{- "ruleGroup": {
- "id": "string",
- "name": "string",
- "description": "string",
- "creator": "string",
- "enabled": true,
- "hidden": true,
- "ruleMatchers": [
- {
- "applicationName": {
- "value": "string"
}, - "subsystemName": {
- "value": "string"
}, - "severity": {
- "value": "VALUE_DEBUG_OR_UNSPECIFIED"
}
}
], - "ruleSubgroups": [
- {
- "id": "string",
- "rules": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "sourceField": "string",
- "parameters": {
- "extractParameters": {
- "rule": "string"
}, - "jsonExtractParameters": {
- "destinationFieldType": "DESTINATION_FIELD_CATEGORY_OR_UNSPECIFIED",
- "rule": "string",
- "destinationFieldText": "string"
}, - "replaceParameters": {
- "destinationField": "string",
- "replaceNewVal": "string",
- "rule": "string"
}, - "parseParameters": {
- "destinationField": "string",
- "rule": "string"
}, - "allowParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "blockParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "extractTimestampParameters": {
- "standard": "FORMAT_STANDARD_STRFTIME_OR_UNSPECIFIED",
- "format": "string"
}, - "removeFieldsParameters": {
- "fields": [
- "string"
]
}, - "jsonStringifyParameters": {
- "destinationField": "string",
- "deleteSource": true
}, - "jsonParseParameters": {
- "destinationField": "string",
- "deleteSource": true,
- "escapedValue": true,
- "overrideDest": true
}
}, - "enabled": true,
- "order": 0
}
], - "enabled": true,
- "order": 0
}
], - "order": 0
}
}
No description available
groupId required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/api/v1/rulegroups/%7BgroupId%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{ }
No description available
groupId required | string |
name | string |
description | string |
enabled | boolean |
hidden | boolean |
creator | string |
Array of objects (v1RuleMatcher) | |
Array of objects (v1CreateRuleGroupRequestCreateRuleSubgroup) | |
order | integer <int64> |
object (coralogixrulesv1TeamId) |
{- "name": "string",
- "description": "string",
- "enabled": true,
- "hidden": true,
- "creator": "string",
- "ruleMatchers": [
- {
- "applicationName": {
- "value": "string"
}, - "subsystemName": {
- "value": "string"
}, - "severity": {
- "value": "VALUE_DEBUG_OR_UNSPECIFIED"
}
}
], - "ruleSubgroups": [
- {
- "rules": [
- {
- "name": "string",
- "description": "string",
- "sourceField": "string",
- "parameters": {
- "extractParameters": {
- "rule": "string"
}, - "jsonExtractParameters": {
- "destinationFieldType": "DESTINATION_FIELD_CATEGORY_OR_UNSPECIFIED",
- "rule": "string",
- "destinationFieldText": "string"
}, - "replaceParameters": {
- "destinationField": "string",
- "replaceNewVal": "string",
- "rule": "string"
}, - "parseParameters": {
- "destinationField": "string",
- "rule": "string"
}, - "allowParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "blockParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "extractTimestampParameters": {
- "standard": "FORMAT_STANDARD_STRFTIME_OR_UNSPECIFIED",
- "format": "string"
}, - "removeFieldsParameters": {
- "fields": [
- "string"
]
}, - "jsonStringifyParameters": {
- "destinationField": "string",
- "deleteSource": true
}, - "jsonParseParameters": {
- "destinationField": "string",
- "deleteSource": true,
- "escapedValue": true,
- "overrideDest": true
}
}, - "enabled": true,
- "order": 0
}
], - "enabled": true,
- "order": 0
}
], - "order": 0,
- "teamId": {
- "id": 0
}
}
{- "ruleGroup": {
- "id": "string",
- "name": "string",
- "description": "string",
- "creator": "string",
- "enabled": true,
- "hidden": true,
- "ruleMatchers": [
- {
- "applicationName": {
- "value": "string"
}, - "subsystemName": {
- "value": "string"
}, - "severity": {
- "value": "VALUE_DEBUG_OR_UNSPECIFIED"
}
}
], - "ruleSubgroups": [
- {
- "id": "string",
- "rules": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "sourceField": "string",
- "parameters": {
- "extractParameters": {
- "rule": "string"
}, - "jsonExtractParameters": {
- "destinationFieldType": "DESTINATION_FIELD_CATEGORY_OR_UNSPECIFIED",
- "rule": "string",
- "destinationFieldText": "string"
}, - "replaceParameters": {
- "destinationField": "string",
- "replaceNewVal": "string",
- "rule": "string"
}, - "parseParameters": {
- "destinationField": "string",
- "rule": "string"
}, - "allowParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "blockParameters": {
- "keepBlockedLogs": true,
- "rule": "string"
}, - "extractTimestampParameters": {
- "standard": "FORMAT_STANDARD_STRFTIME_OR_UNSPECIFIED",
- "format": "string"
}, - "removeFieldsParameters": {
- "fields": [
- "string"
]
}, - "jsonStringifyParameters": {
- "destinationField": "string",
- "deleteSource": true
}, - "jsonParseParameters": {
- "destinationField": "string",
- "deleteSource": true,
- "escapedValue": true,
- "overrideDest": true
}
}, - "enabled": true,
- "order": 0
}
], - "enabled": true,
- "order": 0
}
], - "order": 0
}
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/enrichments'; 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));
{- "enrichments": [
- {
- "id": 1,
- "fieldName": 1,
- "enrichmentType": {
- "geoIp": {
- "withAsn": true
}, - "suspiciousIp": { },
- "aws": {
- "resourceType": "ec2"
}, - "customEnrichment": {
- "id": 1
}
}, - "enrichedFieldName": 1,
- "selectedColumns": [
- "city",
- "population"
]
}
]
}
No description available
enrichmentIds required | Array of integers <int64> [ items <int64 > ] |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/enrichments?enrichmentIds=SOME_ARRAY_VALUE'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{- "remainingEnrichments": [
- {
- "id": 1,
- "fieldName": 1,
- "enrichmentType": {
- "geoIp": {
- "withAsn": true
}, - "suspiciousIp": { },
- "aws": {
- "resourceType": "ec2"
}, - "customEnrichment": {
- "id": 1
}
}, - "enrichedFieldName": 1,
- "selectedColumns": [
- "city",
- "population"
]
}
]
}
No description available
This response data structure represents a collection of enrichments
required | Array of objects (Enrichment Prototype) |
{- "requestEnrichments": [
- {
- "fieldName": "sourceIPs",
- "enrichmentType": {
- "geoIp": {
- "withAsn": true
}, - "suspiciousIp": { },
- "aws": {
- "resourceType": "ec2"
}, - "customEnrichment": {
- "id": 1
}
}, - "enrichedFieldName": "string",
- "selectedColumns": [
- "string"
]
}
]
}
{- "enrichments": [
- {
- "id": 1,
- "fieldName": 1,
- "enrichmentType": {
- "geoIp": {
- "withAsn": true
}, - "suspiciousIp": { },
- "aws": {
- "resourceType": "ec2"
}, - "customEnrichment": {
- "id": 1
}
}, - "enrichedFieldName": 1,
- "selectedColumns": [
- "city",
- "population"
]
}
]
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/enrichments/limit'; 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));
{- "limit": 10,
- "used": 5
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/enrichments/settings'; 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));
{- "enrichmentSettings": {
- "enrichmentAmountLimit": 0,
- "enrichmentsInUse": 0,
- "sizeLimitBytes": "string",
- "rowLimit": 0,
- "queryOnlySizeLimitBytes": "string",
- "queryOnlyRowLimit": 0
}
}
No description available
object (coralogixenrichmentv1EnrichmentType) | |
Array of objects (v1EnrichmentFieldDefinition) |
{- "enrichmentType": {
- "geoIp": {
- "withAsn": true
}, - "suspiciousIp": { },
- "aws": {
- "resourceType": "ec2"
}, - "customEnrichment": {
- "id": 1
}
}, - "enrichmentFields": [
- {
- "fieldName": "string",
- "enrichedFieldName": "string",
- "selectedColumns": [
- "string"
]
}
]
}
{- "enrichments": [
- {
- "id": 1,
- "fieldName": 1,
- "enrichmentType": {
- "geoIp": {
- "withAsn": true
}, - "suspiciousIp": { },
- "aws": {
- "resourceType": "ec2"
}, - "customEnrichment": {
- "id": 1
}
}, - "enrichedFieldName": 1,
- "selectedColumns": [
- "city",
- "population"
]
}
]
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment'; 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));
{- "customEnrichments": [
- {
- "id": 0,
- "name": "string",
- "description": "string",
- "version": 0,
- "isQueryOnly": true,
- "fileName": "string",
- "fileSize": 0
}
]
}
No description available
This request data structure is used to create a custom enrichment
name required | string |
description required | string |
required |
{- "name": "custom_enrichment_name",
- "description": "custom_enrichment_description",
- "file": {
- "name": "file_name",
- "extension": "csv",
- "size": 100,
- "textual": "row1,row2 value1,value2",
- "binary": "0xFABB32"
}
}
{- "message": "Custom enrichment created successfully",
- "customEnrichment": {
- "id": 0,
- "name": "string",
- "description": "string",
- "version": 0,
- "isQueryOnly": true,
- "fileName": "string",
- "fileSize": 0
}
}
No description available
This request data structure is used to update a custom enrichment
customEnrichmentId required | integer <int64> |
name required | string |
description required | string |
required |
{- "customEnrichmentId": 1,
- "name": "custom_enrichment_name",
- "description": "custom_enrichment_description",
- "file": {
- "name": "file_name",
- "extension": "csv",
- "size": 100,
- "textual": "row1,row2 value1,value2",
- "binary": "0xFABB32"
}
}
{- "message": "Custom enrichment updated successfully",
- "customEnrichment": {
- "id": 0,
- "name": "string",
- "description": "string",
- "version": 0,
- "isQueryOnly": true,
- "fileName": "string",
- "fileSize": 0
}
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment/search'; let options = {method: 'POST', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{- "customEnrichmentsData": [
- {
- "definition": {
- "id": 0,
- "name": "string",
- "description": "string",
- "version": 0,
- "isQueryOnly": true,
- "fileName": "string",
- "fileSize": 0
}, - "textual": "string",
- "binary": "string"
}
]
}
No description available
customEnrichmentId required | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment/%7BcustomEnrichmentId%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{- "message": "Custom enrichment deleted successfully",
- "customEnrichmentId": 1
}
No description available
id required | integer <int64> |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/custom_enrichment/%7Bid%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));
{- "customEnrichment": {
- "id": 0,
- "name": "string",
- "description": "string",
- "version": 0,
- "isQueryOnly": true,
- "fileName": "string",
- "fileSize": 0
}
}
No description available
enabledOnly required | boolean |
sourceType required | string Default: "SOURCE_TYPE_UNSPECIFIED" Enum: "SOURCE_TYPE_UNSPECIFIED" "SOURCE_TYPE_LOGS" "SOURCE_TYPE_SPANS" |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/policies?enabledOnly=SOME_BOOLEAN_VALUE&sourceType=SOME_STRING_VALUE'; 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));
{- "policies": [
- {
- "id": "policy_id",
- "companyId": 1234,
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "deleted": false,
- "enabled": true,
- "order": 1,
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "createdAt": "2021-01-01T00:00:00.000Z",
- "updatedAt": "2021-01-01T00:00:00.000Z",
- "archiveRetention": {
- "id": "string"
}
}
]
}
No description available
This data structue is used to create a new policy.
name required | string |
description | string |
priority required | string (coralogixquotav1Priority) Default: "PRIORITY_TYPE_UNSPECIFIED" Enum: "PRIORITY_TYPE_UNSPECIFIED" "PRIORITY_TYPE_BLOCK" "PRIORITY_TYPE_LOW" "PRIORITY_TYPE_MEDIUM" "PRIORITY_TYPE_HIGH" |
object (coralogixquotav1Rule) | |
object (coralogixquotav1Rule) | |
object (v1ArchiveRetention) | |
object (v1SpanRules) |
{- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "archiveRetention": {
- "id": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}
}
{- "policy": {
- "id": "policy_id",
- "companyId": 1234,
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "deleted": false,
- "enabled": true,
- "order": 1,
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "createdAt": "2021-01-01T00:00:00.000Z",
- "updatedAt": "2021-01-01T00:00:00.000Z",
- "archiveRetention": {
- "id": "string"
}
}
}
No description available
This data structue is used to update an existing policy.
id required | string |
name | string |
description | string |
priority | string (coralogixquotav1Priority) Default: "PRIORITY_TYPE_UNSPECIFIED" Enum: "PRIORITY_TYPE_UNSPECIFIED" "PRIORITY_TYPE_BLOCK" "PRIORITY_TYPE_LOW" "PRIORITY_TYPE_MEDIUM" "PRIORITY_TYPE_HIGH" |
object (coralogixquotav1Rule) | |
object (coralogixquotav1Rule) | |
object (v1ArchiveRetention) | |
object (v1SpanRules) | |
enabled | boolean |
{- "id": "policy_id",
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "archiveRetention": {
- "id": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "enabled": true
}
{- "policy": {
- "id": "policy_id",
- "companyId": 1234,
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "deleted": false,
- "enabled": true,
- "order": 1,
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "createdAt": "2021-01-01T00:00:00.000Z",
- "updatedAt": "2021-01-01T00:00:00.000Z",
- "archiveRetention": {
- "id": "string"
}
}
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/policies/%7Bid%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));
{- "policy": {
- "id": "policy_id",
- "companyId": 1234,
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "deleted": false,
- "enabled": true,
- "order": 1,
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "createdAt": "2021-01-01T00:00:00.000Z",
- "updatedAt": "2021-01-01T00:00:00.000Z",
- "archiveRetention": {
- "id": "string"
}
}
}
No description available
id required | string |
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/policies/%7Bid%7D'; let options = {method: 'DELETE', headers: {Authorization: 'Bearer <API_KEY>'}}; fetch(url, options) .then(res => res.json()) .then(json => console.log(json)) .catch(err => console.error('error:' + err));
{- "id": "id"
}
No description available
In an atomic operation delete all existing log policies and create the provided list by order.
required | Array of objects (Create Log Policy Request) |
{- "policies": [
- {
- "policy": {
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "archiveRetention": {
- "id": "string"
}
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}
}
]
}
{- "createResponses": [
- {
- "policy": {
- "id": "policy_id",
- "companyId": 1234,
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "deleted": false,
- "enabled": true,
- "order": 1,
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "createdAt": "2021-01-01T00:00:00.000Z",
- "updatedAt": "2021-01-01T00:00:00.000Z",
- "archiveRetention": {
- "id": "string"
}
}
}
]
}
No description available
In an atomic operation delete all existing span policies and create the provided list by order.
required | Array of objects (Create Span Policy Request) |
{- "policies": [
- {
- "policy": {
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "archiveRetention": {
- "id": "string"
}
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}
}
]
}
{- "createResponses": [
- {
- "policy": {
- "id": "policy_id",
- "companyId": 1234,
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "deleted": false,
- "enabled": true,
- "order": 1,
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "createdAt": "2021-01-01T00:00:00.000Z",
- "updatedAt": "2021-01-01T00:00:00.000Z",
- "archiveRetention": {
- "id": "string"
}
}
}
]
}
No description available
This data structure is used to create multiple policies atomically.
required | Array of objects (Create Policy Request) |
{- "policyRequests": [
- {
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "archiveRetention": {
- "id": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}
}
]
}
{- "createResponses": [
- {
- "policy": {
- "id": "policy_id",
- "companyId": 1234,
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "deleted": false,
- "enabled": true,
- "order": 1,
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "createdAt": "2021-01-01T00:00:00.000Z",
- "updatedAt": "2021-01-01T00:00:00.000Z",
- "archiveRetention": {
- "id": "string"
}
}
}
]
}
No description available
Request to test multiple log policies.
required | Array of objects (Log Meta Fields Values) |
{- "metaFieldsValuesList": [
- {
- "applicationNameValues": "application_name",
- "severityValues": "severity",
- "subsystemNameValues": "subsystem_name"
}
]
}
{- "testPoliciesBulkResult": [
- {
- "metaFieldsValues": {
- "applicationNameValues": "application_name",
- "severityValues": "severity",
- "subsystemNameValues": "subsystem_name"
}, - "matched": true,
- "policy": {
- "id": "policy_id",
- "companyId": 1234,
- "name": "My Policy",
- "description": "My Policy Description",
- "priority": "PRIORITY_TYPE_UNSPECIFIED",
- "deleted": false,
- "enabled": true,
- "order": 1,
- "applicationRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "subsystemRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "logRules": {
- "severities": [
- "SEVERITY_UNSPECIFIED"
]
}, - "spanRules": {
- "serviceRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "actionRule": {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "name": "string"
}, - "tagRules": [
- {
- "ruleTypeId": "RULE_TYPE_ID_UNSPECIFIED",
- "tagName": "tag_name",
- "tagValue": "tag_value"
}
]
}, - "createdAt": "2021-01-01T00:00:00.000Z",
- "updatedAt": "2021-01-01T00:00:00.000Z",
- "archiveRetention": {
- "id": "string"
}
}
}
]
}
No description available
This data structue is used to reorder policies.
required | Array of objects (Policy Order) |
sourceType required | string (quotav1SourceType) Default: "SOURCE_TYPE_UNSPECIFIED" Enum: "SOURCE_TYPE_UNSPECIFIED" "SOURCE_TYPE_LOGS" "SOURCE_TYPE_SPANS" |
{- "orders": [
- {
- "order": 1,
- "id": "id"
}
], - "sourceType": "SOURCE_TYPE_UNSPECIFIED"
}
{- "orders": [
- {
- "order": 1,
- "id": "id"
}
]
}
No description available
This data structue is used to toggle a policy by its ID.
id required | string |
enabled required | boolean |
{- "id": "id",
- "enabled": true
}
{- "id": "id",
- "enabled": true
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/retentions'; 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));
{- "retentions": [
- {
- "id": "string",
- "order": 0,
- "name": "string",
- "editable": true
}
]
}
No description available
This data structure is used to update retentions
required | Array of objects (v1RetentionUpdateElement) |
{- "retentionUpdateElements": [
- {
- "id": "string",
- "name": "string"
}
]
}
{- "retentions": [
- {
- "id": "string",
- "order": 0,
- "name": "string",
- "editable": true
}
]
}
const fetch = require('node-fetch'); let url = 'https://api.coralogix.com/mgmt/openapi/v1/retentions/enabled'; 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));
{- "enableTags": true
}
No description available
{ }
{- "activateRetentions": true
}