2d386e6704
* create notifications module and generate models * switch template group to app models * switch time intervals to use app models * switch receiver to use app models * switch routing tree to use app models * move schema registration to resource packages * fix package names to match app * fix codeowners * fix UI to use metadata.name instead of uid * update dockerfile * move generated models to pkg * remove provenance from field selector * move client factories to test files * rename GenericClient to TypedClient
40 lines
683 B
CUE
40 lines
683 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]
|
|
}
|
|
}
|
|
selectableFields: [
|
|
"spec.name",
|
|
]
|
|
}
|
|
}
|
|
} |