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": {
"name": "Service catalog latency",
"description": "avg and max the latency of catalog service",
"metricFields": [
{
"aggregations": [
{
"aggType": "AGG_TYPE_UNSPECIFIED",
"enabled": true,
"samples": {
"sampleType": "SAMPLE_TYPE_UNSPECIFIED"
},
"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,
"spansQuery": {
"actionFilters": [
"myAction"
],
"applicationnameFilters": [
"myApp"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"myService"
],
"subsystemnameFilters": [
"mySubsystem"
]
},
"type": "E2M_TYPE_UNSPECIFIED"
}
}
}
]
}
'{
"matchingResponses": [
{
"deleted": {
"id": "<string>"
}
}
]
}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": {
"name": "Service catalog latency",
"description": "avg and max the latency of catalog service",
"metricFields": [
{
"aggregations": [
{
"aggType": "AGG_TYPE_UNSPECIFIED",
"enabled": true,
"samples": {
"sampleType": "SAMPLE_TYPE_UNSPECIFIED"
},
"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,
"spansQuery": {
"actionFilters": [
"myAction"
],
"applicationnameFilters": [
"myApp"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"myService"
],
"subsystemnameFilters": [
"mySubsystem"
]
},
"type": "E2M_TYPE_UNSPECIFIED"
}
}
}
]
}
'{
"matchingResponses": [
{
"deleted": {
"id": "<string>"
}
}
]
}Was this page helpful?