{
  "description": "AlertruleV0Alpha1 is the Schema for the AlertruleV0Alpha1s API. Manages Grafana Alert Rules. This resource is currently in alpha and is subject to change. Grafana 12.4+ users must enable the kubernetesAlertingRules feature toggle https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/feature-toggles/.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "AlertruleV0Alpha1Spec defines the desired state of AlertruleV0Alpha1",
      "properties": {
        "forProvider": {
          "properties": {
            "metadata": {
              "description": "(Block, Optional) The metadata of the resource. (see below for nested schema)\nThe metadata of the resource.",
              "properties": {
                "folderUid": {
                  "description": "(String) The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.\nThe UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.",
                  "type": "string"
                },
                "uid": {
                  "description": "(String) The unique identifier of the resource.\nThe unique identifier of the resource.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "options": {
              "description": "(Block, Optional) Options for applying the resource. (see below for nested schema)\nOptions for applying the resource.",
              "properties": {
                "managerIdentity": {
                  "description": "Override the identity stamped on this resource's manager metadata.",
                  "type": "string"
                },
                "overwrite": {
                  "description": "(Boolean) Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.\nSet to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.",
                  "type": "boolean"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "spec": {
              "description": "(Block, Optional) The spec of the resource. (see below for nested schema)\nThe spec of the resource.",
              "properties": {
                "annotations": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) Annotations of the resource.\nKey-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbook_url`, to help identify and investigate alerts.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "execErrState": {
                  "description": "(String) Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.\nDescribes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.",
                  "type": "string"
                },
                "expressions": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.\nA sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "for": {
                  "description": "(String) The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.\nThe amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.",
                  "type": "string"
                },
                "keepFiringFor": {
                  "description": "(String) The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.\nThe amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.",
                  "type": "string"
                },
                "labels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "value pairs to attach to the alert rule that can be used in matching, grouping, and routing.\nKey-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "missingSeriesEvalsToResolve": {
                  "description": "(Number) The number of missing series evaluations that must occur before the rule is considered to be resolved.\nThe number of missing series evaluations that must occur before the rule is considered to be resolved.",
                  "type": "number"
                },
                "noDataState": {
                  "description": "(String) Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.\nDescribes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.",
                  "type": "string"
                },
                "notificationSettings": {
                  "description": "(Block, Optional) Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of named_routing_tree or simplified_routing (see below for nested schema)\nNotification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of named_routing_tree or simplified_routing",
                  "properties": {
                    "activeTimings": {
                      "description": "(List of String, Deprecated) Deprecated. A list of time interval names to apply to alerts that match this policy.\nDeprecated. A list of time interval names to apply to alerts that match this policy.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "contactPoint": {
                      "description": "(String, Deprecated) Deprecated. The contact point to route notifications that match this rule to.\nDeprecated. The contact point to route notifications that match this rule to.",
                      "type": "string"
                    },
                    "groupBy": {
                      "description": "(List of String, Deprecated) Deprecated. A list of alert labels to group alerts into notifications by.\nDeprecated. A list of alert labels to group alerts into notifications by.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "groupInterval": {
                      "description": "(String, Deprecated) Deprecated. Minimum time interval between two notifications for the same group.\nDeprecated. Minimum time interval between two notifications for the same group.",
                      "type": "string"
                    },
                    "groupWait": {
                      "description": "(String, Deprecated) Deprecated. Time to wait to buffer alerts of the same group before sending a notification.\nDeprecated. Time to wait to buffer alerts of the same group before sending a notification.",
                      "type": "string"
                    },
                    "muteTimings": {
                      "description": "(List of String, Deprecated) Deprecated. A list of mute timing names to apply to alerts that match this policy.\nDeprecated. A list of mute timing names to apply to alerts that match this policy.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "namedRoutingTree": {
                      "description": "(Block, Optional) Route notifications to a specific routing tree. (see below for nested schema)\nRoute notifications to a specific routing tree.",
                      "properties": {
                        "routingTree": {
                          "description": "(String) The name of the routing tree to use.\nThe name of the routing tree to use.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "repeatInterval": {
                      "description": "sending a notification if an alert is still firing.\nDeprecated. Minimum time interval for re-sending a notification if an alert is still firing.",
                      "type": "string"
                    },
                    "simplifiedRouting": {
                      "description": "(Block, Optional) Simplified routing to a contact point with optional grouping and timing overrides. (see below for nested schema)\nSimplified routing to a contact point with optional grouping and timing overrides.",
                      "properties": {
                        "activeTimings": {
                          "description": "(List of String, Deprecated) Deprecated. A list of time interval names to apply to alerts that match this policy.\nA list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "contactPoint": {
                          "description": "(String, Deprecated) Deprecated. The contact point to route notifications that match this rule to.\nThe contact point to route notifications that match this rule to.",
                          "type": "string"
                        },
                        "groupBy": {
                          "description": "(List of String, Deprecated) Deprecated. A list of alert labels to group alerts into notifications by.\nA list of alert labels to group alerts into notifications by.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "groupInterval": {
                          "description": "(String, Deprecated) Deprecated. Minimum time interval between two notifications for the same group.\nMinimum time interval between two notifications for the same group.",
                          "type": "string"
                        },
                        "groupWait": {
                          "description": "(String, Deprecated) Deprecated. Time to wait to buffer alerts of the same group before sending a notification.\nTime to wait to buffer alerts of the same group before sending a notification.",
                          "type": "string"
                        },
                        "muteTimings": {
                          "description": "(List of String, Deprecated) Deprecated. A list of mute timing names to apply to alerts that match this policy.\nA list of mute timing names to apply to alerts that match this policy.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "repeatInterval": {
                          "description": "sending a notification if an alert is still firing.\nMinimum time interval for re-sending a notification if an alert is still firing.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "panelRef": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) Reference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.\nReference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "paused": {
                  "description": "(Boolean) Sets whether the rule should be paused or not.\nSets whether the rule should be paused or not.",
                  "type": "boolean"
                },
                "title": {
                  "description": "(String) The title of the alert rule.\nThe title of the alert rule.",
                  "type": "string"
                },
                "trigger": {
                  "description": "(Block, Optional) The trigger configuration for the alert rule. (see below for nested schema)\nThe trigger configuration for the alert rule.",
                  "properties": {
                    "interval": {
                      "description": "(String) The interval at which the alert rule should be evaluated.\nThe interval at which the alert rule should be evaluated.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "initProvider": {
          "description": "THIS IS A BETA FIELD. It will be honored\nunless the Management Policies feature flag is disabled.\nInitProvider holds the same fields as ForProvider, with the exception\nof Identifier and other resource reference fields. The fields that are\nin InitProvider are merged into ForProvider when the resource is created.\nThe same fields are also added to the terraform ignore_changes hook, to\navoid updating them after creation. This is useful for fields that are\nrequired on creation, but we do not desire to update them after creation,\nfor example because of an external controller is managing them, like an\nautoscaler.",
          "properties": {
            "metadata": {
              "description": "(Block, Optional) The metadata of the resource. (see below for nested schema)\nThe metadata of the resource.",
              "properties": {
                "folderUid": {
                  "description": "(String) The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.\nThe UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.",
                  "type": "string"
                },
                "uid": {
                  "description": "(String) The unique identifier of the resource.\nThe unique identifier of the resource.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "options": {
              "description": "(Block, Optional) Options for applying the resource. (see below for nested schema)\nOptions for applying the resource.",
              "properties": {
                "managerIdentity": {
                  "description": "Override the identity stamped on this resource's manager metadata.",
                  "type": "string"
                },
                "overwrite": {
                  "description": "(Boolean) Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.\nSet to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.",
                  "type": "boolean"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "spec": {
              "description": "(Block, Optional) The spec of the resource. (see below for nested schema)\nThe spec of the resource.",
              "properties": {
                "annotations": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) Annotations of the resource.\nKey-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbook_url`, to help identify and investigate alerts.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "execErrState": {
                  "description": "(String) Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.\nDescribes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.",
                  "type": "string"
                },
                "expressions": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.\nA sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "for": {
                  "description": "(String) The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.\nThe amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.",
                  "type": "string"
                },
                "keepFiringFor": {
                  "description": "(String) The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.\nThe amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.",
                  "type": "string"
                },
                "labels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "value pairs to attach to the alert rule that can be used in matching, grouping, and routing.\nKey-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "missingSeriesEvalsToResolve": {
                  "description": "(Number) The number of missing series evaluations that must occur before the rule is considered to be resolved.\nThe number of missing series evaluations that must occur before the rule is considered to be resolved.",
                  "type": "number"
                },
                "noDataState": {
                  "description": "(String) Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.\nDescribes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.",
                  "type": "string"
                },
                "notificationSettings": {
                  "description": "(Block, Optional) Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of named_routing_tree or simplified_routing (see below for nested schema)\nNotification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of named_routing_tree or simplified_routing",
                  "properties": {
                    "activeTimings": {
                      "description": "(List of String, Deprecated) Deprecated. A list of time interval names to apply to alerts that match this policy.\nDeprecated. A list of time interval names to apply to alerts that match this policy.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "contactPoint": {
                      "description": "(String, Deprecated) Deprecated. The contact point to route notifications that match this rule to.\nDeprecated. The contact point to route notifications that match this rule to.",
                      "type": "string"
                    },
                    "groupBy": {
                      "description": "(List of String, Deprecated) Deprecated. A list of alert labels to group alerts into notifications by.\nDeprecated. A list of alert labels to group alerts into notifications by.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "groupInterval": {
                      "description": "(String, Deprecated) Deprecated. Minimum time interval between two notifications for the same group.\nDeprecated. Minimum time interval between two notifications for the same group.",
                      "type": "string"
                    },
                    "groupWait": {
                      "description": "(String, Deprecated) Deprecated. Time to wait to buffer alerts of the same group before sending a notification.\nDeprecated. Time to wait to buffer alerts of the same group before sending a notification.",
                      "type": "string"
                    },
                    "muteTimings": {
                      "description": "(List of String, Deprecated) Deprecated. A list of mute timing names to apply to alerts that match this policy.\nDeprecated. A list of mute timing names to apply to alerts that match this policy.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "namedRoutingTree": {
                      "description": "(Block, Optional) Route notifications to a specific routing tree. (see below for nested schema)\nRoute notifications to a specific routing tree.",
                      "properties": {
                        "routingTree": {
                          "description": "(String) The name of the routing tree to use.\nThe name of the routing tree to use.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "repeatInterval": {
                      "description": "sending a notification if an alert is still firing.\nDeprecated. Minimum time interval for re-sending a notification if an alert is still firing.",
                      "type": "string"
                    },
                    "simplifiedRouting": {
                      "description": "(Block, Optional) Simplified routing to a contact point with optional grouping and timing overrides. (see below for nested schema)\nSimplified routing to a contact point with optional grouping and timing overrides.",
                      "properties": {
                        "activeTimings": {
                          "description": "(List of String, Deprecated) Deprecated. A list of time interval names to apply to alerts that match this policy.\nA list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "contactPoint": {
                          "description": "(String, Deprecated) Deprecated. The contact point to route notifications that match this rule to.\nThe contact point to route notifications that match this rule to.",
                          "type": "string"
                        },
                        "groupBy": {
                          "description": "(List of String, Deprecated) Deprecated. A list of alert labels to group alerts into notifications by.\nA list of alert labels to group alerts into notifications by.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "groupInterval": {
                          "description": "(String, Deprecated) Deprecated. Minimum time interval between two notifications for the same group.\nMinimum time interval between two notifications for the same group.",
                          "type": "string"
                        },
                        "groupWait": {
                          "description": "(String, Deprecated) Deprecated. Time to wait to buffer alerts of the same group before sending a notification.\nTime to wait to buffer alerts of the same group before sending a notification.",
                          "type": "string"
                        },
                        "muteTimings": {
                          "description": "(List of String, Deprecated) Deprecated. A list of mute timing names to apply to alerts that match this policy.\nA list of mute timing names to apply to alerts that match this policy.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "repeatInterval": {
                          "description": "sending a notification if an alert is still firing.\nMinimum time interval for re-sending a notification if an alert is still firing.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "panelRef": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) Reference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.\nReference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "paused": {
                  "description": "(Boolean) Sets whether the rule should be paused or not.\nSets whether the rule should be paused or not.",
                  "type": "boolean"
                },
                "title": {
                  "description": "(String) The title of the alert rule.\nThe title of the alert rule.",
                  "type": "string"
                },
                "trigger": {
                  "description": "(Block, Optional) The trigger configuration for the alert rule. (see below for nested schema)\nThe trigger configuration for the alert rule.",
                  "properties": {
                    "interval": {
                      "description": "(String) The interval at which the alert rule should be evaluated.\nThe interval at which the alert rule should be evaluated.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "managementPolicies": {
          "default": [
            "*"
          ],
          "description": "THIS IS A BETA FIELD. It is on by default but can be opted out\nthrough a Crossplane feature flag.\nManagementPolicies specify the array of actions Crossplane is allowed to\ntake on the managed and external resources.\nSee the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223\nand this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md",
          "items": {
            "description": "A ManagementAction represents an action that the Crossplane controllers\ncan take on an external resource.",
            "enum": [
              "Observe",
              "Create",
              "Update",
              "Delete",
              "LateInitialize",
              "*"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "providerConfigRef": {
          "default": {
            "kind": "ClusterProviderConfig",
            "name": "default"
          },
          "description": "ProviderConfigReference specifies how the provider that will be used to\ncreate, observe, update, and delete this managed resource should be\nconfigured.",
          "properties": {
            "kind": {
              "description": "Kind of the referenced object.",
              "type": "string"
            },
            "name": {
              "description": "Name of the referenced object.",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "writeConnectionSecretToRef": {
          "description": "WriteConnectionSecretToReference specifies the namespace and name of a\nSecret to which any connection details for this managed resource should\nbe written. Connection details frequently include the endpoint, username,\nand password required to connect to the managed resource.",
          "properties": {
            "name": {
              "description": "Name of the secret.",
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "forProvider"
      ],
      "type": "object",
      "x-kubernetes-validations": [
        {
          "message": "spec.forProvider.metadata is a required parameter",
          "rule": "!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.metadata) || (has(self.initProvider) && has(self.initProvider.metadata))"
        },
        {
          "message": "spec.forProvider.spec is a required parameter",
          "rule": "!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.spec) || (has(self.initProvider) && has(self.initProvider.spec))"
        }
      ],
      "additionalProperties": false
    },
    "status": {
      "description": "AlertruleV0Alpha1Status defines the observed state of AlertruleV0Alpha1.",
      "properties": {
        "atProvider": {
          "properties": {
            "id": {
              "description": "(String) The ID of the resource derived from UUID.",
              "type": "string"
            },
            "metadata": {
              "description": "(Block, Optional) The metadata of the resource. (see below for nested schema)\nThe metadata of the resource.",
              "properties": {
                "annotations": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) Annotations of the resource.\nAnnotations of the resource.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "folderUid": {
                  "description": "(String) The UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.\nThe UID of the folder to save the resource in. For example, it's supported for dashboards and folders. To know if it's supported for the specific resource you're using check the documentation.",
                  "type": "string"
                },
                "uid": {
                  "description": "(String) The unique identifier of the resource.\nThe unique identifier of the resource.",
                  "type": "string"
                },
                "url": {
                  "description": "(String) The full URL of the resource.\nThe full URL of the resource.",
                  "type": "string"
                },
                "uuid": {
                  "description": "(String) The globally unique identifier of a resource, used by the API for tracking.\nThe globally unique identifier of a resource, used by the API for tracking.",
                  "type": "string"
                },
                "version": {
                  "description": "(String) The version of the resource.\nThe version of the resource.",
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "options": {
              "description": "(Block, Optional) Options for applying the resource. (see below for nested schema)\nOptions for applying the resource.",
              "properties": {
                "managerIdentity": {
                  "description": "Override the identity stamped on this resource's manager metadata.",
                  "type": "string"
                },
                "overwrite": {
                  "description": "(Boolean) Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.\nSet to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.",
                  "type": "boolean"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "spec": {
              "description": "(Block, Optional) The spec of the resource. (see below for nested schema)\nThe spec of the resource.",
              "properties": {
                "annotations": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) Annotations of the resource.\nKey-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbook_url`, to help identify and investigate alerts.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "execErrState": {
                  "description": "(String) Describes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.\nDescribes what state to enter when the rule's query is invalid and the rule cannot be executed. Options are OK, Error, KeepLast, and Alerting.",
                  "type": "string"
                },
                "expressions": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) A sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.\nA sequence of stages that describe the contents of the rule. Each value is a JSON string representing an expression object.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "for": {
                  "description": "(String) The amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.\nThe amount of time for which the rule must be breached for the rule to be considered to be Firing. Before this time has elapsed, the rule is only considered to be Pending.",
                  "type": "string"
                },
                "keepFiringFor": {
                  "description": "(String) The amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.\nThe amount of time for which the rule will considered to be Recovering after initially Firing. Before this time has elapsed, the rule will continue to fire once it's been triggered.",
                  "type": "string"
                },
                "labels": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "value pairs to attach to the alert rule that can be used in matching, grouping, and routing.\nKey-value pairs to attach to the alert rule that can be used in matching, grouping, and routing.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "missingSeriesEvalsToResolve": {
                  "description": "(Number) The number of missing series evaluations that must occur before the rule is considered to be resolved.\nThe number of missing series evaluations that must occur before the rule is considered to be resolved.",
                  "type": "number"
                },
                "noDataState": {
                  "description": "(String) Describes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.\nDescribes what state to enter when the rule's query returns No Data. Options are OK, NoData, KeepLast, and Alerting.",
                  "type": "string"
                },
                "notificationSettings": {
                  "description": "(Block, Optional) Notification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of named_routing_tree or simplified_routing (see below for nested schema)\nNotification settings for the rule. If specified, it overrides the notification policies. The flat configuration is deprecated, please specify one of named_routing_tree or simplified_routing",
                  "properties": {
                    "activeTimings": {
                      "description": "(List of String, Deprecated) Deprecated. A list of time interval names to apply to alerts that match this policy.\nDeprecated. A list of time interval names to apply to alerts that match this policy.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "contactPoint": {
                      "description": "(String, Deprecated) Deprecated. The contact point to route notifications that match this rule to.\nDeprecated. The contact point to route notifications that match this rule to.",
                      "type": "string"
                    },
                    "groupBy": {
                      "description": "(List of String, Deprecated) Deprecated. A list of alert labels to group alerts into notifications by.\nDeprecated. A list of alert labels to group alerts into notifications by.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "groupInterval": {
                      "description": "(String, Deprecated) Deprecated. Minimum time interval between two notifications for the same group.\nDeprecated. Minimum time interval between two notifications for the same group.",
                      "type": "string"
                    },
                    "groupWait": {
                      "description": "(String, Deprecated) Deprecated. Time to wait to buffer alerts of the same group before sending a notification.\nDeprecated. Time to wait to buffer alerts of the same group before sending a notification.",
                      "type": "string"
                    },
                    "muteTimings": {
                      "description": "(List of String, Deprecated) Deprecated. A list of mute timing names to apply to alerts that match this policy.\nDeprecated. A list of mute timing names to apply to alerts that match this policy.",
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "namedRoutingTree": {
                      "description": "(Block, Optional) Route notifications to a specific routing tree. (see below for nested schema)\nRoute notifications to a specific routing tree.",
                      "properties": {
                        "routingTree": {
                          "description": "(String) The name of the routing tree to use.\nThe name of the routing tree to use.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    },
                    "repeatInterval": {
                      "description": "sending a notification if an alert is still firing.\nDeprecated. Minimum time interval for re-sending a notification if an alert is still firing.",
                      "type": "string"
                    },
                    "simplifiedRouting": {
                      "description": "(Block, Optional) Simplified routing to a contact point with optional grouping and timing overrides. (see below for nested schema)\nSimplified routing to a contact point with optional grouping and timing overrides.",
                      "properties": {
                        "activeTimings": {
                          "description": "(List of String, Deprecated) Deprecated. A list of time interval names to apply to alerts that match this policy.\nA list of time interval names to apply to alerts that match this policy to suppress them unless they are sent at the specified time.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "contactPoint": {
                          "description": "(String, Deprecated) Deprecated. The contact point to route notifications that match this rule to.\nThe contact point to route notifications that match this rule to.",
                          "type": "string"
                        },
                        "groupBy": {
                          "description": "(List of String, Deprecated) Deprecated. A list of alert labels to group alerts into notifications by.\nA list of alert labels to group alerts into notifications by.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "groupInterval": {
                          "description": "(String, Deprecated) Deprecated. Minimum time interval between two notifications for the same group.\nMinimum time interval between two notifications for the same group.",
                          "type": "string"
                        },
                        "groupWait": {
                          "description": "(String, Deprecated) Deprecated. Time to wait to buffer alerts of the same group before sending a notification.\nTime to wait to buffer alerts of the same group before sending a notification.",
                          "type": "string"
                        },
                        "muteTimings": {
                          "description": "(List of String, Deprecated) Deprecated. A list of mute timing names to apply to alerts that match this policy.\nA list of mute timing names to apply to alerts that match this policy.",
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "repeatInterval": {
                          "description": "sending a notification if an alert is still firing.\nMinimum time interval for re-sending a notification if an alert is still firing.",
                          "type": "string"
                        }
                      },
                      "type": "object",
                      "additionalProperties": false
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "panelRef": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "description": "(Map of String) Reference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.\nReference to a panel that this alert rule is associated with. Should be an object with 'dashboard_uid' (string) and 'panel_id' (number) fields.",
                  "type": "object",
                  "x-kubernetes-map-type": "granular"
                },
                "paused": {
                  "description": "(Boolean) Sets whether the rule should be paused or not.\nSets whether the rule should be paused or not.",
                  "type": "boolean"
                },
                "title": {
                  "description": "(String) The title of the alert rule.\nThe title of the alert rule.",
                  "type": "string"
                },
                "trigger": {
                  "description": "(Block, Optional) The trigger configuration for the alert rule. (see below for nested schema)\nThe trigger configuration for the alert rule.",
                  "properties": {
                    "interval": {
                      "description": "(String) The interval at which the alert rule should be evaluated.\nThe interval at which the alert rule should be evaluated.",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "conditions": {
          "description": "Conditions of the resource.",
          "items": {
            "description": "A Condition that may apply to a resource.",
            "properties": {
              "lastTransitionTime": {
                "description": "LastTransitionTime is the last time this condition transitioned from one\nstatus to another.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "A Message containing details about this condition's last transition from\none status to another, if any.",
                "type": "string"
              },
              "observedGeneration": {
                "description": "ObservedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
                "format": "int64",
                "type": "integer"
              },
              "reason": {
                "description": "A Reason for this condition's last transition from one status to another.",
                "type": "string"
              },
              "status": {
                "description": "Status of this condition; is it currently True, False, or Unknown?",
                "type": "string"
              },
              "type": {
                "description": "Type of this condition. At most one of each condition type may apply to\na resource at any point in time.",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "reason",
              "status",
              "type"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array",
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        },
        "observedGeneration": {
          "description": "ObservedGeneration is the latest metadata.generation\nwhich resulted in either a ready state, or stalled due to error\nit can not recover from without human intervention.",
          "format": "int64",
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
