v1alpha1

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the monitoring v1alpha1 API group. +kubebuilder:object:generate=true +groupName=monitoring.giantswarm.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "monitoring.giantswarm.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	IsRegex bool   `json:"isRegex,omitempty"`
	IsEqual *bool  `json:"isEqual,omitempty"`
	Name    string `json:"name"`
	Value   string `json:"value"`
}

func (*Matcher) DeepCopy

func (in *Matcher) DeepCopy() *Matcher

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Matcher.

func (*Matcher) DeepCopyInto

func (in *Matcher) DeepCopyInto(out *Matcher)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Silence

type Silence struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec SilenceSpec `json:"spec"`
}

Silence is the Schema for the silences API. +kubebuilder:object:root=true +kubebuilder:resource:scope=Cluster

func (*Silence) DeepCopy

func (in *Silence) DeepCopy() *Silence

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Silence.

func (*Silence) DeepCopyInto

func (in *Silence) DeepCopyInto(out *Silence)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Silence) DeepCopyObject

func (in *Silence) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SilenceList

type SilenceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Silence `json:"items"`
}

SilenceList contains a list of Silence.

func (*SilenceList) DeepCopy

func (in *SilenceList) DeepCopy() *SilenceList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SilenceList.

func (*SilenceList) DeepCopyInto

func (in *SilenceList) DeepCopyInto(out *SilenceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*SilenceList) DeepCopyObject

func (in *SilenceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type SilenceSpec

type SilenceSpec struct {
	TargetTags []TargetTag `json:"targetTags,omitempty"`
	Matchers   []Matcher   `json:"matchers"`

	// Owner is GitHub username of a person who created and/or owns the silence.
	Owner string `json:"owner,omitempty"`

	// PostmortemURL is a link to a document describing the problem.
	// Deprecated: Use IssueURL instead.
	PostmortemURL *string `json:"postmortem_url,omitempty"`

	// IssueURL is a link to a GitHub issue describing the problem.
	IssueURL string `json:"issue_url,omitempty"`
}

SilenceSpec defines the desired state of Silence.

func (*SilenceSpec) DeepCopy

func (in *SilenceSpec) DeepCopy() *SilenceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SilenceSpec.

func (*SilenceSpec) DeepCopyInto

func (in *SilenceSpec) DeepCopyInto(out *SilenceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TargetTag

type TargetTag struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*TargetTag) DeepCopy

func (in *TargetTag) DeepCopy() *TargetTag

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetTag.

func (*TargetTag) DeepCopyInto

func (in *TargetTag) DeepCopyInto(out *TargetTag)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL