v1beta1

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the API. +groupName=config.prometheus.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: config.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Rule

type Rule struct {
	Record      string            `json:"record,omitempty"`
	Alert       string            `json:"alert,omitempty"`
	Expr        string            `json:"expr"`
	For         string            `json:"for,omitempty"`
	Labels      map[string]string `json:"labels,omitempty"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

Rule describes an alerting or recording rule.

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

type RuleGroup

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

	Spec   RuleGroupSpec   `json:"spec"`
	Status RuleGroupStatus `json:"status,omitempty"`
}

+kubebuilder:subresource:status +kubebuilder:printcolumn:name="Rules",type=integer,JSONPath=`.status.recordingRules` +kubebuilder:printcolumn:name="Alerts",type=integer,JSONPath=`.status.alertRules` +kubebuilder:printcolumn:name="Errors",type=integer,JSONPath=`.status.errorCount` RuleGroup

func (*RuleGroup) DeepCopy

func (in *RuleGroup) DeepCopy() *RuleGroup

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

func (*RuleGroup) DeepCopyInto

func (in *RuleGroup) DeepCopyInto(out *RuleGroup)

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

func (*RuleGroup) DeepCopyObject

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

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

type RuleGroupList

type RuleGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []RuleGroup `json:"items"`
}

RuleGroupList is a list of rule group resources

func (*RuleGroupList) DeepCopy

func (in *RuleGroupList) DeepCopy() *RuleGroupList

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

func (*RuleGroupList) DeepCopyInto

func (in *RuleGroupList) DeepCopyInto(out *RuleGroupList)

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

func (*RuleGroupList) DeepCopyObject

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

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

type RuleGroupSpec

type RuleGroupSpec struct {
	Interval string `json:"interval,omitempty"`
	Rules    []Rule `json:"rules"`
}

RuleGroupSpec is the spec for a rule group resource

func (*RuleGroupSpec) DeepCopy

func (in *RuleGroupSpec) DeepCopy() *RuleGroupSpec

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

func (*RuleGroupSpec) DeepCopyInto

func (in *RuleGroupSpec) DeepCopyInto(out *RuleGroupSpec)

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

type RuleGroupStatus

type RuleGroupStatus struct {
	RecordingRuleCount int      `json:"recordingRules"`
	AlertRuleCount     int      `json:"alertRules"`
	ErrorCount         int      `json:"errorCount"`
	Errors             []string `json:"errors,omitempty"`
}

RuleGroupStatus is the status for a rule group resource

func (*RuleGroupStatus) DeepCopy

func (in *RuleGroupStatus) DeepCopy() *RuleGroupStatus

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

func (*RuleGroupStatus) DeepCopyInto

func (in *RuleGroupStatus) DeepCopyInto(out *RuleGroupStatus)

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

type Scrape

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

	Spec   ScrapeSpec   `json:"spec"`
	Status ScrapeStatus `json:"status,omitempty"`
}

+kubebuilder:subresource:status +kubebuilder:printcolumn:name="Errors",type=integer,JSONPath=`.status.errorCount` Scrape

func (*Scrape) DeepCopy

func (in *Scrape) DeepCopy() *Scrape

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

func (*Scrape) DeepCopyInto

func (in *Scrape) DeepCopyInto(out *Scrape)

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

func (*Scrape) DeepCopyObject

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

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

type ScrapeList

type ScrapeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Scrape `json:"items"`
}

ScrapeList is a list of Foo resources

func (*ScrapeList) DeepCopy

func (in *ScrapeList) DeepCopy() *ScrapeList

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

func (*ScrapeList) DeepCopyInto

func (in *ScrapeList) DeepCopyInto(out *ScrapeList)

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

func (*ScrapeList) DeepCopyObject

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

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

type ScrapeSpec

type ScrapeSpec string

ScrapeSpec is the spec for a scrape resource

type ScrapeStatus added in v0.3.4

type ScrapeStatus struct {
	ErrorCount int      `json:"errorCount"`
	Errors     []string `json:"errors,omitempty"`
}

ScrapeStatus is the status for a scrape resource

func (*ScrapeStatus) DeepCopy added in v0.3.4

func (in *ScrapeStatus) DeepCopy() *ScrapeStatus

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

func (*ScrapeStatus) DeepCopyInto added in v0.3.4

func (in *ScrapeStatus) DeepCopyInto(out *ScrapeStatus)

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