Rule Groups Service
Events2Metrics Service
Enrichments Service
Contextual data integration service
Custom Enrichments Service
Dashboard service
Dashboard folders service
Incidents service
- POSTList incidents with filters
- GETGet incident by ID
- GETGet incident events
- POSTAcknowledge incidents
- POSTAssign incidents to a user
- POSTGet multiple incidents by IDs
- POSTClose incidents
- POSTGet available filter values
- POSTList incident events with filters
- POSTGet available incident event filter values
- POSTGet total count of incident events
- POSTGet incident aggregations
- POSTResolve incidents
- POSTRemove incident user assignments
Integration service
- GETGet all integrations
- GETGet integration definition
- GETGet deployed integration
- DELDelete integration
- GETList managed integration keys
- GETGet managed integration status
- PUTUpdate integration
- POSTSave integration registration metadata
- POSTTest integration
- GETGet RUM integration versions data
- POSTTrigger sync of RUM integration data
- GETGet integration template
- GETGet integration details
Outgoing webhooks service
- GETList outgoing webhooks
- PUTUpdate an outgoing webhook
- POSTCreate an outgoing webhook
- GETList all outgoing webhooks
- GETList IBM event notification instances
- GETList outbound webhooks summary
- POSTTest an outgoing webhook
- POSTTest an existing outgoing webhook
- GETGet outgoing webhook types
- GETGet outgoing webhook type details
- GETGet outgoing webhook
- DELDelete an outgoing webhook
Policies Service
Retentions Service
Scopes Service
SLO Service
SAML Configuration Service
Team Permissions Management Service
- GETGet Team Group By Name
- PUTUpdate Team Group
- POSTCreate Team Group
- GETGet Team Groups
- POSTAdd Users To Team Groups
- DELRemove Users From Team Groups
- GETGet Team Group
- DELDelete Team Group
- GETGet Team Group Scope
- POSTSet Team Group Scope
- GETGet Group Users
- POSTAdd Users To Team Group
- DELRemove Users From Team Group
Folders for views
Actions Service
Target Service
Alert definitions service
Alert events service
API Keys Service
Events2Metrics Service
Replace an E2M
PUT
/
api
/
v2
/
events2metrics
Copy
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/api/v2/events2metrics';
let options = {
method: 'PUT',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"id":"d6a3658e-78d2-47d0-9b81-b2c551f01b09","name":"Service_catalog_latency","description":"avg and max the latency of catalog service","createTime":"2022-06-30T12:30:00Z\'","updateTime":"2022-06-30T12:30:00Z\'","permutations":{"limit":30000,"hasExceededLimit":true},"metricLabels":[{"targetLabel":"alias_label_name","sourceField":"log_obj.string_value"}],"metricFields":[{"targetBaseMetricName":"alias_field_name","sourceField":"log_obj.numeric_field","aggregations":[{"enabled":true,"aggType":"AGG_TYPE_UNSPECIFIED","targetMetricName":"alias_field_name_agg_func","samples":{"sampleType":"SAMPLE_TYPE_UNSPECIFIED"},"histogram":{"buckets":2}}]}],"type":"E2M_TYPE_UNSPECIFIED","spansQuery":{"lucene":"applicationName:myApp","applicationnameFilters":"myApp","subsystemnameFilters":"mySubsystem","actionFilters":"myAction","serviceFilters":"myService"},"logsQuery":{"lucene":"log_obj.numeric_field: [50 TO 100]","alias":"new_query","applicationnameFilters":"app_name","subsystemnameFilters":"sub_name","severityFilters":["SEVERITY_UNSPECIFIED"]},"isInternal":true}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Copy
{
"e2m": {
"id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
"name": "Service_catalog_latency",
"description": "avg and max the latency of catalog service",
"createTime": "2022-06-30T12:30:00Z'",
"updateTime": "2022-06-30T12:30:00Z'",
"permutations": {
"limit": 30000,
"hasExceededLimit": true
},
"metricLabels": [
{
"targetLabel": "alias_label_name",
"sourceField": "log_obj.string_value"
}
],
"metricFields": [
{
"targetBaseMetricName": "alias_field_name",
"sourceField": "log_obj.numeric_field",
"aggregations": [
{
"enabled": true,
"aggType": "AGG_TYPE_UNSPECIFIED",
"targetMetricName": "alias_field_name_agg_func",
"samples": {
"sampleType": "SAMPLE_TYPE_UNSPECIFIED"
},
"histogram": {
"buckets": 2
}
}
]
}
],
"type": "E2M_TYPE_UNSPECIFIED",
"spansQuery": {
"lucene": "applicationName:myApp",
"applicationnameFilters": "myApp",
"subsystemnameFilters": "mySubsystem",
"actionFilters": "myAction",
"serviceFilters": "myService"
},
"logsQuery": {
"lucene": "log_obj.numeric_field: [50 TO 100]",
"alias": "new_query",
"applicationnameFilters": "app_name",
"subsystemnameFilters": "sub_name",
"severityFilters": [
"SEVERITY_UNSPECIFIED"
]
},
"isInternal": true
}
}
Authorizations
API key authentication
Body
application/json
This data structure represents an Event to Metrics (E2M) object.
Response
200
application/json
A successful response.
This data structure is obtained when replacing an existing event to metric definition
Copy
const fetch = require('node-fetch');
let url = 'https://api.coralogix.com/mgmt/openapi/api/v2/events2metrics';
let options = {
method: 'PUT',
headers: {Authorization: 'Bearer <API_KEY>', 'content-type': 'application/json'},
body: '{"id":"d6a3658e-78d2-47d0-9b81-b2c551f01b09","name":"Service_catalog_latency","description":"avg and max the latency of catalog service","createTime":"2022-06-30T12:30:00Z\'","updateTime":"2022-06-30T12:30:00Z\'","permutations":{"limit":30000,"hasExceededLimit":true},"metricLabels":[{"targetLabel":"alias_label_name","sourceField":"log_obj.string_value"}],"metricFields":[{"targetBaseMetricName":"alias_field_name","sourceField":"log_obj.numeric_field","aggregations":[{"enabled":true,"aggType":"AGG_TYPE_UNSPECIFIED","targetMetricName":"alias_field_name_agg_func","samples":{"sampleType":"SAMPLE_TYPE_UNSPECIFIED"},"histogram":{"buckets":2}}]}],"type":"E2M_TYPE_UNSPECIFIED","spansQuery":{"lucene":"applicationName:myApp","applicationnameFilters":"myApp","subsystemnameFilters":"mySubsystem","actionFilters":"myAction","serviceFilters":"myService"},"logsQuery":{"lucene":"log_obj.numeric_field: [50 TO 100]","alias":"new_query","applicationnameFilters":"app_name","subsystemnameFilters":"sub_name","severityFilters":["SEVERITY_UNSPECIFIED"]},"isInternal":true}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
Copy
{
"e2m": {
"id": "d6a3658e-78d2-47d0-9b81-b2c551f01b09",
"name": "Service_catalog_latency",
"description": "avg and max the latency of catalog service",
"createTime": "2022-06-30T12:30:00Z'",
"updateTime": "2022-06-30T12:30:00Z'",
"permutations": {
"limit": 30000,
"hasExceededLimit": true
},
"metricLabels": [
{
"targetLabel": "alias_label_name",
"sourceField": "log_obj.string_value"
}
],
"metricFields": [
{
"targetBaseMetricName": "alias_field_name",
"sourceField": "log_obj.numeric_field",
"aggregations": [
{
"enabled": true,
"aggType": "AGG_TYPE_UNSPECIFIED",
"targetMetricName": "alias_field_name_agg_func",
"samples": {
"sampleType": "SAMPLE_TYPE_UNSPECIFIED"
},
"histogram": {
"buckets": 2
}
}
]
}
],
"type": "E2M_TYPE_UNSPECIFIED",
"spansQuery": {
"lucene": "applicationName:myApp",
"applicationnameFilters": "myApp",
"subsystemnameFilters": "mySubsystem",
"actionFilters": "myAction",
"serviceFilters": "myService"
},
"logsQuery": {
"lucene": "log_obj.numeric_field: [50 TO 100]",
"alias": "new_query",
"applicationnameFilters": "app_name",
"subsystemnameFilters": "sub_name",
"severityFilters": [
"SEVERITY_UNSPECIFIED"
]
},
"isInternal": true
}
}
Assistant
Responses are generated using AI and may contain mistakes.