be734e970e
* update Scenes libraries --------- Co-authored-by: idastambuk <ida.stambuk@grafana.com>
5606 lines
202 KiB
Go
5606 lines
202 KiB
Go
//go:build !ignore_autogenerated
|
||
// +build !ignore_autogenerated
|
||
|
||
// SPDX-License-Identifier: AGPL-3.0-only
|
||
|
||
// Code generated by openapi-gen. DO NOT EDIT.
|
||
|
||
package v2alpha1
|
||
|
||
import (
|
||
common "k8s.io/kube-openapi/pkg/common"
|
||
spec "k8s.io/kube-openapi/pkg/validation/spec"
|
||
)
|
||
|
||
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition {
|
||
return map[string]common.OpenAPIDefinition{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.AnnotationActions": schema_pkg_apis_dashboard_v2alpha1_AnnotationActions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.AnnotationPermission": schema_pkg_apis_dashboard_v2alpha1_AnnotationPermission(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.Dashboard": schema_pkg_apis_dashboard_v2alpha1_Dashboard(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAccess": schema_pkg_apis_dashboard_v2alpha1_DashboardAccess(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAction": schema_pkg_apis_dashboard_v2alpha1_DashboardAction(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardActionVariable": schema_pkg_apis_dashboard_v2alpha1_DashboardActionVariable(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdHocFilterWithLabels": schema_pkg_apis_dashboard_v2alpha1_DashboardAdHocFilterWithLabels(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdhocVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardAdhocVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdhocVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardAdhocVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationEventFieldMapping": schema_pkg_apis_dashboard_v2alpha1_DashboardAnnotationEventFieldMapping(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationPanelFilter": schema_pkg_apis_dashboard_v2alpha1_DashboardAnnotationPanelFilter(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationQueryKind": schema_pkg_apis_dashboard_v2alpha1_DashboardAnnotationQueryKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationQuerySpec": schema_pkg_apis_dashboard_v2alpha1_DashboardAnnotationQuerySpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutItemKind": schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridLayoutItemKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutItemSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridLayoutItemSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutKind": schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridLayoutKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridLayoutSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridRepeatOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridRepeatOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardClient": schema_pkg_apis_dashboard_v2alpha1_DashboardClient(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingDataKind": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingDataKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingDataSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingDataSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupKind": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingGroupKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingGroupSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingTimeRangeSizeKind": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingTimeRangeSizeKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingTimeRangeSizeSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingTimeRangeSizeSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableKindOrConditionalRenderingDataKindOrConditionalRenderingTimeRangeSizeKind": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingVariableKindOrConditionalRenderingDataKindOrConditionalRenderingTimeRangeSizeKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConstantVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardConstantVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConstantVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardConstantVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConversionStatus": schema_pkg_apis_dashboard_v2alpha1_DashboardConversionStatus(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardCustomVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardCustomVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardCustomVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardCustomVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDashboardLink": schema_pkg_apis_dashboard_v2alpha1_DashboardDashboardLink(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataLink": schema_pkg_apis_dashboard_v2alpha1_DashboardDataLink(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataQueryKind": schema_pkg_apis_dashboard_v2alpha1_DashboardDataQueryKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef": schema_pkg_apis_dashboard_v2alpha1_DashboardDataSourceRef(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataTransformerConfig": schema_pkg_apis_dashboard_v2alpha1_DashboardDataTransformerConfig(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDatasourceVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardDatasourceVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDatasourceVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardDatasourceVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDynamicConfigValue": schema_pkg_apis_dashboard_v2alpha1_DashboardDynamicConfigValue(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardElementReference": schema_pkg_apis_dashboard_v2alpha1_DashboardElementReference(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFetchOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardFetchOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldColor": schema_pkg_apis_dashboard_v2alpha1_DashboardFieldColor(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldConfig": schema_pkg_apis_dashboard_v2alpha1_DashboardFieldConfig(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldConfigSource": schema_pkg_apis_dashboard_v2alpha1_DashboardFieldConfigSource(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutItemKind": schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutItemKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutItemSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutItemSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKind": schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKindOrAutoGridLayoutKindOrTabsLayoutKindOrRowsLayoutKind": schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutKindOrAutoGridLayoutKindOrTabsLayoutKindOrRowsLayoutKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKindOrRowsLayoutKindOrAutoGridLayoutKindOrTabsLayoutKind": schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutKindOrRowsLayoutKindOrAutoGridLayoutKindOrTabsLayoutKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGroupByVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardGroupByVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGroupByVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardGroupByVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardInfinityOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardInfinityOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardIntervalVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardIntervalVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardIntervalVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardIntervalVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardJSONCodec": schema_pkg_apis_dashboard_v2alpha1_DashboardJSONCodec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelKind": schema_pkg_apis_dashboard_v2alpha1_DashboardLibraryPanelKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelKindSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardLibraryPanelKindSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelRef": schema_pkg_apis_dashboard_v2alpha1_DashboardLibraryPanelRef(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardList": schema_pkg_apis_dashboard_v2alpha1_DashboardList(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMatcherConfig": schema_pkg_apis_dashboard_v2alpha1_DashboardMatcherConfig(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMetadata": schema_pkg_apis_dashboard_v2alpha1_DashboardMetadata(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMetricFindValue": schema_pkg_apis_dashboard_v2alpha1_DashboardMetricFindValue(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelKind": schema_pkg_apis_dashboard_v2alpha1_DashboardPanelKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelKindOrLibraryPanelKind": schema_pkg_apis_dashboard_v2alpha1_DashboardPanelKindOrLibraryPanelKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelQueryKind": schema_pkg_apis_dashboard_v2alpha1_DashboardPanelQueryKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelQuerySpec": schema_pkg_apis_dashboard_v2alpha1_DashboardPanelQuerySpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardPanelSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryGroupKind": schema_pkg_apis_dashboard_v2alpha1_DashboardQueryGroupKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryGroupSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardQueryGroupSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryOptionsSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardQueryOptionsSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardQueryVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableKindOrTextVariableKindOrConstantVariableKindOrDatasourceVariableKindOrIntervalVariableKindOrCustomVariableKindOrGroupByVariableKindOrAdhocVariableKindOrSwitchVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardQueryVariableKindOrTextVariableKindOrConstantVariableKindOrDatasourceVariableKindOrIntervalVariableKindOrCustomVariableKindOrGroupByVariableKindOrAdhocVariableKindOrSwitchVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardQueryVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRangeMap": schema_pkg_apis_dashboard_v2alpha1_DashboardRangeMap(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRegexMap": schema_pkg_apis_dashboard_v2alpha1_DashboardRegexMap(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRepeatOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardRepeatOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowRepeatOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardRowRepeatOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutKind": schema_pkg_apis_dashboard_v2alpha1_DashboardRowsLayoutKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutRowKind": schema_pkg_apis_dashboard_v2alpha1_DashboardRowsLayoutRowKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutRowSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardRowsLayoutRowSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardRowsLayoutSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSpecialValueMap": schema_pkg_apis_dashboard_v2alpha1_DashboardSpecialValueMap(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStatus": schema_pkg_apis_dashboard_v2alpha1_DashboardStatus(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStringOrArrayOfString": schema_pkg_apis_dashboard_v2alpha1_DashboardStringOrArrayOfString(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStringOrFloat64": schema_pkg_apis_dashboard_v2alpha1_DashboardStringOrFloat64(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSwitchVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardSwitchVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSwitchVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardSwitchVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabRepeatOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardTabRepeatOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutKind": schema_pkg_apis_dashboard_v2alpha1_DashboardTabsLayoutKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardTabsLayoutSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutTabKind": schema_pkg_apis_dashboard_v2alpha1_DashboardTabsLayoutTabKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutTabSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardTabsLayoutTabSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTextVariableKind": schema_pkg_apis_dashboard_v2alpha1_DashboardTextVariableKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTextVariableSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardTextVariableSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardThreshold": schema_pkg_apis_dashboard_v2alpha1_DashboardThreshold(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardThresholdsConfig": schema_pkg_apis_dashboard_v2alpha1_DashboardThresholdsConfig(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTimeRangeOption": schema_pkg_apis_dashboard_v2alpha1_DashboardTimeRangeOption(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTimeSettingsSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardTimeSettingsSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTransformationKind": schema_pkg_apis_dashboard_v2alpha1_DashboardTransformationKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1ActionStyle": schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1ActionStyle(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1FieldConfigSourceOverrides": schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1FieldConfigSourceOverrides(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1RangeMapOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1RangeMapOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1RegexMapOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1RegexMapOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1SpecialValueMapOptions": schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1SpecialValueMapOptions(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMap": schema_pkg_apis_dashboard_v2alpha1_DashboardValueMap(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMapOrRangeMapOrRegexMapOrSpecialValueMap": schema_pkg_apis_dashboard_v2alpha1_DashboardValueMapOrRangeMapOrRegexMapOrSpecialValueMap(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult": schema_pkg_apis_dashboard_v2alpha1_DashboardValueMappingResult(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption": schema_pkg_apis_dashboard_v2alpha1_DashboardVariableOption(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVersionInfo": schema_pkg_apis_dashboard_v2alpha1_DashboardVersionInfo(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVersionList": schema_pkg_apis_dashboard_v2alpha1_DashboardVersionList(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVizConfigKind": schema_pkg_apis_dashboard_v2alpha1_DashboardVizConfigKind(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVizConfigSpec": schema_pkg_apis_dashboard_v2alpha1_DashboardVizConfigSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardWithAccessInfo": schema_pkg_apis_dashboard_v2alpha1_DashboardWithAccessInfo(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanel": schema_pkg_apis_dashboard_v2alpha1_LibraryPanel(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanelList": schema_pkg_apis_dashboard_v2alpha1_LibraryPanelList(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanelSpec": schema_pkg_apis_dashboard_v2alpha1_LibraryPanelSpec(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanelStatus": schema_pkg_apis_dashboard_v2alpha1_LibraryPanelStatus(ref),
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.VersionsQueryOptions": schema_pkg_apis_dashboard_v2alpha1_VersionsQueryOptions(ref),
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_AnnotationActions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"canAdd": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"canEdit": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"canDelete": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"canAdd", "canEdit", "canDelete"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_AnnotationPermission(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"dashboard": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.AnnotationActions"),
|
||
},
|
||
},
|
||
"organization": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.AnnotationActions"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"dashboard", "organization"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.AnnotationActions"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_Dashboard(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"apiVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"metadata": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Spec is the spec of the Dashboard",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSpec"),
|
||
},
|
||
},
|
||
"status": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStatus"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"metadata", "spec", "status"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSpec", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAccess(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Information about how the requesting user can use a given dashboard",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"slug": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Metadata fields",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"url": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"isPublic": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"canSave": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The permissions part",
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"canEdit": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"canAdmin": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"canStar": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"canDelete": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"annotationsPermissions": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.AnnotationPermission"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"isPublic", "canSave", "canEdit", "canAdmin", "canStar", "canDelete", "annotationsPermissions"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.AnnotationPermission"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAction(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"fetch": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFetchOptions"),
|
||
},
|
||
},
|
||
"infinity": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardInfinityOptions"),
|
||
},
|
||
},
|
||
"confirmation": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"oneClick": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"variables": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardActionVariable"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"style": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1ActionStyle"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"type", "title"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardActionVariable", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFetchOptions", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardInfinityOptions", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1ActionStyle"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardActionVariable(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"key": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"key", "name", "type"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAdHocFilterWithLabels(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Define the AdHocFilterWithLabels type",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"key": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"operator": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"values": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"keyLabel": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"valueLabels": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"forceEdit": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"origin": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"condition": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "@deprecated",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"key", "operator", "value"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAdhocVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Adhoc variable kind",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdhocVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdhocVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAdhocVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Adhoc variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"datasource": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef"),
|
||
},
|
||
},
|
||
"baseFilters": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdHocFilterWithLabels"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"filters": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdHocFilterWithLabels"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"defaultKeys": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMetricFindValue"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"allowCustomValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "baseFilters", "filters", "defaultKeys", "hide", "skipUrlSync", "allowCustomValue"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdHocFilterWithLabels", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMetricFindValue"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAnnotationEventFieldMapping(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Annotation event field mapping. Defines how to map a data frame field to an annotation event field.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"source": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Source type for the field value",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Constant value to use when source is \"text\"",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"regex": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Regular expression to apply to the field value",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAnnotationPanelFilter(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"exclude": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Should the specified panels be included or excluded",
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"ids": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Panel IDs that should be included or excluded",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"ids"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAnnotationQueryKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationQuerySpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationQuerySpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAnnotationQuerySpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"datasource": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef"),
|
||
},
|
||
},
|
||
"query": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataQueryKind"),
|
||
},
|
||
},
|
||
"enable": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"iconColor": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"builtIn": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"filter": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationPanelFilter"),
|
||
},
|
||
},
|
||
"mappings": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Mappings define how to convert data frame fields to annotation event fields.",
|
||
Type: []string{"object"},
|
||
AdditionalProperties: &spec.SchemaOrBool{
|
||
Allows: true,
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationEventFieldMapping"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"legacyOptions": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Catch-all field for datasource-specific properties",
|
||
Type: []string{"object"},
|
||
AdditionalProperties: &spec.SchemaOrBool{
|
||
Allows: true,
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"enable", "hide", "iconColor", "name"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationEventFieldMapping", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationPanelFilter", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataQueryKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridLayoutItemKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutItemSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutItemSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridLayoutItemSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"element": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardElementReference"),
|
||
},
|
||
},
|
||
"repeat": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridRepeatOptions"),
|
||
},
|
||
},
|
||
"conditionalRendering": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupKind"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"element"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridRepeatOptions", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardElementReference"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridLayoutKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridLayoutSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"maxColumnCount": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"columnWidthMode": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"columnWidth": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"rowHeightMode": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"rowHeight": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"fillScreen": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"items": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutItemKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"columnWidthMode", "rowHeightMode", "items"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutItemKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardAutoGridRepeatOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"mode": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"mode", "value"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardClient(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"client": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana-app-sdk/resource.TypedClient[T,L]"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"client"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana-app-sdk/resource.TypedClient[T,L]"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingDataKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingDataSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingDataSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingDataSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"value"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingGroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingGroupSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"visibility": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"condition": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"items": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableKindOrConditionalRenderingDataKindOrConditionalRenderingTimeRangeSizeKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"visibility", "condition", "items"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableKindOrConditionalRenderingDataKindOrConditionalRenderingTimeRangeSizeKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingTimeRangeSizeKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingTimeRangeSizeSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingTimeRangeSizeSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingTimeRangeSizeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"value"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingVariableKindOrConditionalRenderingDataKindOrConditionalRenderingTimeRangeSizeKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"ConditionalRenderingVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableKind"),
|
||
},
|
||
},
|
||
"ConditionalRenderingDataKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingDataKind"),
|
||
},
|
||
},
|
||
"ConditionalRenderingTimeRangeSizeKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingTimeRangeSizeKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingDataKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingTimeRangeSizeKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingVariableKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConditionalRenderingVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"variable": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"operator": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"variable", "operator", "value"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConstantVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Constant variable kind",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConstantVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConstantVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConstantVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Constant variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"query": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"current": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "query", "current", "hide", "skipUrlSync"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardConversionStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "ConversionStatus is the status of the conversion of the dashboard.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"failed": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Whether from another version has failed. If true, means that the dashboard is not valid, and the caller should instead fetch the stored version.",
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"error": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The error message from the conversion. Empty if the conversion has not failed.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"storedVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The version which was stored when the dashboard was created / updated. Fetching this version should always succeed.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"source": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The original value map[string]any",
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"failed"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardCustomVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Custom variable kind",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardCustomVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardCustomVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardCustomVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Custom variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"query": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"current": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"multi": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"includeAll": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"allValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"allowCustomValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"valuesFormat": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "query", "current", "options", "multi", "includeAll", "hide", "skipUrlSync", "allowCustomValue"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardDashboardLink(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Links with references to other dashboards or external resources",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Title to display with the link",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource) FIXME: The type is generated as `type: DashboardLinkType | dashboardLinkType.Link;` but it should be `type: DashboardLinkType`",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"icon": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Icon name to be displayed with the link",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"tooltip": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Tooltip to display when the user hovers their mouse over it",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"url": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Link URL. Only required/valid if the type is link",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"tags": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"asDropdown": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "If true, all dashboards links will be displayed in a dropdown. If false, all dashboards links will be displayed side by side. Only valid if the type is dashboards",
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"targetBlank": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "If true, the link will be opened in a new tab",
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"includeVars": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "If true, includes current template variables values in the link as query params",
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"keepTime": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "If true, includes current time range in the link as query params",
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"placement": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Placement can be used to display the link somewhere else on the dashboard other than above the visualisations.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"title", "type", "icon", "tooltip", "tags", "asDropdown", "targetBlank", "includeVars", "keepTime"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardDataLink(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"url": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"targetBlank": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"title", "url"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardDataQueryKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The kind of a DataQueryKind is the datasource type",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
AdditionalProperties: &spec.SchemaOrBool{
|
||
Allows: true,
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardDataSourceRef(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The plugin type-id",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"uid": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Specific datasource instance",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardDataTransformerConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Transformations allow to manipulate data returned by a query before the system applies a visualization. Using transformations you can: rename fields, join time series data, perform mathematical operations across queries, use the output of one transformation as the input to another transformation, etc.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"id": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Unique identifier of transformer",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"disabled": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Disabled transformations are skipped",
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"filter": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Optional frame matcher. When missing it will be applied to all results",
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMatcherConfig"),
|
||
},
|
||
},
|
||
"topic": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Where to pull DataFrames from as input to transformation",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Options to be passed to the transformer Valid options depend on the transformer id",
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"id", "options"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMatcherConfig"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardDatasourceVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Datasource variable kind",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDatasourceVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDatasourceVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardDatasourceVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Datasource variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"pluginId": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"refresh": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"regex": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"current": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"multi": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"includeAll": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"allValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"allowCustomValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "pluginId", "refresh", "regex", "current", "options", "multi", "includeAll", "hide", "skipUrlSync", "allowCustomValue"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardDynamicConfigValue(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"id": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"id"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardElementReference(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "name"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardFetchOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"method": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"url": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"body": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"queryParams": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "These are 2D arrays of strings, each representing a key-value pair We are defining them this way because we can't generate a go struct that that would have exactly two strings in each sub-array",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"headers": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"method", "url"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardFieldColor(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Map a field to a color.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"mode": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The main color scheme mode.",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"fixedColor": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The fixed color value for fixed or shades color modes.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"seriesBy": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Some visualizations need to know how to assign a series color from by value color schemes.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"mode"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardFieldConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. Each column within this structure is called a field. A field can represent a single time series or table column. Field options allow you to change how the data is displayed in your visualizations.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"displayName": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The display value for this field. This supports template variables blank is auto",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"displayNameFromDS": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "This can be used by data sources that return and explicit naming structure for values and labels When this property is configured, this value is used rather than the default naming strategy.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Human readable field metadata",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"path": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "An explicit path to the field in the datasource. When the frame meta includes a path, This will default to `${frame.meta.path}/${field.name}\n\nWhen defined, this value can be used as an identifier within the datasource scope, and may be used to update the results",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"writeable": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "True if data source can write a value to the path. Auth/authz are supported separately",
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"filterable": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "True if data source field supports ad-hoc filters",
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"unit": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Unit a field should use. The unit you select is applied to all fields except time. You can use the units ID availables in Grafana or a custom unit. Available units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts As custom unit, you can use the following formats: `suffix:<suffix>` for custom unit that should go after value. `prefix:<prefix>` for custom unit that should go before value. `time:<format>` For custom date time formats type for example `time:YYYY-MM-DD`. `si:<base scale><unit characters>` for custom SI units. For example: `si: mF`. This one is a bit more advanced as you can specify both a unit and the source data scale. So if your source data is represented as milli (thousands of) something prefix the unit with that SI scale character. `count:<unit>` for a custom count unit. `currency:<unit>` for custom a currency unit.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"decimals": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Specify the number of decimals Grafana includes in the rendered value. If you leave this field blank, Grafana automatically truncates the number of decimals based on the value. For example 1.1234 will display as 1.12 and 100.456 will display as 100. To display all decimals, set the unit to `String`.",
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"min": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.",
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"max": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.",
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"mappings": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Convert input values into a display string",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMapOrRangeMapOrRegexMapOrSpecialValueMap"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"thresholds": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Map numeric values to states",
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardThresholdsConfig"),
|
||
},
|
||
},
|
||
"color": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Panel color configuration",
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldColor"),
|
||
},
|
||
},
|
||
"links": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The behavior when clicking on a result",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"actions": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Define interactive HTTP requests that can be triggered from data visualizations.",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAction"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"noValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Alternative to empty string",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"custom": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "custom is specified by the FieldConfig field in panel plugin schemas.",
|
||
Type: []string{"object"},
|
||
AdditionalProperties: &spec.SchemaOrBool{
|
||
Allows: true,
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAction", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldColor", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardThresholdsConfig", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMapOrRangeMapOrRegexMapOrSpecialValueMap"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardFieldConfigSource(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The data model used in Grafana, namely the data frame, is a columnar-oriented table structure that unifies both time series and table query results. Each column within this structure is called a field. A field can represent a single time series or table column. Field options allow you to change how the data is displayed in your visualizations.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"defaults": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Defaults are the options applied to all fields.",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldConfig"),
|
||
},
|
||
},
|
||
"overrides": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Overrides are the options applied to specific fields overriding the defaults.",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1FieldConfigSourceOverrides"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"defaults", "overrides"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldConfig", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1FieldConfigSourceOverrides"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutItemKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutItemSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutItemSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutItemSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"x": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"y": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"width": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"height": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"element": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "reference to a PanelKind from dashboard.spec.elements Expressed as JSON Schema reference",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardElementReference"),
|
||
},
|
||
},
|
||
"repeat": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRepeatOptions"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"x", "y", "width", "height", "element"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardElementReference", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRepeatOptions"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutKindOrAutoGridLayoutKindOrTabsLayoutKindOrRowsLayoutKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"GridLayoutKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKind"),
|
||
},
|
||
},
|
||
"AutoGridLayoutKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutKind"),
|
||
},
|
||
},
|
||
"TabsLayoutKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutKind"),
|
||
},
|
||
},
|
||
"RowsLayoutKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutKindOrRowsLayoutKindOrAutoGridLayoutKindOrTabsLayoutKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"GridLayoutKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKind"),
|
||
},
|
||
},
|
||
"RowsLayoutKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutKind"),
|
||
},
|
||
},
|
||
"AutoGridLayoutKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutKind"),
|
||
},
|
||
},
|
||
"TabsLayoutKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAutoGridLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardGridLayoutSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"items": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutItemKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"items"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutItemKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardGroupByVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Group variable kind",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGroupByVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGroupByVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardGroupByVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "GroupBy variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"datasource": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef"),
|
||
},
|
||
},
|
||
"defaultValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
"current": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"multi": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "current", "options", "multi", "hide", "skipUrlSync"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardInfinityOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"method": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"url": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"body": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"queryParams": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "These are 2D arrays of strings, each representing a key-value pair We are defining them this way because we can't generate a go struct that that would have exactly two strings in each sub-array",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"datasourceUid": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"headers": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"method", "url", "datasourceUid"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardIntervalVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Interval variable kind",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardIntervalVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardIntervalVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardIntervalVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Interval variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"query": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"current": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"auto": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"auto_min": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"auto_count": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"refresh": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "query", "current", "options", "auto", "auto_min", "auto_count", "refresh", "hide", "skipUrlSync"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardJSONCodec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "DashboardJSONCodec is an implementation of resource.Codec for kubernetes JSON encoding",
|
||
Type: []string{"object"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardLibraryPanelKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelKindSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelKindSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardLibraryPanelKindSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"id": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Panel ID for the library panel in the dashboard",
|
||
Default: 0,
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Title for the library panel in the dashboard",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"libraryPanel": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelRef"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"id", "title", "libraryPanel"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelRef"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardLibraryPanelRef(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "A library panel is a reusable panel that you can use in any dashboard. When you make a change to a library panel, that change propagates to all instances of where the panel is used. Library panels streamline reuse of panels across multiple dashboards.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Library panel name",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"uid": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Library panel uid",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "uid"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardList(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"apiVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"metadata": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
|
||
},
|
||
},
|
||
"items": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.Dashboard"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"metadata", "items"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.Dashboard", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardMatcherConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation. It comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"id": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The matcher id. This is used to find the matcher implementation from registry.",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The matcher options. This is specific to the matcher implementation.",
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"id"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "metadata contains embedded CommonMetadata and can be extended with custom string fields without external reference as using the CommonMetadata reference breaks thema codegen.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"updateTimestamp": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "date-time",
|
||
},
|
||
},
|
||
"createdBy": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"uid": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"creationTimestamp": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "date-time",
|
||
},
|
||
},
|
||
"deletionTimestamp": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "date-time",
|
||
},
|
||
},
|
||
"finalizers": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"resourceVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"generation": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"updatedBy": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"labels": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
AdditionalProperties: &spec.SchemaOrBool{
|
||
Allows: true,
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"updateTimestamp", "createdBy", "uid", "creationTimestamp", "finalizers", "resourceVersion", "generation", "updatedBy", "labels"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardMetricFindValue(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Define the MetricFindValue type",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"text": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStringOrFloat64"),
|
||
},
|
||
},
|
||
"group": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"expandable": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"text"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStringOrFloat64"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardPanelKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardPanelKindOrLibraryPanelKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"PanelKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelKind"),
|
||
},
|
||
},
|
||
"LibraryPanelKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardLibraryPanelKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardPanelQueryKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelQuerySpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelQuerySpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardPanelQuerySpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"query": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataQueryKind"),
|
||
},
|
||
},
|
||
"datasource": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef"),
|
||
},
|
||
},
|
||
"refId": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hidden": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"query", "refId", "hidden"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataQueryKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardPanelSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"id": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: 0,
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"links": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataLink"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"data": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryGroupKind"),
|
||
},
|
||
},
|
||
"vizConfig": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVizConfigKind"),
|
||
},
|
||
},
|
||
"transparent": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"id", "title", "description", "links", "data", "vizConfig"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataLink", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryGroupKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVizConfigKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardQueryGroupKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryGroupSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryGroupSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardQueryGroupSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"queries": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelQueryKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"transformations": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTransformationKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"queryOptions": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryOptionsSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"queries", "transformations", "queryOptions"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelQueryKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryOptionsSpec", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTransformationKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardQueryOptionsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"timeFrom": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"maxDataPoints": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"timeShift": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"queryCachingTTL": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"interval": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"cacheTimeout": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hideTimeOverride": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardQueryVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Query variable kind",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardQueryVariableKindOrTextVariableKindOrConstantVariableKindOrDatasourceVariableKindOrIntervalVariableKindOrCustomVariableKindOrGroupByVariableKindOrAdhocVariableKindOrSwitchVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"QueryVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableKind"),
|
||
},
|
||
},
|
||
"TextVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTextVariableKind"),
|
||
},
|
||
},
|
||
"ConstantVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConstantVariableKind"),
|
||
},
|
||
},
|
||
"DatasourceVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDatasourceVariableKind"),
|
||
},
|
||
},
|
||
"IntervalVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardIntervalVariableKind"),
|
||
},
|
||
},
|
||
"CustomVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardCustomVariableKind"),
|
||
},
|
||
},
|
||
"GroupByVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGroupByVariableKind"),
|
||
},
|
||
},
|
||
"AdhocVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdhocVariableKind"),
|
||
},
|
||
},
|
||
"SwitchVariableKind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSwitchVariableKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAdhocVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConstantVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardCustomVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDatasourceVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGroupByVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardIntervalVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSwitchVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTextVariableKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardQueryVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Query variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"current": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"refresh": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"datasource": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef"),
|
||
},
|
||
},
|
||
"query": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataQueryKind"),
|
||
},
|
||
},
|
||
"regex": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"regexApplyTo": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"sort": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"definition": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"multi": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"includeAll": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"allValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"placeholder": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"allowCustomValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"staticOptions": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"staticOptionsOrder": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "current", "hide", "refresh", "skipUrlSync", "query", "regex", "sort", "options", "multi", "includeAll", "allowCustomValue"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataQueryKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataSourceRef", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardRangeMap(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Maps numerical ranges to a display text and color. For example, if a value is within a certain range, you can configure a range value mapping to display Low or High rather than the number.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Range to match against and the result to apply when the value is within the range",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1RangeMapOptions"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"type", "options"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1RangeMapOptions"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardRegexMap(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Maps regular expressions to replacement text and a color. For example, if a value is www.example.com, you can configure a regex value mapping so that Grafana displays www and truncates the domain.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Regular expression to match against and the result to apply when the value matches the regex",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1RegexMapOptions"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"type", "options"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1RegexMapOptions"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardRepeatOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"mode": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"direction": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"maxPerRow": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"mode", "value"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardRowRepeatOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"mode": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"mode", "value"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardRowsLayoutKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardRowsLayoutRowKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutRowSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutRowSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardRowsLayoutRowSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"collapse": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hideHeader": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"fillScreen": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"conditionalRendering": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupKind"),
|
||
},
|
||
},
|
||
"repeat": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowRepeatOptions"),
|
||
},
|
||
},
|
||
"layout": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKindOrAutoGridLayoutKindOrTabsLayoutKindOrRowsLayoutKind"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"layout"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKindOrAutoGridLayoutKindOrTabsLayoutKindOrRowsLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowRepeatOptions"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardRowsLayoutSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"rows": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutRowKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"rows"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRowsLayoutRowKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"annotations": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationQueryKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"cursorSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Configuration of dashboard cursor sync behavior. \"Off\" for no shared crosshair or tooltip (default). \"Crosshair\" for shared crosshair. \"Tooltip\" for shared crosshair AND shared tooltip.",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Description of dashboard.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"editable": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Whether a dashboard is editable or not.",
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"elements": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
AdditionalProperties: &spec.SchemaOrBool{
|
||
Allows: true,
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelKindOrLibraryPanelKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"layout": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKindOrRowsLayoutKindOrAutoGridLayoutKindOrTabsLayoutKind"),
|
||
},
|
||
},
|
||
"links": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Links with references to other dashboards or external websites.",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDashboardLink"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"liveNow": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "When set to true, the dashboard will redraw panels at an interval matching the pixel width. This will keep data \"moving left\" regardless of the query refresh rate. This setting helps avoid dashboards presenting stale live data.",
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"preload": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "When set to true, the dashboard will load all panels in the dashboard when it's loaded.",
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"revision": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Plugins only. The version of the dashboard installed together with the plugin. This is used to determine if the dashboard should be updated when the plugin is updated.",
|
||
Type: []string{"integer"},
|
||
Format: "int32",
|
||
},
|
||
},
|
||
"tags": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Tags associated with dashboard.",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"timeSettings": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTimeSettingsSpec"),
|
||
},
|
||
},
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Title of dashboard.",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"variables": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Configured template variables.",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableKindOrTextVariableKindOrConstantVariableKindOrDatasourceVariableKindOrIntervalVariableKindOrCustomVariableKindOrGroupByVariableKindOrAdhocVariableKindOrSwitchVariableKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"annotations", "cursorSync", "elements", "layout", "links", "preload", "tags", "timeSettings", "title", "variables"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAnnotationQueryKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDashboardLink", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKindOrRowsLayoutKindOrAutoGridLayoutKindOrTabsLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardPanelKindOrLibraryPanelKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardQueryVariableKindOrTextVariableKindOrConstantVariableKindOrDatasourceVariableKindOrIntervalVariableKindOrCustomVariableKindOrGroupByVariableKindOrAdhocVariableKindOrSwitchVariableKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTimeSettingsSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardSpecialValueMap(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Maps special values like Null, NaN (not a number), and boolean values like true and false to a display text and color. See SpecialValueMatch to see the list of special values. For example, you can configure a special value mapping so that null values appear as N/A.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1SpecialValueMapOptions"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"type", "options"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardV2alpha1SpecialValueMapOptions"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"conversion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Optional conversion status.",
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConversionStatus"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConversionStatus"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardStringOrArrayOfString(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"String": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"ArrayOfString": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardStringOrFloat64(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"String": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"Float64": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardSwitchVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSwitchVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSwitchVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardSwitchVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Switch variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"current": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"enabledValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"disabledValue": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "current", "enabledValue", "disabledValue", "hide", "skipUrlSync"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTabRepeatOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"mode": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"mode", "value"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTabsLayoutKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTabsLayoutSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"tabs": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutTabKind"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"tabs"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutTabKind"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTabsLayoutTabKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutTabSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabsLayoutTabSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTabsLayoutTabSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"layout": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKindOrRowsLayoutKindOrAutoGridLayoutKindOrTabsLayoutKind"),
|
||
},
|
||
},
|
||
"conditionalRendering": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupKind"),
|
||
},
|
||
},
|
||
"repeat": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabRepeatOptions"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"layout"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardConditionalRenderingGroupKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardGridLayoutKindOrRowsLayoutKindOrAutoGridLayoutKindOrTabsLayoutKind", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTabRepeatOptions"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTextVariableKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Text variable kind",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTextVariableSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTextVariableSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTextVariableSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Text variable specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"name": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"current": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"),
|
||
},
|
||
},
|
||
"query": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"label": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"hide": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"skipUrlSync": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"name", "current", "query", "hide", "skipUrlSync"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVariableOption"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardThreshold(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Value null means -Infinity",
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"color": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"value", "color"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardThresholdsConfig(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"mode": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"steps": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardThreshold"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"mode", "steps"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardThreshold"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTimeRangeOption(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"display": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"from": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"to": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"display", "from", "to"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTimeSettingsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Time configuration It defines the default time config for the time picker, the refresh picker for the specific dashboard.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"timezone": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Timezone of dashboard. Accepted values are IANA TZDB zone ID or \"browser\" or \"utc\".",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"from": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Start time range for dashboard. Accepted values are relative time strings like \"now-6h\" or absolute time strings like \"2020-07-10T08:00:00.000Z\".",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"to": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "End time range for dashboard. Accepted values are relative time strings like \"now-6h\" or absolute time strings like \"2020-07-10T08:00:00.000Z\".",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"autoRefresh": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Refresh rate of dashboard. Represented via interval string, e.g. \"5s\", \"1m\", \"1h\", \"1d\". v1: refresh",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"autoRefreshIntervals": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Interval options available in the refresh picker dropdown. v1: timepicker.refresh_intervals",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"quickRanges": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Selectable options available in the time picker dropdown. Has no effect on provisioned dashboard. v1: timepicker.quick_ranges , not exposed in the UI",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTimeRangeOption"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"hideTimepicker": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Whether timepicker is visible or not. v1: timepicker.hidden",
|
||
Default: false,
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"weekStart": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Day when the week starts. Expressed by the name of the day in lowercase, e.g. \"monday\".",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"fiscalYearStartMonth": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The month that the fiscal year starts on. 0 = January, 11 = December",
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"nowDelay": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values. v1: timepicker.nowDelay",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"from", "to", "autoRefresh", "autoRefreshIntervals", "hideTimepicker", "fiscalYearStartMonth"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardTimeRangeOption"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardTransformationKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The kind of a TransformationKind is the transformation ID",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataTransformerConfig"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDataTransformerConfig"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1ActionStyle(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"backgroundColor": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1FieldConfigSourceOverrides(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"__systemRef": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Describes config override rules created when interacting with Grafana.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"matcher": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMatcherConfig"),
|
||
},
|
||
},
|
||
"properties": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDynamicConfigValue"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"matcher", "properties"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardDynamicConfigValue", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardMatcherConfig"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1RangeMapOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"from": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Min value of the range. It can be null which means -Infinity",
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"to": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Max value of the range. It can be null which means +Infinity",
|
||
Type: []string{"number"},
|
||
Format: "double",
|
||
},
|
||
},
|
||
"result": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Config to apply when the value is within the range",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"from", "to", "result"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1RegexMapOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"pattern": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Regular expression to match against",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"result": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Config to apply when the value matches the regex",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"pattern", "result"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardV2alpha1SpecialValueMapOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"match": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Special value to match against",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"result": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Config to apply when the value matches the special value",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"match", "result"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardValueMap(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Maps text values to a color or different display text and color. For example, you can configure a value mapping so that all instances of the value 10 appear as Perfection! rather than the number.",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Map with <value_to_match>: ValueMappingResult. For example: { \"10\": { text: \"Perfection!\", color: \"green\" } }",
|
||
Type: []string{"object"},
|
||
AdditionalProperties: &spec.SchemaOrBool{
|
||
Allows: true,
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"type", "options"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMappingResult"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardValueMapOrRangeMapOrRegexMapOrSpecialValueMap(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"ValueMap": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMap"),
|
||
},
|
||
},
|
||
"RangeMap": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRangeMap"),
|
||
},
|
||
},
|
||
"RegexMap": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRegexMap"),
|
||
},
|
||
},
|
||
"SpecialValueMap": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSpecialValueMap"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRangeMap", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardRegexMap", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSpecialValueMap", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardValueMap"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardValueMappingResult(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Result used as replacement with text and color when the value matches",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"text": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Text to display when the value matches",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"color": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Text to use when the value matches",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"icon": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Icon to display when the value matches. Only specific visualizations.",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"index": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Position in the mapping array. Only used internally.",
|
||
Type: []string{"integer"},
|
||
Format: "int32",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardVariableOption(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Variable option specification",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"selected": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Whether the option is selected or not",
|
||
Type: []string{"boolean"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"text": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Text to be displayed for the option",
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStringOrArrayOfString"),
|
||
},
|
||
},
|
||
"value": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Value of the option",
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStringOrArrayOfString"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"text", "value"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStringOrArrayOfString"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardVersionInfo(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"version": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The internal ID for this version (will be replaced with resourceVersion)",
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int32",
|
||
},
|
||
},
|
||
"parentVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "If the dashboard came from a previous version, it is set here",
|
||
Type: []string{"integer"},
|
||
Format: "int32",
|
||
},
|
||
},
|
||
"created": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The creation timestamp for this version",
|
||
Default: 0,
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
"createdBy": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The user who created this version",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"message": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Message passed while saving the version",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"version", "created"},
|
||
},
|
||
},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardVersionList(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"apiVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"metadata": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
|
||
},
|
||
},
|
||
"items": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVersionInfo"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"items"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVersionInfo", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardVizConfigKind(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The kind of a VizConfigKind is the plugin ID",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVizConfigSpec"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"kind", "spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardVizConfigSpec"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardVizConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "--- Kinds ---",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"pluginVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
AdditionalProperties: &spec.SchemaOrBool{
|
||
Allows: true,
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"fieldConfig": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldConfigSource"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"pluginVersion", "options", "fieldConfig"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardFieldConfigSource"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_DashboardWithAccessInfo(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "This is like the legacy DTO where access and metadata are all returned in a single call",
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"apiVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"metadata": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Spec is the spec of the Dashboard",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSpec"),
|
||
},
|
||
},
|
||
"status": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStatus"),
|
||
},
|
||
},
|
||
"access": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAccess"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"metadata", "spec", "status", "access"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardAccess", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardSpec", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.DashboardStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_LibraryPanel(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"apiVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"metadata": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
|
||
},
|
||
},
|
||
"spec": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Panel properties",
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanelSpec"),
|
||
},
|
||
},
|
||
"status": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Status will show errors",
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanelStatus"),
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"spec"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanelSpec", "github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanelStatus", "k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_LibraryPanelList(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"apiVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"metadata": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"),
|
||
},
|
||
},
|
||
"items": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: map[string]interface{}{},
|
||
Ref: ref("github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanel"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"items"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/apps/dashboard/pkg/apis/dashboard/v2alpha1.LibraryPanel", "k8s.io/apimachinery/pkg/apis/meta/v1.ListMeta"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_LibraryPanelSpec(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"type": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The panel type",
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"pluginVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The panel type",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"title": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The panel title",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"description": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Library panel description",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"options": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The options schema depends on the panel type",
|
||
Ref: ref("github.com/grafana/grafana/pkg/apimachinery/apis/common/v0alpha1.Unstructured"),
|
||
},
|
||
},
|
||
"fieldConfig": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The fieldConfig schema depends on the panel type",
|
||
Ref: ref("github.com/grafana/grafana/pkg/apimachinery/apis/common/v0alpha1.Unstructured"),
|
||
},
|
||
},
|
||
"datasource": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The default datasource type",
|
||
Ref: ref("github.com/grafana/grafana-plugin-sdk-go/experimental/apis/data/v0alpha1.DataSourceRef"),
|
||
},
|
||
},
|
||
"targets": {
|
||
VendorExtensible: spec.VendorExtensible{
|
||
Extensions: spec.Extensions{
|
||
"x-kubernetes-list-type": "set",
|
||
},
|
||
},
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The datasource queries",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Ref: ref("github.com/grafana/grafana-plugin-sdk-go/experimental/apis/data/v0alpha1.DataQuery"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Required: []string{"type", "options", "fieldConfig"},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana-plugin-sdk-go/experimental/apis/data/v0alpha1.DataQuery", "github.com/grafana/grafana-plugin-sdk-go/experimental/apis/data/v0alpha1.DataSourceRef", "github.com/grafana/grafana/pkg/apimachinery/apis/common/v0alpha1.Unstructured"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_LibraryPanelStatus(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"warnings": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Translation warnings (mostly things that were in SQL columns but not found in the saved body)",
|
||
Type: []string{"array"},
|
||
Items: &spec.SchemaOrArray{
|
||
Schema: &spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Default: "",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
"missing": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "The properties previously stored in SQL that are not included in this model",
|
||
Ref: ref("github.com/grafana/grafana/pkg/apimachinery/apis/common/v0alpha1.Unstructured"),
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
Dependencies: []string{
|
||
"github.com/grafana/grafana/pkg/apimachinery/apis/common/v0alpha1.Unstructured"},
|
||
}
|
||
}
|
||
|
||
func schema_pkg_apis_dashboard_v2alpha1_VersionsQueryOptions(ref common.ReferenceCallback) common.OpenAPIDefinition {
|
||
return common.OpenAPIDefinition{
|
||
Schema: spec.Schema{
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"object"},
|
||
Properties: map[string]spec.Schema{
|
||
"kind": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"apiVersion": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"path": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Description: "Path is the URL path",
|
||
Type: []string{"string"},
|
||
Format: "",
|
||
},
|
||
},
|
||
"version": {
|
||
SchemaProps: spec.SchemaProps{
|
||
Type: []string{"integer"},
|
||
Format: "int64",
|
||
},
|
||
},
|
||
},
|
||
},
|
||
},
|
||
}
|
||
}
|