curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/3/events2metrics/events2metrics/v2/batch \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{}
]
}
'{
"matchingResponses": [
{
"created": {
"e2m": {
"name": "Service_catalog_latency",
"type": "E2M_TYPE_UNSPECIFIED",
"createTime": "2022-06-30T12:30:00Z'",
"description": "avg and max the latency of catalog service",
"id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
"isInternal": true,
"logsQuery": {
"alias": "new_query",
"applicationnameFilters": [
"app_name"
],
"lucene": "log_obj.numeric_field: [50 TO 100]",
"severityFilters": [
"SEVERITY_UNSPECIFIED"
],
"subsystemnameFilters": [
"sub_name"
]
},
"metricFields": [
{
"aggregations": [
{
"aggType": "AGG_TYPE_UNSPECIFIED",
"enabled": true,
"histogram": {
"buckets": [
2
]
},
"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:00Z'"
}
}
}
]
}No description available
curl --request POST \
--url https://api.coralogix.com/mgmt/openapi/3/events2metrics/events2metrics/v2/batch \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"requests": [
{}
]
}
'{
"matchingResponses": [
{
"created": {
"e2m": {
"name": "Service_catalog_latency",
"type": "E2M_TYPE_UNSPECIFIED",
"createTime": "2022-06-30T12:30:00Z'",
"description": "avg and max the latency of catalog service",
"id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
"isInternal": true,
"logsQuery": {
"alias": "new_query",
"applicationnameFilters": [
"app_name"
],
"lucene": "log_obj.numeric_field: [50 TO 100]",
"severityFilters": [
"SEVERITY_UNSPECIFIED"
],
"subsystemnameFilters": [
"sub_name"
]
},
"metricFields": [
{
"aggregations": [
{
"aggType": "AGG_TYPE_UNSPECIFIED",
"enabled": true,
"histogram": {
"buckets": [
2
]
},
"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:00Z'"
}
}
}
]
}Was this page helpful?