Skip to main content
Create an alert scheduler rule
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/3/v1/alert-scheduler-rules \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "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>"
  }
}
'
{
  "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 an alert scheduler rule

alertSchedulerRule
object
required

Response

This is a response sent after creating an alert scheduler rule

alertSchedulerRule
object
required