Authorizations
API key authentication
Body
application/json
- Option 1
- Option 2
- Option 3
Response
200 - application/json
- Option 1
- Option 2
- Option 3
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/latest/events2metrics/events2metrics/v2/batch \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"requests": [
{
"create": {
"e2m": {
"description": "avg and max the latency of catalog service",
"metricFields": [
{
"aggregations": [
"<any>"
],
"sourceField": "log_obj.numeric_field",
"targetBaseMetricName": "alias_field_name"
}
],
"metricLabels": [
{
"sourceField": "log_obj.string_value",
"targetLabel": "alias_label_name"
}
],
"name": "Service catalog latency",
"permutationsLimit": 30000,
"spansQuery": {
"actionFilters": [
"myAction"
],
"applicationnameFilters": [
"myApp"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"myService"
],
"subsystemnameFilters": [
"mySubsystem"
]
},
"type": "E2M_TYPE_UNSPECIFIED"
}
}
}
]
}'{
"matchingResponses": [
{
"created": {
"e2m": {
"createTime": "2022-06-30T12:30:00Z'",
"description": "avg and max the latency of catalog service",
"id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
"isInternal": true,
"metricFields": [
{
"aggregations": "<any>",
"sourceField": "<any>",
"targetBaseMetricName": "<any>"
}
],
"metricLabels": [
{
"sourceField": "<any>",
"targetLabel": "<any>"
}
],
"name": "Service_catalog_latency",
"permutations": {
"hasExceededLimit": true,
"limit": 30000
},
"spansQuery": {
"actionFilters": [
"<any>"
],
"applicationnameFilters": [
"<any>"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"<any>"
],
"subsystemnameFilters": [
"<any>"
]
},
"type": "E2M_TYPE_UNSPECIFIED",
"updateTime": "2022-06-30T12:30:00Z'"
}
}
}
]
}No description available
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/latest/events2metrics/events2metrics/v2/batch \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"requests": [
{
"create": {
"e2m": {
"description": "avg and max the latency of catalog service",
"metricFields": [
{
"aggregations": [
"<any>"
],
"sourceField": "log_obj.numeric_field",
"targetBaseMetricName": "alias_field_name"
}
],
"metricLabels": [
{
"sourceField": "log_obj.string_value",
"targetLabel": "alias_label_name"
}
],
"name": "Service catalog latency",
"permutationsLimit": 30000,
"spansQuery": {
"actionFilters": [
"myAction"
],
"applicationnameFilters": [
"myApp"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"myService"
],
"subsystemnameFilters": [
"mySubsystem"
]
},
"type": "E2M_TYPE_UNSPECIFIED"
}
}
}
]
}'{
"matchingResponses": [
{
"created": {
"e2m": {
"createTime": "2022-06-30T12:30:00Z'",
"description": "avg and max the latency of catalog service",
"id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
"isInternal": true,
"metricFields": [
{
"aggregations": "<any>",
"sourceField": "<any>",
"targetBaseMetricName": "<any>"
}
],
"metricLabels": [
{
"sourceField": "<any>",
"targetLabel": "<any>"
}
],
"name": "Service_catalog_latency",
"permutations": {
"hasExceededLimit": true,
"limit": 30000
},
"spansQuery": {
"actionFilters": [
"<any>"
],
"applicationnameFilters": [
"<any>"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"<any>"
],
"subsystemnameFilters": [
"<any>"
]
},
"type": "E2M_TYPE_UNSPECIFIED",
"updateTime": "2022-06-30T12:30:00Z'"
}
}
}
]
}API key authentication
Show child attributes
Show child attributes
Was this page helpful?