curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/latest/events2metrics/events2metrics/v2 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"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,
"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"
}
],
"permutations": {
"hasExceededLimit": true,
"limit": 30000
},
"spansQuery": {
"actionFilters": [
"myAction"
],
"applicationnameFilters": [
"myApp"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"myService"
],
"subsystemnameFilters": [
"mySubsystem"
]
},
"updateTime": "2022-06-30T12:30:00Z'"
}
EOF{
"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,
"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"
}
],
"permutations": {
"hasExceededLimit": true,
"limit": 30000
},
"spansQuery": {
"actionFilters": [
"myAction"
],
"applicationnameFilters": [
"myApp"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"myService"
],
"subsystemnameFilters": [
"mySubsystem"
]
},
"updateTime": "2022-06-30T12:30:00Z'"
}
}No description available
curl --request PUT \
--url https://api.coralogix.com/mgmt/openapi/latest/events2metrics/events2metrics/v2 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"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,
"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"
}
],
"permutations": {
"hasExceededLimit": true,
"limit": 30000
},
"spansQuery": {
"actionFilters": [
"myAction"
],
"applicationnameFilters": [
"myApp"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"myService"
],
"subsystemnameFilters": [
"mySubsystem"
]
},
"updateTime": "2022-06-30T12:30:00Z'"
}
EOF{
"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,
"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"
}
],
"permutations": {
"hasExceededLimit": true,
"limit": 30000
},
"spansQuery": {
"actionFilters": [
"myAction"
],
"applicationnameFilters": [
"myApp"
],
"lucene": "applicationName:myApp",
"serviceFilters": [
"myService"
],
"subsystemnameFilters": [
"mySubsystem"
]
},
"updateTime": "2022-06-30T12:30:00Z'"
}
}API key authentication
This data structure represents an Event to Metrics (E2M) object.
"Service_catalog_latency"
E2M_TYPE_UNSPECIFIED, E2M_TYPE_LOGS2METRICS, E2M_TYPE_SPANS2METRICS "2022-06-30T12:30:00Z'"
"avg and max the latency of catalog service"
36"d6a3658e-78d2-47d0-9b81-b2c551f01b09"
Show child attributes
Show child attributes
This data structure represents the limit of events2metrics permutations and if the limit was exceeded
Show child attributes
This data structure represents a query for spans.
Show child attributes
"2022-06-30T12:30:00Z'"
This data structure is obtained when replacing an existing event to metric definition
This data structure represents an Event to Metrics (E2M) object.
Show child attributes
Was this page helpful?