Silence
observability.giantswarm.io / v1alpha2
apiVersion: observability.giantswarm.io/v1alpha2
kind: Silence
metadata:
name: example
apiVersion
string
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
kind
string
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
metadata
object
spec object
SilenceSpec defines the desired state of Silence.
duration
string
Duration defines how long the silence is active from StartsAt (or creation time when StartsAt is unset).
Ignored when EndsAt is set. Takes precedence over the valid-until annotation.
Supports weeks (w), days (d), hours (h), minutes (m), and seconds (s): "7d", "2w", "1d12h", "30m".
pattern:
^(\d+w(\d+d)?(\d+h)?(\d+m)?(\d+s)?|\d+d(\d+h)?(\d+m)?(\d+s)?|\d+h(\d+m)?(\d+s)?|\d+m(\d+s)?|\d+s)$
endsAt
string
EndsAt defines when the silence expires. Takes precedence over Duration and the valid-until annotation.
format:
date-timematchers []object required
Matchers defines the alert matchers that this silence will apply to.
minItems:
1
matchType
string
MatchType defines the type of matching to perform.
enum:
=, !=, =~, !~
name
string required
Name of the label to match.
minLength:
1maxLength:
256
value
string required
Value to match for the given label name.
maxLength:
1024
startsAt
string
StartsAt defines when the silence becomes active. Defaults to the object's creation timestamp.
format:
date-timeNo matches. Try .spec.duration for an exact path