Skip to main content
node
const fetch = require('node-fetch');

let url = 'https://api.coralogix.com/mgmt/openapi/incidents/incidents/v1/events/filter-values';

let options = {method: 'GET', headers: {Authorization: 'Bearer <API_KEY>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
{
  "filtersValues": {
    "assigneeWithCount": [
      {
        "assignee": "assignee",
        "count": 10
      }
    ],
    "contextualLabels": [
      {
        "key": "<string>",
        "value": {
          "valuesWithCount": [
            {
              "contextualLabelValue": "contextual_label_value",
              "count": 10
            }
          ]
        }
      }
    ],
    "displayLabels": [
      {
        "key": "<string>",
        "value": {
          "valuesWithCount": [
            {
              "count": 10,
              "displayLabelValue": "display_label_value"
            }
          ]
        }
      }
    ],
    "metaLabelsOp": "FILTER_OPERATOR_OR_OR_UNSPECIFIED",
    "metaLabelsWithCount": [
      {
        "count": 10,
        "metaLabel": {
          "key": "key",
          "value": "value"
        }
      }
    ],
    "severityWithCount": [
      {
        "count": 10,
        "severity": "INCIDENT_SEVERITY_UNSPECIFIED"
      }
    ],
    "stateWithCount": [
      {
        "count": 10,
        "state": "INCIDENT_STATE_UNSPECIFIED"
      }
    ],
    "statusWithCount": [
      {
        "count": 10,
        "status": "INCIDENT_STATUS_UNSPECIFIED"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Response

A response containing available filter values for incident events

filtersValues
object
I