Documentation ¶
Overview ¶
Copyright 2020 The KubeSphere authors.
Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2020 The KubeSphere authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Package v1alpha2 contains API Schema definitions for the monitoring v1alpha2 API group +kubebuilder:object:generate=true +groupName=monitoring.kubesphere.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "monitoring.kubesphere.io", Version: "v1alpha2"} // 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 ClusterDashboard ¶
type ClusterDashboard struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DashboardSpec `json:"spec,omitempty"` }
ClusterDashboard is the Schema for the culsterdashboards API
func (*ClusterDashboard) DeepCopy ¶
func (in *ClusterDashboard) DeepCopy() *ClusterDashboard
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDashboard.
func (*ClusterDashboard) DeepCopyInto ¶
func (in *ClusterDashboard) DeepCopyInto(out *ClusterDashboard)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDashboard) DeepCopyObject ¶
func (in *ClusterDashboard) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDashboardList ¶
type ClusterDashboardList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterDashboard `json:"items"` }
ClusterDashboardList contains a list of ClusterDashboard
func (*ClusterDashboardList) DeepCopy ¶
func (in *ClusterDashboardList) DeepCopy() *ClusterDashboardList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDashboardList.
func (*ClusterDashboardList) DeepCopyInto ¶
func (in *ClusterDashboardList) DeepCopyInto(out *ClusterDashboardList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDashboardList) DeepCopyObject ¶
func (in *ClusterDashboardList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Dashboard ¶
type Dashboard struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DashboardSpec `json:"spec,omitempty"` }
Dashboard is the Schema for the dashboards API
func (*Dashboard) ConvertFrom ¶
func (dst *Dashboard) ConvertFrom(srcRaw conversion.Hub) error
func (*Dashboard) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Dashboard.
func (*Dashboard) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Dashboard) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DashboardList ¶
type DashboardList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Dashboard `json:"items"` }
DashboardList contains a list of Dashboard
func (*DashboardList) DeepCopy ¶
func (in *DashboardList) DeepCopy() *DashboardList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardList.
func (*DashboardList) DeepCopyInto ¶
func (in *DashboardList) DeepCopyInto(out *DashboardList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DashboardList) DeepCopyObject ¶
func (in *DashboardList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DashboardSpec ¶
type DashboardSpec struct { ID uint `json:"id,omitempty" ` UID string `json:"uid,omitempty" ` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Editable bool `json:"editable,omitempty"` Tags []string `json:"tags,omitempty"` AutoRefresh string `json:"auto_refresh,omitempty"` Timezone string `json:"timezone,omitempty"` // Annotations Annotations []ants.Annotation `json:"annotations,omitempty"` // Time range Time time.Time `json:"time,omitempty"` Panels []*panels.Panel `json:"panels,omitempty"` // // Templating variables Templatings []templatings.TemplateVar `json:"templatings,omitempty"` }
DashboardSpec defines the desired state of Dashboard
func (*DashboardSpec) DeepCopy ¶
func (in *DashboardSpec) DeepCopy() *DashboardSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardSpec.
func (*DashboardSpec) DeepCopyInto ¶
func (in *DashboardSpec) DeepCopyInto(out *DashboardSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.