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

let url = 'https://api.coralogix.com/mgmt/openapi/v3/alert-event-stats';

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));
{
  "eventsStats": [
    {
      "key": "<string>",
      "value": {
        "activityAnalysisStats": {
          "isMutedCount": 123,
          "rules": [
            "<string>"
          ]
        },
        "count": 123,
        "resolvedCount": 123,
        "resolvedPermutationsSamples": [
          {
            "permutationLabels": [
              {
                "key": "<string>",
                "value": "<string>"
              }
            ]
          }
        ],
        "triggeredCount": 123,
        "triggeredPermutationsSamples": [
          {
            "permutationLabels": [
              {
                "key": "<string>",
                "value": "<string>"
              }
            ]
          }
        ]
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Response

eventsStats
object[]
I