mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
37 lines
637 B
CUE
37 lines
637 B
CUE
|
package core
|
||
|
|
||
|
timeInterval: {
|
||
|
kind: "TimeInterval"
|
||
|
group: "notifications"
|
||
|
apiResource: {
|
||
|
groupOverride: "notifications.alerting.grafana.app"
|
||
|
}
|
||
|
codegen: {
|
||
|
frontend: false
|
||
|
backend: true
|
||
|
}
|
||
|
pluralName: "TimeIntervals"
|
||
|
current: "v0alpha1"
|
||
|
versions: {
|
||
|
"v0alpha1": {
|
||
|
schema: {
|
||
|
#TimeRange: {
|
||
|
start_time: string
|
||
|
end_time: string
|
||
|
}
|
||
|
#Interval: {
|
||
|
times?: [...#TimeRange]
|
||
|
weekdays?: [...string]
|
||
|
days_of_month?: [...string]
|
||
|
months?: [...string]
|
||
|
years?: [...string]
|
||
|
location?: string
|
||
|
}
|
||
|
spec: {
|
||
|
name: string
|
||
|
time_intervals: [...#Interval]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|