v1alpha1

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

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

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 Alert

type Alert struct {
	For  string `json:"for"`
	Step string `json:"step"`
}

type Indicator

type Indicator struct {
	Name          string            `json:"name"`
	Promql        string            `json:"promql"`
	Alert         Alert             `json:"alert"`
	Thresholds    []Threshold       `json:"thresholds"`
	Documentation map[string]string `json:"documentation,omitempty"`
}

func (*Indicator) DeepCopy

func (in *Indicator) DeepCopy() *Indicator

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

func (*Indicator) DeepCopyInto

func (in *Indicator) DeepCopyInto(out *Indicator)

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

type IndicatorDocument

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

	Spec   IndicatorDocumentSpec   `json:"spec"`
	Status IndicatorDocumentStatus `json:"status"`
}

IndicatorDocument is a specification for a IndicatorDocument resource

func (*IndicatorDocument) DeepCopy

func (in *IndicatorDocument) DeepCopy() *IndicatorDocument

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

func (*IndicatorDocument) DeepCopyInto

func (in *IndicatorDocument) DeepCopyInto(out *IndicatorDocument)

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

func (*IndicatorDocument) DeepCopyObject

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

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

type IndicatorDocumentList

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

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

IndicatorDocumentList is a list of IndicatorDocument resources

func (*IndicatorDocumentList) DeepCopy

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

func (*IndicatorDocumentList) DeepCopyInto

func (in *IndicatorDocumentList) DeepCopyInto(out *IndicatorDocumentList)

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

func (*IndicatorDocumentList) DeepCopyObject

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

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

type IndicatorDocumentSpec

type IndicatorDocumentSpec struct {
	Product    Product     `json:"product"`
	Indicators []Indicator `json:"indicators"`
	Layout     Layout      `json:"layout"`
}

IndicatorDocumentSpec is the spec for a IndicatorDocument resource

func (*IndicatorDocumentSpec) DeepCopy

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

func (*IndicatorDocumentSpec) DeepCopyInto

func (in *IndicatorDocumentSpec) DeepCopyInto(out *IndicatorDocumentSpec)

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

type IndicatorDocumentStatus

type IndicatorDocumentStatus struct {
	AvailableReplicas int32 `json:"availableReplicas"`
}

IndicatorDocumentStatus is the status for a IndicatorDocument resource

func (*IndicatorDocumentStatus) DeepCopy

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

func (*IndicatorDocumentStatus) DeepCopyInto

func (in *IndicatorDocumentStatus) DeepCopyInto(out *IndicatorDocumentStatus)

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

type Layout

type Layout struct {
	Owner       string    `json:"owner"`
	Title       string    `json:"title"`
	Description string    `json:"description"`
	Sections    []Section `json:"sections"`
}

func (*Layout) DeepCopy

func (in *Layout) DeepCopy() *Layout

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

func (*Layout) DeepCopyInto

func (in *Layout) DeepCopyInto(out *Layout)

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

type Product

type Product struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

func (*Product) DeepCopy

func (in *Product) DeepCopy() *Product

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

func (*Product) DeepCopyInto

func (in *Product) DeepCopyInto(out *Product)

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

type Section

type Section struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Indicators  []string `json:"indicators"`
}

func (*Section) DeepCopy

func (in *Section) DeepCopy() *Section

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

func (*Section) DeepCopyInto

func (in *Section) DeepCopyInto(out *Section)

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

type Threshold

type Threshold struct {
	Level string   `json:"level,omitempty"`
	Lt    *float64 `json:"lt,omitempty"`
	Lte   *float64 `json:"lte,omitempty"`
	Eq    *float64 `json:"eq,omitempty"`
	Neq   *float64 `json:"neq,omitempty"`
	Gte   *float64 `json:"gte,omitempty"`
	Gt    *float64 `json:"gt,omitempty"`
}

func (*Threshold) DeepCopy

func (in *Threshold) DeepCopy() *Threshold

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

func (*Threshold) DeepCopyInto

func (in *Threshold) DeepCopyInto(out *Threshold)

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