{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coralogix/json-schema/coralogix-create-bulk-alert-scheduler-rule-response-schema.json",
  "title": "Create bulk alert scheduler rule response data structure",
  "description": "This is a response sent after creating multiple alert scheduler rules",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coralogix-alert-scheduler-rule-service-api-openapi.yml#/components/schemas/CreateBulkAlertSchedulerRuleResponse",
  "required": [
    "createSuppressionResponses"
  ],
  "type": "object",
  "properties": {
    "createSuppressionResponses": {
      "minItems": 0,
      "type": "array",
      "items": {
        "$ref": "#/$defs/CreateAlertSchedulerRuleResponse"
      },
      "description": "The create suppression responses."
    }
  },
  "$defs": {
    "AlertSchedulerRule": {
      "required": [
        "name",
        "filter",
        "schedule"
      ],
      "type": "object",
      "properties": {
        "createdAt": {
          "description": "Creation timestamp.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "description": {
          "description": "Human-readable description.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "enabled": {
          "type": "boolean",
          "description": "Whether this resource is enabled."
        },
        "filter": {
          "$ref": "#/$defs/alert_scheduler_rule_protobuf.v1.Filter"
        },
        "id": {
          "description": "Unique identifier.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "metaLabels": {
          "description": "Metadata labels.",
          "items": {
            "$ref": "#/$defs/meta_labels_protobuf.v1.MetaLabel"
          },
          "minItems": 0,
          "type": "array",
          "x-coralogix-collection": "set"
        },
        "name": {
          "minLength": 1,
          "type": "string",
          "description": "Display name."
        },
        "schedule": {
          "$ref": "#/$defs/Schedule"
        },
        "uniqueIdentifier": {
          "description": "Unique identifier.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "updatedAt": {
          "description": "Last-updated timestamp.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        }
      },
      "description": "Alert scheduler rule."
    },
    "AlertUniqueIds": {
      "type": "object",
      "properties": {
        "value": {
          "description": "The value.",
          "items": {
            "minLength": 0,
            "type": "string",
            "description": "The value."
          },
          "minItems": 0,
          "type": "array",
          "x-coralogix-collection": "set"
        }
      },
      "description": "Alert unique ids."
    },
    "Always": {
      "type": "object",
      "additionalProperties": false,
      "description": "Always."
    },
    "CreateAlertSchedulerRuleResponse": {
      "title": "Create alert scheduler rule response data structure",
      "required": [
        "alertSchedulerRule"
      ],
      "type": "object",
      "properties": {
        "alertSchedulerRule": {
          "$ref": "#/$defs/AlertSchedulerRule"
        }
      },
      "description": "This is a response sent after creating an alert scheduler rule"
    },
    "Daily": {
      "type": "object",
      "additionalProperties": false,
      "description": "Daily."
    },
    "DurationFrequency": {
      "enum": [
        "DURATION_FREQUENCY_UNSPECIFIED",
        "DURATION_FREQUENCY_MINUTE",
        "DURATION_FREQUENCY_HOUR",
        "DURATION_FREQUENCY_DAY"
      ],
      "type": "string",
      "description": "Duration frequency."
    },
    "MetaLabels": {
      "type": "object",
      "properties": {
        "value": {
          "description": "The value.",
          "items": {
            "$ref": "#/$defs/meta_labels_protobuf.v1.MetaLabel"
          },
          "minItems": 0,
          "type": "array",
          "x-coralogix-collection": "set"
        }
      },
      "description": "Meta labels."
    },
    "Monthly": {
      "required": [
        "daysOfMonth"
      ],
      "type": "object",
      "properties": {
        "daysOfMonth": {
          "description": "The days of month.",
          "items": {
            "type": "integer",
            "description": "The days of month.",
            "format": "int32"
          },
          "minItems": 1,
          "type": "array",
          "x-coralogix-collection": "set"
        }
      },
      "description": "Monthly."
    },
    "OneTime": {
      "required": [
        "timeframe"
      ],
      "type": "object",
      "properties": {
        "timeframe": {
          "$ref": "#/$defs/Timeframe"
        }
      },
      "description": "One time."
    },
    "Recurring": {
      "type": "object",
      "oneOf": [
        {
          "required": [
            "alwaysActive"
          ],
          "type": "object"
        },
        {
          "required": [
            "schedule"
          ],
          "type": "object"
        }
      ],
      "properties": {
        "alwaysActive": {
          "$ref": "#/$defs/Always"
        },
        "schedule": {
          "$ref": "#/$defs/Recurring.Dynamic"
        }
      },
      "description": "Recurring schedule that activates the alert scheduler rule on a repeating cadence."
    },
    "Recurring.Dynamic": {
      "required": [
        "timeframe"
      ],
      "type": "object",
      "oneOf": [
        {
          "required": [
            "daily"
          ],
          "type": "object"
        },
        {
          "required": [
            "weekly"
          ],
          "type": "object"
        },
        {
          "required": [
            "monthly"
          ],
          "type": "object"
        }
      ],
      "properties": {
        "daily": {
          "$ref": "#/$defs/Daily"
        },
        "monthly": {
          "$ref": "#/$defs/Monthly"
        },
        "repeatEvery": {
          "type": "integer",
          "description": "Interval multiplier controlling how often the rule recurs (e.g., every N days, weeks, or months).",
          "format": "int32"
        },
        "terminationDate": {
          "description": "ISO 8601 date after which the recurring rule stops being applied.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "timeframe": {
          "$ref": "#/$defs/Timeframe"
        },
        "weekly": {
          "$ref": "#/$defs/Weekly"
        }
      },
      "description": "Dynamic."
    },
    "Schedule": {
      "required": [
        "scheduleOperation"
      ],
      "type": "object",
      "oneOf": [
        {
          "required": [
            "oneTime"
          ],
          "type": "object"
        },
        {
          "required": [
            "recurring"
          ],
          "type": "object"
        }
      ],
      "properties": {
        "oneTime": {
          "$ref": "#/$defs/OneTime"
        },
        "recurring": {
          "$ref": "#/$defs/Recurring"
        },
        "scheduleOperation": {
          "$ref": "#/$defs/ScheduleOperation"
        }
      },
      "description": "Schedule."
    },
    "ScheduleOperation": {
      "enum": [
        "SCHEDULE_OPERATION_UNSPECIFIED",
        "SCHEDULE_OPERATION_MUTE",
        "SCHEDULE_OPERATION_ACTIVATE"
      ],
      "type": "string",
      "description": "Schedule operation."
    },
    "Timeframe": {
      "required": [
        "timezone"
      ],
      "type": "object",
      "oneOf": [
        {
          "required": [
            "endTime"
          ],
          "type": "object"
        },
        {
          "required": [
            "duration"
          ],
          "type": "object"
        }
      ],
      "properties": {
        "duration": {
          "$ref": "#/$defs/v1.Duration"
        },
        "endTime": {
          "minLength": 0,
          "type": "string",
          "description": "End time."
        },
        "startTime": {
          "minLength": 0,
          "type": "string",
          "description": "Start time."
        },
        "submittedStartTime": {
          "description": "The start time as submitted in the request, before the service normalized it to the next valid occurrence. Populated only in create and update responses; ignored in requests and omitted from read responses.",
          "maxLength": 64,
          "minLength": 0,
          "pattern": "^[\\s\\S]*$",
          "readOnly": true,
          "type": "string",
          "x-coralogix-presence": true
        },
        "timezone": {
          "minLength": 1,
          "type": "string",
          "description": "Timezone."
        }
      },
      "description": "Timeframe."
    },
    "Weekly": {
      "required": [
        "daysOfWeek"
      ],
      "type": "object",
      "properties": {
        "daysOfWeek": {
          "description": "The days of week.",
          "items": {
            "type": "integer",
            "description": "The days of week.",
            "format": "int32"
          },
          "minItems": 1,
          "type": "array",
          "x-coralogix-collection": "set"
        }
      },
      "description": "Weekly."
    },
    "alert_scheduler_rule_protobuf.v1.Filter": {
      "required": [
        "whatExpression"
      ],
      "type": "object",
      "oneOf": [
        {
          "required": [
            "alertMetaLabels"
          ],
          "type": "object"
        },
        {
          "required": [
            "alertUniqueIds"
          ],
          "type": "object"
        }
      ],
      "properties": {
        "alertMetaLabels": {
          "$ref": "#/$defs/MetaLabels"
        },
        "alertUniqueIds": {
          "$ref": "#/$defs/AlertUniqueIds"
        },
        "whatExpression": {
          "minLength": 1,
          "type": "string",
          "description": "Dataprime expression that filters the alerts by group-by values."
        }
      },
      "description": "Alert scheduler rule protobuf.v1.filter."
    },
    "meta_labels_protobuf.v1.MetaLabel": {
      "type": "object",
      "properties": {
        "id": {
          "description": "Unique identifier.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        },
        "key": {
          "minLength": 0,
          "type": "string",
          "description": "The key."
        },
        "value": {
          "description": "The value.",
          "minLength": 0,
          "type": "string",
          "x-coralogix-presence": true
        }
      },
      "description": "Meta label."
    },
    "v1.Duration": {
      "required": [
        "frequency"
      ],
      "type": "object",
      "properties": {
        "forOver": {
          "type": "integer",
          "description": "The for over.",
          "format": "int32"
        },
        "frequency": {
          "$ref": "#/$defs/DurationFrequency"
        }
      },
      "description": "Duration."
    }
  }
}