mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
39 lines
872 B
Go
39 lines
872 B
Go
|
|
package v0alpha1
|
||
|
|
|
||
|
|
// Interval defines model for Interval.
|
||
|
|
// +k8s:openapi-gen=true
|
||
|
|
type Interval struct {
|
||
|
|
// +listType=atomic
|
||
|
|
DaysOfMonth []string `json:"days_of_month,omitempty"`
|
||
|
|
|
||
|
|
// +listType=atomic
|
||
|
|
Location *string `json:"location,omitempty"`
|
||
|
|
|
||
|
|
// +listType=atomic
|
||
|
|
Months []string `json:"months,omitempty"`
|
||
|
|
|
||
|
|
// +listType=atomic
|
||
|
|
Times []TimeRange `json:"times,omitempty"`
|
||
|
|
|
||
|
|
// +listType=atomic
|
||
|
|
Weekdays []string `json:"weekdays,omitempty"`
|
||
|
|
|
||
|
|
// +listType=atomic
|
||
|
|
Years []string `json:"years,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// Spec defines model for Spec.
|
||
|
|
// +k8s:openapi-gen=true
|
||
|
|
type TimeIntervalSpec struct {
|
||
|
|
Name string `json:"name"`
|
||
|
|
// +listType=atomic
|
||
|
|
TimeIntervals []Interval `json:"time_intervals"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// TimeRange defines model for TimeRange.
|
||
|
|
// +k8s:openapi-gen=true
|
||
|
|
type TimeRange struct {
|
||
|
|
EndTime string `json:"end_time"`
|
||
|
|
StartTime string `json:"start_time"`
|
||
|
|
}
|