Skip to main content
Create multiple alert scheduler rules
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/3/v1/alert-scheduler-rules/bulk \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "createAlertSchedulerRuleRequests": [
    {
      "alertSchedulerRule": {
        "createdAt": "<string>",
        "description": "<string>",
        "enabled": true,
        "filter": {
          "alertUniqueIds": {
            "value": [
              "<string>"
            ]
          },
          "whatExpression": "<string>"
        },
        "id": "<string>",
        "metaLabels": [
          {
            "id": "<string>",
            "key": "<string>",
            "value": "<string>"
          }
        ],
        "name": "<string>",
        "schedule": {
          "recurring": {
            "dynamic": {
              "repeatEvery": 123,
              "terminationDate": "<string>",
              "timeframe": {
                "endTime": "<string>",
                "startTime": "<string>",
                "timezone": "<string>"
              },
              "weekly": {
                "daysOfWeek": [
                  123
                ]
              }
            }
          },
          "scheduleOperation": "SCHEDULE_OPERATION_UNSPECIFIED"
        },
        "uniqueIdentifier": "<string>",
        "updatedAt": "<string>"
      }
    }
  ]
}
'
{
  "createSuppressionResponses": [
    {
      "alertSchedulerRule": {
        "createdAt": "<string>",
        "description": "<string>",
        "enabled": true,
        "filter": {
          "alertUniqueIds": {
            "value": [
              "<string>"
            ]
          },
          "whatExpression": "<string>"
        },
        "id": "<string>",
        "metaLabels": [
          {
            "id": "<string>",
            "key": "<string>",
            "value": "<string>"
          }
        ],
        "name": "<string>",
        "schedule": {
          "recurring": {
            "dynamic": {
              "repeatEvery": 123,
              "terminationDate": "<string>",
              "timeframe": {
                "endTime": "<string>",
                "startTime": "<string>",
                "timezone": "<string>"
              },
              "weekly": {
                "daysOfWeek": [
                  123
                ]
              }
            }
          },
          "scheduleOperation": "SCHEDULE_OPERATION_UNSPECIFIED"
        },
        "uniqueIdentifier": "<string>",
        "updatedAt": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This is a request sent to create multiple alert scheduler rules

createAlertSchedulerRuleRequests
Create alert scheduler rule request data structure · object[]
required

Response

This is a response sent after creating multiple alert scheduler rules

createSuppressionResponses
Create alert scheduler rule response data structure · object[]
required