v1alpha1

package
v0.0.0-...-c0caad5 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ferulax.jurycu.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 Probix

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

	Spec   ProbixSpec   `json:"spec,omitempty"`
	Status ProbixStatus `json:"status,omitempty"`
}

Probix is the Schema for the probixes API

func (*Probix) DeepCopy

func (in *Probix) DeepCopy() *Probix

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

func (*Probix) DeepCopyInto

func (in *Probix) DeepCopyInto(out *Probix)

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

func (*Probix) DeepCopyObject

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

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

type ProbixList

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

ProbixList contains a list of Probix

func (*ProbixList) DeepCopy

func (in *ProbixList) DeepCopy() *ProbixList

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

func (*ProbixList) DeepCopyInto

func (in *ProbixList) DeepCopyInto(out *ProbixList)

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

func (*ProbixList) DeepCopyObject

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

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

type ProbixSpec

type ProbixSpec struct {
	Targets       []ProbixTarget `json:"targets,omitempty"`
	Interval      string         `json:"interval,omitempty"`
	ScrapeTimeout string         `json:"scrapeTimeout,omitempty"`
}

ProbixSpec defines the desired state of Probix

func (*ProbixSpec) DeepCopy

func (in *ProbixSpec) DeepCopy() *ProbixSpec

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

func (*ProbixSpec) DeepCopyInto

func (in *ProbixSpec) DeepCopyInto(out *ProbixSpec)

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

type ProbixStatus

type ProbixStatus struct {
	//数据拉取状态
	Status Result `json:"status,omitempty"`
	//备注信息
	Message string `json:"message,omitempty"`
}

ProbixStatus defines the observed state of Probix

func (*ProbixStatus) DeepCopy

func (in *ProbixStatus) DeepCopy() *ProbixStatus

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

func (*ProbixStatus) DeepCopyInto

func (in *ProbixStatus) DeepCopyInto(out *ProbixStatus)

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

type ProbixTarget

type ProbixTarget struct {
	//完整的target路径
	MetricsName string `json:"metricsName,omitempty"`
	MetricsHelp string `json:"metricsHelp,omitempty"`

	Target string `json:"target,omitempty"`
	//请求方法,默认为GET
	Method string `json:"method,omitempty"`
	//当请求参数为POST时,可以传入body参数,GET请求只支持path传参
	Body string `json:"body,omitempty"`
}

func (*ProbixTarget) DeepCopy

func (in *ProbixTarget) DeepCopy() *ProbixTarget

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

func (*ProbixTarget) DeepCopyInto

func (in *ProbixTarget) DeepCopyInto(out *ProbixTarget)

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

type Result

type Result string
const (
	SUCCESS Result = "SUCCESS"
	PENDING Result = "PENDING"
	FAILED  Result = "FAILED"
)

Jump to

Keyboard shortcuts

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