kustomize/bases/alertrules_crd.yaml (82 lines of code) (raw):
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.3
name: alertrules.adx-mon.azure.com
spec:
group: adx-mon.azure.com
names:
kind: AlertRule
listKind: AlertRuleList
plural: alertrules
singular: alertrule
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
description: AlertRule is the Schema for the alertrules API
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More 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.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: AlertRuleSpec defines the desired state of AlertRule
properties:
autoMitigateAfter:
type: string
criteria:
additionalProperties:
items:
type: string
type: array
description: |-
Key/Value pairs used to determine when an alert can execute. If empty, always execute. Keys and values
are deployment specific and configured on alerter instances. For example, an alerter instance may be
started with `--tag cloud=public`. If an AlertRule has `criteria: {cloud: public}`, then the rule will only
execute on that alerter. Any key/values pairs must match (case-insensitive) for the rule to execute.
type: object
database:
type: string
destination:
type: string
interval:
type: string
query:
type: string
type: object
status:
description: AlertRuleStatus defines the observed state of AlertRule
properties:
lastAlertTime:
format: date-time
type: string
lastQueryTime:
format: date-time
type: string
message:
type: string
status:
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}