monitoring dashboard dependency vendor

Signed-off-by: junotx <junotx@126.com>
This commit is contained in:
junotx
2021-03-12 16:58:19 +08:00
parent 4f5c1378f8
commit 0c1f994695
462 changed files with 44469 additions and 51096 deletions

View File

@@ -0,0 +1,15 @@
// +kubebuilder:object:generate=true
package panels
// Query editor options
type Target struct {
// Input for fetching metrics.
Expression string `json:"expr,omitempty"`
// Legend format for outputs. You can make a dynamic legend with templating variables.
LegendFormat string `json:"legendFormat,omitempty"`
// Reference ID
RefID int64 `json:"refId,omitempty"`
// Set series time interval
Step string `json:"step,omitempty"`
}

View File

@@ -0,0 +1,34 @@
// +kubebuilder:object:generate=true
package panels
// Graph visualizes range query results into a linear graph
type Graph struct {
// Name of the graph panel
Title string `json:"title,omitempty"`
// Must be `graph`
Type string `json:"type"`
// Panel ID
Id int64 `json:"id,omitempty"`
// Panel description
Description string `json:"description,omitempty"`
// A collection of queries
Targets []Target `json:"targets,omitempty"`
// Display as a bar chart
Bars bool `json:"bars,omitempty"`
// Set series color
Colors []string `json:"colors,omitempty"`
// Display as a line chart
Lines bool `json:"lines,omitempty"`
// Display as a stacked chart
Stack bool `json:"stack,omitempty"`
// Y-axis options
Yaxes []Yaxis `json:"yaxes,omitempty"`
}
type Yaxis struct {
// Limit the decimal numbers
Decimals int64 `json:"decimals,omitempty"`
// Display unit
Format string `json:"format,omitempty"`
}

View File

@@ -0,0 +1,13 @@
// +kubebuilder:object:generate=true
package panels
// Row groups relevant charts
type Row struct {
// Name of the row panel
Title string `json:"title,omitempty"`
// Must be `row`
Type string `json:"type"`
// Panel ID
Id int64 `json:"id,omitempty"`
}

View File

@@ -0,0 +1,19 @@
// +kubebuilder:object:generate=true
package panels
// SingleStat shows instant query result
type SingleStat struct {
// Name of the signlestat panel
Title string `json:"title,omitempty"`
// Must be `singlestat`
Type string `json:"type"`
// Panel ID
Id int64 `json:"id,omitempty"`
// A collection of queries
Targets []Target `json:"targets,omitempty"`
// Limit the decimal numbers
Decimals int64 `json:"decimals,omitempty"`
// Display unit
Format string `json:"format,omitempty"`
}

View File

@@ -0,0 +1,118 @@
// +build !ignore_autogenerated
/*
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.
*/
// Code generated by controller-gen. DO NOT EDIT.
package panels
import ()
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Graph) DeepCopyInto(out *Graph) {
*out = *in
if in.Targets != nil {
in, out := &in.Targets, &out.Targets
*out = make([]Target, len(*in))
copy(*out, *in)
}
if in.Colors != nil {
in, out := &in.Colors, &out.Colors
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.Yaxes != nil {
in, out := &in.Yaxes, &out.Yaxes
*out = make([]Yaxis, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Graph.
func (in *Graph) DeepCopy() *Graph {
if in == nil {
return nil
}
out := new(Graph)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Row) DeepCopyInto(out *Row) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Row.
func (in *Row) DeepCopy() *Row {
if in == nil {
return nil
}
out := new(Row)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SingleStat) DeepCopyInto(out *SingleStat) {
*out = *in
if in.Targets != nil {
in, out := &in.Targets, &out.Targets
*out = make([]Target, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SingleStat.
func (in *SingleStat) DeepCopy() *SingleStat {
if in == nil {
return nil
}
out := new(SingleStat)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Target) DeepCopyInto(out *Target) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Target.
func (in *Target) DeepCopy() *Target {
if in == nil {
return nil
}
out := new(Target)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Yaxis) DeepCopyInto(out *Yaxis) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Yaxis.
func (in *Yaxis) DeepCopy() *Yaxis {
if in == nil {
return nil
}
out := new(Yaxis)
in.DeepCopyInto(out)
return out
}