Description:"The data source resource is a reflection of the individual datasource instances that are exposed in the groups: {datasource}.datasource.grafana.app The status is updated periodically. The name is the plugin id",
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",
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",
Description:"Deprecated -- use datasource ref instead",
Type:[]string{"integer"},
Format:"int64",
},
},
"queryType":{
SchemaProps:spec.SchemaProps{
Description:"QueryType is an optional identifier for the type of query. It can be used to distinguish different types of queries.",
Type:[]string{"string"},
Format:"",
},
},
"maxDataPoints":{
SchemaProps:spec.SchemaProps{
Description:"MaxDataPoints is the maximum number of data points that should be returned from a time series query.",
Type:[]string{"integer"},
Format:"int64",
},
},
"intervalMs":{
SchemaProps:spec.SchemaProps{
Description:"Interval is the suggested duration between time points in a time series query.",
Type:[]string{"number"},
Format:"double",
},
},
"hide":{
SchemaProps:spec.SchemaProps{
Description:"true if query is disabled (ie should not be returned to the dashboard) Note this does not always imply that the query should not be executed since the results from a hidden query may be used as the input to other queries (SSE etc)",
Description:"Generic query request with shared time across all values Copied from: https://github.com/grafana/grafana/blob/main/pkg/api/dtos/models.go#L62",
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:"",
},
},
"from":{
SchemaProps:spec.SchemaProps{
Description:"From Start time in epoch timestamps in milliseconds or relative using Grafana time units. example: now-1h",
Type:[]string{"string"},
Format:"",
},
},
"to":{
SchemaProps:spec.SchemaProps{
Description:"To End time in epoch timestamps in milliseconds or relative using Grafana time units. example: now",
Type:[]string{"string"},
Format:"",
},
},
"queries":{
SchemaProps:spec.SchemaProps{
Description:"queries.refId – Specifies an identifier of the query. Is optional and default to “A”. queries.datasourceId – Specifies the data source to be queried. Each query in the request must have an unique datasourceId. queries.maxDataPoints - Species maximum amount of data points that dashboard panel can render. Is optional and default to 100. queries.intervalMs - Specifies the time interval in milliseconds of time series. Is optional and defaults to 1000. required: true example: [ { \"refId\": \"A\", \"intervalMs\": 86400000, \"maxDataPoints\": 1092, \"datasource\":{ \"uid\":\"PD8C576611E62080A\" }, \"rawSql\": \"SELECT 1 as valueOne, 2 as valueTwo\", \"format\": \"table\" } ]",
Description:"QueryVariable is the definition of a variable that will be interpolated in targets.",
Type:[]string{"object"},
Properties:map[string]spec.Schema{
"path":{
SchemaProps:spec.SchemaProps{
Description:"Path is the location of the property within a target. The format for this is not figured out yet (Maybe JSONPath?). Idea: [\"string\", int, \"string\"] where int indicates array offset",
Default:"",
Type:[]string{"string"},
Format:"",
},
},
"position":{
SchemaProps:spec.SchemaProps{
Description:"Positions is a list of where to perform the interpolation within targets during render. The first string is the Idx of the target as a string, since openAPI does not support ints as map keys",
Description:"How values should be interpolated\n\nPossible enum values:\n - `\"csv\"` Formats variables with multiple values as a comma-separated string.\n - `\"doublequote\"` Formats single- and multi-valued variables into a comma-separated string\n - `\"json\"` Formats variables with multiple values as a comma-separated string.\n - `\"pipe\"` Formats variables with multiple values into a pipe-separated string.\n - `\"raw\"` Formats variables with multiple values into comma-separated string. This is the default behavior when no format is specified\n - `\"singlequote\"` Formats single- and multi-valued variables into a comma-separated string",
Description:"Possible enum values:\n - `\"csv\"` Formats variables with multiple values as a comma-separated string.\n - `\"doublequote\"` Formats single- and multi-valued variables into a comma-separated string\n - `\"json\"` Formats variables with multiple values as a comma-separated string.\n - `\"pipe\"` Formats variables with multiple values into a pipe-separated string.\n - `\"raw\"` Formats variables with multiple values into comma-separated string. This is the default behavior when no format is specified\n - `\"singlequote\"` Formats single- and multi-valued variables into a comma-separated string",