[v3.2] Add grafana dashboard importing API (#11)
* Add API to import grafana templates to kubesphere dashboard * Merge and fix the latest codes from kubesphere #2501 Signed-off-by: zhu733756 <talonzhu@yunify.com>
This commit is contained in:
13
vendor/kubesphere.io/monitoring-dashboard/api/v1alpha2/time/dashboard_time_types.go
generated
vendored
Normal file
13
vendor/kubesphere.io/monitoring-dashboard/api/v1alpha2/time/dashboard_time_types.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// +kubebuilder:object:generate=true
|
||||
|
||||
package time
|
||||
|
||||
// Time ranges of the metrics for display
|
||||
type Time struct {
|
||||
// Start time in the format of `^now([+-][0-9]+[smhdwMy])?$`, eg. `now-1M`.
|
||||
// It denotes the end time is set to the last month since now.
|
||||
From string `json:"from,omitempty" json:"from,omitempty"`
|
||||
// End time in the format of `^now([+-][0-9]+[smhdwMy])?$`, eg. `now-1M`.
|
||||
// It denotes the start time is set to the last month since now.
|
||||
To string `json:"to,omitempty" json:"to,omitempty"`
|
||||
}
|
||||
38
vendor/kubesphere.io/monitoring-dashboard/api/v1alpha2/time/zz_generated.deepcopy.go
generated
vendored
Normal file
38
vendor/kubesphere.io/monitoring-dashboard/api/v1alpha2/time/zz_generated.deepcopy.go
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
// +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 time
|
||||
|
||||
import ()
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Time) DeepCopyInto(out *Time) {
|
||||
*out = *in
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Time.
|
||||
func (in *Time) DeepCopy() *Time {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(Time)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
Reference in New Issue
Block a user