Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the monitor v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/Tencent/bk-bcs/bcs-mesos/pkg/apis/monitor +k8s:defaulter-gen=TypeMeta +groupName=monitor.tencent.com
Package v1 contains API Schema definitions for the monitor v1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/Tencent/bk-bcs/bcs-mesos/pkg/apis/monitor +k8s:defaulter-gen=TypeMeta +groupName=monitor.tencent.com
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type Endpoint
- type LabelSelector
- type ServiceMonitor
- func (in *ServiceMonitor) DeepCopy() *ServiceMonitor
- func (in *ServiceMonitor) DeepCopyInto(out *ServiceMonitor)
- func (in *ServiceMonitor) DeepCopyObject() runtime.Object
- func (s *ServiceMonitor) GetSelector() (labels.Requirements, error)
- func (s *ServiceMonitor) GetUuid() string
- func (s *ServiceMonitor) Match(labels map[string]string) bool
- type ServiceMonitorList
- type ServiceMonitorSpec
- type ServiceMonitorStatus
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "monitor.tencent.com", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type Endpoint ¶
type Endpoint struct { Port string `json:"port,omitempty"` Path string `json:"path,omitempty"` Interval string `json:"interval,omitempty"` Params map[string][]string `json:"params,omitempty"` }
Endpoint collecte enpoint path information
func (*Endpoint) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.
func (*Endpoint) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LabelSelector ¶
LabelSelector selector for service
func (*LabelSelector) DeepCopy ¶
func (in *LabelSelector) DeepCopy() *LabelSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.
func (*LabelSelector) DeepCopyInto ¶
func (in *LabelSelector) DeepCopyInto(out *LabelSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceMonitor ¶
type ServiceMonitor struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceMonitorSpec `json:"spec,omitempty"` Status ServiceMonitorStatus `json:"status,omitempty"` }
ServiceMonitor is the Schema for the servicemonitors API +k8s:openapi-gen=true
func (*ServiceMonitor) DeepCopy ¶
func (in *ServiceMonitor) DeepCopy() *ServiceMonitor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitor.
func (*ServiceMonitor) DeepCopyInto ¶
func (in *ServiceMonitor) DeepCopyInto(out *ServiceMonitor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceMonitor) DeepCopyObject ¶
func (in *ServiceMonitor) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceMonitor) GetSelector ¶
func (s *ServiceMonitor) GetSelector() (labels.Requirements, error)
GetSelector get k8s selector implementation
type ServiceMonitorList ¶
type ServiceMonitorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ServiceMonitor `json:"items"` }
ServiceMonitorList contains a list of ServiceMonitor
func (*ServiceMonitorList) DeepCopy ¶
func (in *ServiceMonitorList) DeepCopy() *ServiceMonitorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorList.
func (*ServiceMonitorList) DeepCopyInto ¶
func (in *ServiceMonitorList) DeepCopyInto(out *ServiceMonitorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceMonitorList) DeepCopyObject ¶
func (in *ServiceMonitorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceMonitorSpec ¶
type ServiceMonitorSpec struct { Endpoints []Endpoint `json:"endpoints,omitempty"` Selector LabelSelector `json:"selector,omitempty"` }
ServiceMonitorSpec defines the desired state of ServiceMonitor
func (*ServiceMonitorSpec) DeepCopy ¶
func (in *ServiceMonitorSpec) DeepCopy() *ServiceMonitorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorSpec.
func (*ServiceMonitorSpec) DeepCopyInto ¶
func (in *ServiceMonitorSpec) DeepCopyInto(out *ServiceMonitorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceMonitorStatus ¶
type ServiceMonitorStatus struct { }
ServiceMonitorStatus defines the observed state of ServiceMonitor
func (*ServiceMonitorStatus) DeepCopy ¶
func (in *ServiceMonitorStatus) DeepCopy() *ServiceMonitorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceMonitorStatus.
func (*ServiceMonitorStatus) DeepCopyInto ¶
func (in *ServiceMonitorStatus) DeepCopyInto(out *ServiceMonitorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.