Atomic Batch Execute E2M
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/5/events2metrics/events2metrics/v2/all/execute \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"create": {
"e2m": {
"logsQuery": {
"alias": "new_query",
"applicationnameFilters": [
"app_name"
],
"lucene": "log_obj.numeric_field: [50 TO 100]",
"severityFilters": [],
"subsystemnameFilters": [
"sub_name"
]
},
"name": "Service catalog latency",
"dataSource": "my_namespace/my_dataset",
"description": "avg and max the latency of catalog service",
"metricFields": [
{
"aggregations": [
{
"histogram": {
"buckets": [
2
]
},
"enabled": true,
"targetMetricName": "alias_field_name_agg_func"
}
],
"sourceField": "log_obj.numeric_field",
"targetBaseMetricName": "alias_field_name"
}
],
"metricLabels": [
{
"sourceField": "log_obj.string_value",
"targetLabel": "alias_label_name"
}
],
"permutationsLimit": 30000
}
}
}
]
}
'{
"matchingResponses": [
{
"created": {
"e2m": {
"logsQuery": {
"alias": "new_query",
"applicationnameFilters": [
"app_name"
],
"lucene": "log_obj.numeric_field: [50 TO 100]",
"severityFilters": [],
"subsystemnameFilters": [
"sub_name"
]
},
"name": "Service_catalog_latency",
"createTime": "2022-06-30T12:30:00.000Z",
"dataSource": "my_namespace/my_dataset",
"description": "avg and max the latency of catalog service",
"id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
"isInternal": true,
"metricFields": [
{
"aggregations": [
{
"histogram": {
"buckets": [
2
]
},
"enabled": true,
"targetMetricName": "alias_field_name_agg_func"
}
],
"sourceField": "log_obj.numeric_field",
"targetBaseMetricName": "alias_field_name"
}
],
"metricLabels": [
{
"sourceField": "log_obj.string_value",
"targetLabel": "alias_label_name"
}
],
"permutations": {
"hasExceededLimit": true,
"limit": 30000
},
"updateTime": "2022-06-30T12:30:00.000Z"
}
}
}
]
}Events2Metrics Service
Atomic Batch Execute E2M
Atomically executes a batch of events-to-metrics rules.
Atomic Batch Execute E2M
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/5/events2metrics/events2metrics/v2/all/execute \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{
"create": {
"e2m": {
"logsQuery": {
"alias": "new_query",
"applicationnameFilters": [
"app_name"
],
"lucene": "log_obj.numeric_field: [50 TO 100]",
"severityFilters": [],
"subsystemnameFilters": [
"sub_name"
]
},
"name": "Service catalog latency",
"dataSource": "my_namespace/my_dataset",
"description": "avg and max the latency of catalog service",
"metricFields": [
{
"aggregations": [
{
"histogram": {
"buckets": [
2
]
},
"enabled": true,
"targetMetricName": "alias_field_name_agg_func"
}
],
"sourceField": "log_obj.numeric_field",
"targetBaseMetricName": "alias_field_name"
}
],
"metricLabels": [
{
"sourceField": "log_obj.string_value",
"targetLabel": "alias_label_name"
}
],
"permutationsLimit": 30000
}
}
}
]
}
'{
"matchingResponses": [
{
"created": {
"e2m": {
"logsQuery": {
"alias": "new_query",
"applicationnameFilters": [
"app_name"
],
"lucene": "log_obj.numeric_field: [50 TO 100]",
"severityFilters": [],
"subsystemnameFilters": [
"sub_name"
]
},
"name": "Service_catalog_latency",
"createTime": "2022-06-30T12:30:00.000Z",
"dataSource": "my_namespace/my_dataset",
"description": "avg and max the latency of catalog service",
"id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
"isInternal": true,
"metricFields": [
{
"aggregations": [
{
"histogram": {
"buckets": [
2
]
},
"enabled": true,
"targetMetricName": "alias_field_name_agg_func"
}
],
"sourceField": "log_obj.numeric_field",
"targetBaseMetricName": "alias_field_name"
}
],
"metricLabels": [
{
"sourceField": "log_obj.string_value",
"targetLabel": "alias_label_name"
}
],
"permutations": {
"hasExceededLimit": true,
"limit": 30000
},
"updateTime": "2022-06-30T12:30:00.000Z"
}
}
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key authentication
Body
application/json
Request containing an atomic list of events-to-metrics actions to execute.
The requests.
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Response
200 - application/json
Response returned after atomically executing a batch of events-to-metrics rules.
The matching responses.
- Option 1
- Option 2
- Option 3
Show child attributes
Show child attributes
Was this page helpful?
⌘I