@intentius/chant-lexicon-grafana 0.99.0 → 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -6
- package/dist/annotations.d.ts +61 -0
- package/dist/annotations.d.ts.map +1 -0
- package/dist/api/apply.d.ts +8 -4
- package/dist/api/apply.d.ts.map +1 -1
- package/dist/api/fake-grafana.d.ts +2 -0
- package/dist/api/fake-grafana.d.ts.map +1 -1
- package/dist/api/folders.d.ts +53 -17
- package/dist/api/folders.d.ts.map +1 -1
- package/dist/build.d.ts +26 -5
- package/dist/build.d.ts.map +1 -1
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.d.ts.map +1 -1
- package/dist/codegen/docs.d.ts.map +1 -1
- package/dist/codegen/generate.d.ts +7 -1
- package/dist/codegen/generate.d.ts.map +1 -1
- package/dist/composites/shared.d.ts +4 -3
- package/dist/composites/shared.d.ts.map +1 -1
- package/dist/dashboard.d.ts +42 -14
- package/dist/dashboard.d.ts.map +1 -1
- package/dist/datasource-refs.d.ts +9 -5
- package/dist/datasource-refs.d.ts.map +1 -1
- package/dist/datasource-settings.d.ts +834 -0
- package/dist/datasource-settings.d.ts.map +1 -0
- package/dist/datasource.d.ts +53 -11
- package/dist/datasource.d.ts.map +1 -1
- package/dist/deep-observe-hooks.d.ts +1 -1
- package/dist/deep-observe-hooks.d.ts.map +1 -1
- package/dist/deep-observe.d.ts +9 -4
- package/dist/deep-observe.d.ts.map +1 -1
- package/dist/describe-resources.d.ts +1 -0
- package/dist/describe-resources.d.ts.map +1 -1
- package/dist/detect.d.ts +4 -2
- package/dist/detect.d.ts.map +1 -1
- package/dist/folder.d.ts +68 -0
- package/dist/folder.d.ts.map +1 -0
- package/dist/import/generator.d.ts.map +1 -1
- package/dist/import/mappings.d.ts +12 -6
- package/dist/import/mappings.d.ts.map +1 -1
- package/dist/import/model.d.ts +7 -0
- package/dist/import/model.d.ts.map +1 -1
- package/dist/import/normalize.d.ts.map +1 -1
- package/dist/import/parser.d.ts +16 -1
- package/dist/import/parser.d.ts.map +1 -1
- package/dist/import/testdata/fixtures.d.ts +6 -0
- package/dist/import/testdata/fixtures.d.ts.map +1 -1
- package/dist/import/v2.d.ts +4 -3
- package/dist/import/v2.d.ts.map +1 -1
- package/dist/index.d.ts +11 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/init-templates.d.ts +27 -0
- package/dist/init-templates.d.ts.map +1 -0
- package/dist/integrity.json +11 -9
- package/dist/lint/audit-catalog.d.ts +1 -1
- package/dist/lint/audit-catalog.d.ts.map +1 -1
- package/dist/lint/post-synth/graf101.d.ts +1 -1
- package/dist/lint/post-synth/graf104.d.ts +2 -2
- package/dist/lint/post-synth/graf106.d.ts +2 -2
- package/dist/lint/post-synth/graf110.d.ts +8 -0
- package/dist/lint/post-synth/graf110.d.ts.map +1 -0
- package/dist/lint/post-synth/grafana-helpers.d.ts.map +1 -1
- package/dist/lint/post-synth/index.d.ts.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/meta.json +70 -0
- package/dist/okf/index.md +18 -3
- package/dist/okf/rules/GRAF101.md +2 -2
- package/dist/okf/rules/GRAF104.md +2 -2
- package/dist/okf/rules/GRAF106.md +2 -2
- package/dist/okf/rules/GRAF110.md +11 -0
- package/dist/okf/types/AdhocVariable.md +9 -0
- package/dist/okf/types/AzureMonitorQuery.md +9 -0
- package/dist/okf/types/BigQueryQuery.md +9 -0
- package/dist/okf/types/CloudMonitoringQuery.md +9 -0
- package/dist/okf/types/CloudWatchQuery.md +9 -0
- package/dist/okf/types/Dashboard.md +1 -1
- package/dist/okf/types/Datasource.md +1 -1
- package/dist/okf/types/DatasourceProvisioning.md +9 -0
- package/dist/okf/types/ElasticsearchQuery.md +9 -0
- package/dist/okf/types/ExternalDatasource.md +1 -1
- package/dist/okf/types/Folder.md +9 -0
- package/dist/okf/types/GroupByVariable.md +9 -0
- package/dist/okf/types/MSSQLQuery.md +9 -0
- package/dist/okf/types/MySQLQuery.md +9 -0
- package/dist/okf/types/PostgresQuery.md +9 -0
- package/dist/okf/types/PyroscopeQuery.md +9 -0
- package/dist/okf/types/SwitchVariable.md +9 -0
- package/dist/op/activities/grafana-apply.d.ts +11 -0
- package/dist/op/activities/grafana-apply.d.ts.map +1 -1
- package/dist/op/activities/index.d.ts +1 -1
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/ownership.d.ts +11 -0
- package/dist/ownership.d.ts.map +1 -1
- package/dist/pin.d.ts +1 -1
- package/dist/pin.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/promql-check.d.ts.map +1 -1
- package/dist/query-models.d.ts +95 -0
- package/dist/query-models.d.ts.map +1 -0
- package/dist/query.d.ts +107 -10
- package/dist/query.d.ts.map +1 -1
- package/dist/rules/graf101.ts +2 -2
- package/dist/rules/graf104.ts +3 -3
- package/dist/rules/graf106.ts +3 -3
- package/dist/rules/graf110.ts +17 -0
- package/dist/rules/grafana-helpers.ts +13 -3
- package/dist/schema/azuremonitor.gen.d.ts +354 -0
- package/dist/schema/azuremonitor.gen.d.ts.map +1 -0
- package/dist/schema/bigquery.gen.d.ts +93 -0
- package/dist/schema/bigquery.gen.d.ts.map +1 -0
- package/dist/schema/cloudwatch.gen.d.ts +394 -0
- package/dist/schema/cloudwatch.gen.d.ts.map +1 -0
- package/dist/schema/elasticsearch.gen.d.ts +444 -0
- package/dist/schema/elasticsearch.gen.d.ts.map +1 -0
- package/dist/schema/googlecloudmonitoring.gen.d.ts +312 -0
- package/dist/schema/googlecloudmonitoring.gen.d.ts.map +1 -0
- package/dist/schema/grafanapyroscope.gen.d.ts +60 -0
- package/dist/schema/grafanapyroscope.gen.d.ts.map +1 -0
- package/dist/schema/index.d.ts +6 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/table.gen.d.ts +13 -0
- package/dist/schema/table.gen.d.ts.map +1 -1
- package/dist/schema-validate.d.ts +9 -0
- package/dist/schema-validate.d.ts.map +1 -1
- package/dist/skill-defs.d.ts.map +1 -1
- package/dist/skills/chant-grafana-operations.md +108 -0
- package/dist/skills/chant-grafana.md +5 -4
- package/dist/spec/schemas.d.ts +9 -7
- package/dist/spec/schemas.d.ts.map +1 -1
- package/dist/spec/schemas.gen.d.ts +3 -0
- package/dist/spec/schemas.gen.d.ts.map +1 -0
- package/dist/validate-alerting.d.ts.map +1 -1
- package/dist/validate-output.d.ts +15 -2
- package/dist/validate-output.d.ts.map +1 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validation.d.ts +14 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/variables.d.ts +102 -5
- package/dist/variables.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/annotations.ts +84 -0
- package/src/api/apply.test.ts +19 -1
- package/src/api/apply.ts +18 -8
- package/src/api/fake-grafana.ts +6 -2
- package/src/api/folders.ts +106 -32
- package/src/build.test.ts +142 -6
- package/src/build.ts +126 -24
- package/src/catalog.ts +20 -2
- package/src/codegen/docs.ts +13 -6
- package/src/codegen/generate.ts +27 -1
- package/src/composites/shared.ts +3 -2
- package/src/dashboard.ts +59 -14
- package/src/datasource-refs.ts +30 -6
- package/src/datasource-settings.test.ts +106 -0
- package/src/datasource-settings.ts +941 -0
- package/src/datasource.ts +71 -11
- package/src/deep-observe-hooks.ts +16 -1
- package/src/deep-observe.test.ts +47 -1
- package/src/deep-observe.ts +36 -13
- package/src/describe-resources.test.ts +16 -0
- package/src/describe-resources.ts +36 -1
- package/src/detect.ts +3 -3
- package/src/folder.ts +118 -0
- package/src/generated/lexicon-grafana.json +70 -0
- package/src/import/generated-types.e2e.test.ts +15 -3
- package/src/import/generator.ts +2 -1
- package/src/import/mappings.ts +98 -26
- package/src/import/model.ts +7 -0
- package/src/import/normalize.ts +32 -3
- package/src/import/parser.test.ts +97 -21
- package/src/import/parser.ts +169 -18
- package/src/import/roundtrip.test.ts +104 -9
- package/src/import/testdata/fixtures.ts +8 -0
- package/src/import/v2.ts +4 -3
- package/src/index.ts +122 -13
- package/src/init-templates.test.ts +74 -0
- package/src/init-templates.ts +349 -0
- package/src/lint/audit-catalog.ts +9 -1
- package/src/lint/post-synth/graf101.ts +2 -2
- package/src/lint/post-synth/graf104.ts +3 -3
- package/src/lint/post-synth/graf106.ts +3 -3
- package/src/lint/post-synth/graf110.ts +17 -0
- package/src/lint/post-synth/grafana-helpers.ts +13 -3
- package/src/lint/post-synth/index.ts +2 -0
- package/src/lint/post-synth/post-synth.test.ts +99 -2
- package/src/load-cost.test.ts +35 -0
- package/src/op/activities/grafana-apply.e2e.test.ts +14 -5
- package/src/op/activities/grafana-apply.test.ts +16 -2
- package/src/op/activities/grafana-apply.ts +29 -3
- package/src/op/activities/index.ts +1 -1
- package/src/ownership.ts +19 -0
- package/src/panels.test.ts +3 -1
- package/src/pin.ts +12 -0
- package/src/plugin.test.ts +9 -2
- package/src/plugin.ts +9 -0
- package/src/promql-check.ts +5 -1
- package/src/query-models.ts +94 -0
- package/src/query.test.ts +166 -0
- package/src/query.ts +177 -12
- package/src/schema/azuremonitor.gen.ts +381 -0
- package/src/schema/bigquery.gen.ts +110 -0
- package/src/schema/cloudwatch.gen.ts +423 -0
- package/src/schema/elasticsearch.gen.ts +508 -0
- package/src/schema/googlecloudmonitoring.gen.ts +330 -0
- package/src/schema/grafanapyroscope.gen.ts +66 -0
- package/src/schema/index.ts +6 -0
- package/src/schema/table.gen.ts +14 -0
- package/src/schema-validate.ts +58 -7
- package/src/skill-defs.ts +17 -0
- package/src/skills/chant-grafana-operations.md +108 -0
- package/src/skills/chant-grafana.md +5 -4
- package/src/spec/overlay/table.overlay.json +19 -0
- package/src/spec/schemas/azuremonitor.jsonschema.json +679 -0
- package/src/spec/schemas/bigquery.jsonschema.json +290 -0
- package/src/spec/schemas/cloudwatch.jsonschema.json +721 -0
- package/src/spec/schemas/elasticsearch.jsonschema.json +1695 -0
- package/src/spec/schemas/googlecloudmonitoring.jsonschema.json +488 -0
- package/src/spec/schemas/grafanapyroscope.jsonschema.json +93 -0
- package/src/spec/schemas.gen.ts +40 -0
- package/src/spec/schemas.ts +9 -7
- package/src/validate-alerting.ts +4 -2
- package/src/validate-output.ts +96 -4
- package/src/validate.ts +14 -0
- package/src/validation.ts +27 -0
- package/src/variables.ts +113 -6
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Code generated by chant generate. DO NOT EDIT.
|
|
2
|
+
// The vendored Grafana schemas (src/spec/schemas/, see src/pin.ts) with the
|
|
3
|
+
// correction overlay (src/spec/overlay/) applied, as JSON text, for
|
|
4
|
+
// src/schema-validate.ts. A module rather than a file read, so validation
|
|
5
|
+
// needs no filesystem access and survives bundling; text rather than object
|
|
6
|
+
// literals, so loading it costs little until a schema is parsed.
|
|
7
|
+
|
|
8
|
+
import type { SchemaName } from "../pin";
|
|
9
|
+
|
|
10
|
+
export const SCHEMA_JSON: Readonly<Record<SchemaName, string>> = {
|
|
11
|
+
"dashboard": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/Dashboard\",\"definitions\":{\"AnnotationActions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"canAdd\":{\"type\":\"boolean\"},\"canDelete\":{\"type\":\"boolean\"},\"canEdit\":{\"type\":\"boolean\"}}},\"AnnotationPermission\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"dashboard\":{\"$ref\":\"#/definitions/AnnotationActions\"},\"organization\":{\"$ref\":\"#/definitions/AnnotationActions\"}}},\"DashboardMeta\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"annotationsPermissions\":{\"$ref\":\"#/definitions/AnnotationPermission\"},\"apiVersion\":{\"type\":\"string\"},\"canAdmin\":{\"type\":\"boolean\"},\"canDelete\":{\"type\":\"boolean\"},\"canEdit\":{\"type\":\"boolean\"},\"canSave\":{\"type\":\"boolean\"},\"canStar\":{\"type\":\"boolean\"},\"created\":{\"type\":\"string\",\"format\":\"date-time\"},\"createdBy\":{\"type\":\"string\"},\"expires\":{\"type\":\"string\",\"format\":\"date-time\"},\"folderId\":{\"type\":\"integer\",\"description\":\"Deprecated: use FolderUID instead\"},\"folderTitle\":{\"type\":\"string\"},\"folderUid\":{\"type\":\"string\"},\"folderUrl\":{\"type\":\"string\"},\"hasAcl\":{\"type\":\"boolean\"},\"isFolder\":{\"type\":\"boolean\"},\"isSnapshot\":{\"type\":\"boolean\"},\"isStarred\":{\"type\":\"boolean\"},\"provisioned\":{\"type\":\"boolean\"},\"provisionedExternalId\":{\"type\":\"string\"},\"publicDashboardEnabled\":{\"type\":\"boolean\"},\"slug\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"},\"updated\":{\"type\":\"string\",\"format\":\"date-time\"},\"updatedBy\":{\"type\":\"string\"},\"url\":{\"type\":\"string\"},\"version\":{\"type\":\"integer\"}}},\"Dashboard\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"schemaVersion\"],\"properties\":{\"id\":{\"anyOf\":[{\"type\":\"integer\"},{\"type\":\"null\"}],\"description\":\"Unique numeric identifier for the dashboard.\\n`id` is internal to a specific Grafana instance. `uid` should be used to identify a dashboard across Grafana instances.\\nTODO eliminate this null option\"},\"uid\":{\"type\":\"string\",\"description\":\"Unique dashboard identifier that can be generated by anyone. string (8-40)\"},\"title\":{\"type\":\"string\",\"description\":\"Title of dashboard.\"},\"description\":{\"type\":\"string\",\"description\":\"Description of dashboard.\"},\"revision\":{\"type\":\"integer\",\"description\":\"This property should only be used in dashboards defined by plugins. It is a quick check\\nto see if the version has changed since the last time.\"},\"gnetId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"integer\"},{\"type\":\"null\"}],\"description\":\"ID of a dashboard imported from the https://grafana.com/grafana/dashboards/ portal. A string in Grafana 12.4, an integer in 13.x; grafana.com downloads carry null.\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Tags associated with dashboard.\"},\"timezone\":{\"type\":\"string\",\"description\":\"Timezone of dashboard. Accepted values are IANA TZDB zone ID or \\\"browser\\\" or \\\"utc\\\".\",\"default\":\"browser\"},\"editable\":{\"type\":\"boolean\",\"description\":\"Whether a dashboard is editable or not.\",\"default\":true},\"graphTooltip\":{\"$ref\":\"#/definitions/DashboardCursorSync\",\"description\":\"Configuration of dashboard cursor sync behavior.\\nAccepted values are 0 (sync turned off), 1 (shared crosshair), 2 (shared crosshair and tooltip).\",\"default\":0},\"time\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\"],\"properties\":{\"from\":{\"type\":\"string\",\"default\":\"now-6h\"},\"to\":{\"type\":\"string\",\"default\":\"now\"}},\"description\":\"Time range for dashboard.\\nAccepted values are relative time strings like {from: 'now-6h', to: 'now'} or absolute time strings like {from: '2020-07-10T08:00:00.000Z', to: '2020-07-10T14:00:00.000Z'}.\"},\"timepicker\":{\"$ref\":\"#/definitions/TimePickerConfig\",\"description\":\"Configuration of the time picker shown at the top of a dashboard.\"},\"fiscalYearStartMonth\":{\"type\":\"integer\",\"exclusiveMaximum\":12,\"description\":\"The month that the fiscal year starts on. 0 = January, 11 = December\",\"default\":0},\"liveNow\":{\"type\":\"boolean\",\"description\":\"When set to true, the dashboard will redraw panels at an interval matching the pixel width.\\nThis will keep data \\\"moving left\\\" regardless of the query refresh rate. This setting helps\\navoid dashboards presenting stale live data\"},\"weekStart\":{\"type\":\"string\",\"description\":\"Day when the week starts. Expressed by the name of the day in lowercase, e.g. \\\"monday\\\".\"},\"refresh\":{\"type\":\"string\",\"description\":\"Refresh rate of dashboard. Represented via interval string, e.g. \\\"5s\\\", \\\"1m\\\", \\\"1h\\\", \\\"1d\\\".\"},\"schemaVersion\":{\"type\":\"integer\",\"description\":\"Version of the JSON schema, incremented each time a Grafana update brings\\nchanges to said schema.\",\"default\":42},\"version\":{\"type\":\"integer\",\"description\":\"Version of the dashboard, incremented each time the dashboard is updated.\"},\"panels\":{\"type\":\"array\",\"items\":{\"oneOf\":[{\"$ref\":\"#/definitions/Panel\"},{\"$ref\":\"#/definitions/RowPanel\"}]},\"description\":\"List of dashboard panels\"},\"templating\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"list\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/VariableModel\"},\"description\":\"List of configured template variables with their saved values along with some other metadata\"}},\"description\":\"Configured template variables\"},\"annotations\":{\"$ref\":\"#/definitions/AnnotationContainer\",\"description\":\"Contains the list of annotations that are associated with the dashboard.\\nAnnotations are used to overlay event markers and overlay event tags on graphs.\\nGrafana comes with a native annotation store and the ability to add annotation events directly from the graph panel or via the HTTP API.\\nSee https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/annotate-visualizations/\"},\"links\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/DashboardLink\"},\"description\":\"Links with references to other dashboards or external websites.\"},\"snapshot\":{\"$ref\":\"#/definitions/Snapshot\",\"description\":\"Snapshot options. They are present only if the dashboard is a snapshot.\"},\"preload\":{\"type\":\"boolean\",\"description\":\"When set to true, the dashboard will load all panels in the dashboard when it's loaded.\"},\"__inputs\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ExportInput\"},\"description\":\"Inputs the importer asks for (datasources, constants). Written by \\\"Export for sharing externally\\\".\"},\"__requires\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ExportRequirement\"},\"description\":\"Plugins and the Grafana version the export needs. Written by \\\"Export for sharing externally\\\".\"},\"__elements\":{\"type\":\"object\",\"additionalProperties\":{\"$ref\":\"#/definitions/LibraryElementExport\"},\"description\":\"Library panels the export embeds, keyed by uid. Written by \\\"Export for sharing externally\\\".\"}},\"deprecated\":true,\"x-deprecation-message\":\"Prefer using dashboardv2.Dashboard instead.\"},\"DashboardCursorSync\":{\"enum\":[0,1,2],\"type\":\"integer\",\"description\":\"0 for no shared crosshair or tooltip (default).\\n1 for shared crosshair.\\n2 for shared crosshair AND shared tooltip.\"},\"TimePickerConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"hidden\":{\"type\":\"boolean\",\"description\":\"Whether timepicker is visible or not.\",\"default\":false},\"refresh_intervals\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Interval options available in the refresh picker dropdown.\",\"default\":[\"5s\",\"10s\",\"30s\",\"1m\",\"5m\",\"15m\",\"30m\",\"1h\",\"2h\",\"1d\"]},\"quick_ranges\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/TimeOption\"},\"description\":\"Quick ranges for time picker.\"},\"nowDelay\":{\"type\":\"string\",\"description\":\"Override the now time by entering a time delay. Use this option to accommodate known delays in data aggregation to avoid null values.\"}},\"description\":\"Time picker configuration\\nIt defines the default config for the time picker and the refresh picker for the specific dashboard.\"},\"TimeOption\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"display\",\"from\",\"to\"],\"properties\":{\"display\":{\"type\":\"string\"},\"from\":{\"type\":\"string\"},\"to\":{\"type\":\"string\"}},\"description\":\"Counterpart for TypeScript's TimeOption type.\"},\"Panel\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"minLength\":1,\"description\":\"The panel plugin type id. This is used to find the plugin to display the panel.\"},\"id\":{\"type\":\"integer\",\"description\":\"Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally.\"},\"pluginVersion\":{\"type\":\"string\",\"description\":\"The version of the plugin that is used for this panel. This is used to find the plugin to display the panel and to migrate old panel configs.\"},\"targets\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"additionalProperties\":{}},\"description\":\"Depends on the panel plugin. See the plugin documentation for details.\"},\"title\":{\"type\":\"string\",\"description\":\"Panel title.\"},\"description\":{\"type\":\"string\",\"description\":\"Panel description.\"},\"transparent\":{\"type\":\"boolean\",\"description\":\"Whether to display the panel without a background.\",\"default\":false},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"The datasource used in all targets.\"},\"gridPos\":{\"$ref\":\"#/definitions/GridPos\",\"description\":\"Grid position.\"},\"links\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/PanelLink\"},\"description\":\"Panel links.\"},\"repeat\":{\"type\":\"string\",\"description\":\"Name of template variable to repeat for.\"},\"repeatDirection\":{\"enum\":[\"h\",\"v\"],\"type\":\"string\",\"description\":\"Direction to repeat in if 'repeat' is set.\\n`h` for horizontal, `v` for vertical.\",\"default\":\"h\"},\"maxPerRow\":{\"type\":\"number\",\"description\":\"Option for repeated panels that controls max items per row\\nOnly relevant for horizontally repeated panels\"},\"maxDataPoints\":{\"type\":\"number\",\"description\":\"The maximum number of data points that the panel queries are retrieving.\"},\"transformations\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/DataTransformerConfig\"},\"description\":\"List of transformations that are applied to the panel data before rendering.\\nWhen there are multiple transformations, Grafana applies them in the order they are listed.\\nEach transformation creates a result set that then passes on to the next transformation in the processing pipeline.\"},\"interval\":{\"type\":\"string\",\"description\":\"The min time interval setting defines a lower limit for the $__interval and $__interval_ms variables.\\nThis value must be formatted as a number followed by a valid time\\nidentifier like: \\\"40s\\\", \\\"3d\\\", etc.\\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options\"},\"timeFrom\":{\"type\":\"string\",\"description\":\"Overrides the relative time range for individual panels,\\nwhich causes them to be different than what is selected in\\nthe dashboard time picker in the top-right corner of the dashboard. You can use this to show metrics from different\\ntime periods or days on the same dashboard.\\nThe value is formatted as time operation like: `now-5m` (Last 5 minutes), `now/d` (the day so far),\\n`now-5d/d`(Last 5 days), `now/w` (This week so far), `now-2y/y` (Last 2 years).\\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options\"},\"timeShift\":{\"type\":\"string\",\"description\":\"Overrides the time range for individual panels by shifting its start and end relative to the time picker.\\nFor example, you can shift the time range for the panel to be two hours earlier than the dashboard time picker setting `2h`.\\nNote: Panel time overrides have no effect when the dashboard’s time range is absolute.\\nSee: https://grafana.com/docs/grafana/latest/panels-visualizations/query-transform-data/#query-options\"},\"hideTimeOverride\":{\"type\":\"boolean\",\"description\":\"Controls if the timeFrom or timeShift overrides are shown in the panel header\"},\"timeCompare\":{\"type\":\"string\",\"description\":\"Compare the current time range with a previous period\\nFor example \\\"1d\\\" to compare current period but shifted back 1 day\"},\"libraryPanel\":{\"$ref\":\"#/definitions/LibraryPanelRef\",\"description\":\"Dynamically load the panel\"},\"cacheTimeout\":{\"type\":\"string\",\"description\":\"Sets panel queries cache timeout.\"},\"queryCachingTTL\":{\"type\":\"number\",\"description\":\"Overrides the data source configured time-to-live for a query cache item in milliseconds\"},\"options\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"It depends on the panel plugin. They are specified by the Options field in panel plugin schemas.\"},\"fieldConfig\":{\"$ref\":\"#/definitions/FieldConfigSource\",\"description\":\"Field options allow you to change how the data is displayed in your visualizations.\"}},\"description\":\"Dashboard panels are the basic visualization building blocks.\",\"anyOf\":[{\"required\":[\"type\"]},{\"required\":[\"libraryPanel\"]}]},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}},\"GridPos\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"h\",\"w\",\"x\",\"y\"],\"properties\":{\"h\":{\"type\":\"integer\",\"exclusiveMinimum\":0,\"description\":\"Panel height. The height is the number of rows from the top edge of the panel.\",\"default\":9},\"w\":{\"type\":\"integer\",\"exclusiveMinimum\":0,\"maximum\":24,\"description\":\"Panel width. The width is the number of columns from the left edge of the panel.\",\"default\":12},\"x\":{\"type\":\"integer\",\"minimum\":0,\"exclusiveMaximum\":24,\"description\":\"Panel x. The x coordinate is the number of columns from the left edge of the grid\",\"default\":0},\"y\":{\"type\":\"integer\",\"minimum\":0,\"description\":\"Panel y. The y coordinate is the number of rows from the top edge of the grid\",\"default\":0},\"static\":{\"type\":\"boolean\",\"description\":\"Whether the panel is fixed within the grid. If true, the panel will not be affected by other panels' interactions\"}},\"description\":\"Position and dimensions of a panel in the grid\"},\"DashboardLink\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"title\",\"type\",\"icon\",\"tooltip\",\"tags\"],\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title to display with the link\"},\"type\":{\"$ref\":\"#/definitions/DashboardLinkType\",\"description\":\"Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)\"},\"icon\":{\"type\":\"string\",\"description\":\"Icon name to be displayed with the link\"},\"tooltip\":{\"type\":\"string\",\"description\":\"Tooltip to display when the user hovers their mouse over it\"},\"url\":{\"type\":\"string\",\"description\":\"Link URL. Only required/valid if the type is link\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"List of tags to limit the linked dashboards. If empty, all dashboards will be displayed. Only valid if the type is dashboards\"},\"asDropdown\":{\"type\":\"boolean\",\"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},\"placement\":{\"allOf\":[{\"$ref\":\"#/definitions/DashboardLinkPlacement\"}],\"default\":\"inControlsMenu\",\"description\":\"Placement can be used to display the link somewhere else on the dashboard other than above the visualisations.\"},\"targetBlank\":{\"type\":\"boolean\",\"description\":\"If true, the link will be opened in a new tab\",\"default\":false},\"includeVars\":{\"type\":\"boolean\",\"description\":\"If true, includes current template variables values in the link as query params\",\"default\":false},\"keepTime\":{\"type\":\"boolean\",\"description\":\"If true, includes current time range in the link as query params\",\"default\":false},\"origin\":{\"$ref\":\"#/definitions/ControlSourceRef\",\"description\":\"The source that registered the link (if any)\"}},\"description\":\"Links with references to other dashboards or external resources\"},\"DashboardLinkType\":{\"enum\":[\"link\",\"dashboards\"],\"type\":\"string\",\"description\":\"Dashboard Link type. Accepted values are dashboards (to refer to another dashboard) and link (to refer to an external resource)\"},\"DashboardLinkPlacement\":{\"enum\":[\"inControlsMenu\"],\"type\":\"string\",\"description\":\"Dashboard Link placement. Defines where the link should be displayed.\\n- \\\"inControlsMenu\\\" renders the link in bottom part of the dashboard controls dropdown menu\"},\"DataTransformerConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"options\"],\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Unique identifier of transformer\"},\"disabled\":{\"type\":\"boolean\",\"description\":\"Disabled transformations are skipped\"},\"filter\":{\"$ref\":\"#/definitions/MatcherConfig\",\"description\":\"Optional frame matcher. When missing it will be applied to all results\"},\"topic\":{\"enum\":[\"series\",\"annotations\",\"alertStates\"],\"type\":\"string\",\"description\":\"Where to pull DataFrames from as input to transformation\\nreplaced with common.DataTopic\"},\"options\":{\"description\":\"Options to be passed to the transformer\\nValid options depend on the transformer id\"}},\"description\":\"Transformations allow to manipulate data returned by a query before the system applies a visualization.\\nUsing transformations you can: rename fields, join time series data, perform mathematical operations across queries,\\nuse the output of one transformation as the input to another transformation, etc.\"},\"MatcherConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"The matcher id. This is used to find the matcher implementation from registry.\",\"default\":\"\"},\"options\":{\"description\":\"The matcher options. This is specific to the matcher implementation: a field name for byName, a pattern for byRegexp, an object for byNames or byValue.\"},\"scope\":{\"$ref\":\"#/definitions/MatcherScope\",\"description\":\"If set, limits this matcher to fields of that type. If not set, \\\"series\\\" mode is used.\"}},\"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.\\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.\"},\"LibraryPanelRef\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"name\",\"uid\"],\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Library panel name\"},\"uid\":{\"type\":\"string\",\"description\":\"Library panel uid\"}},\"description\":\"A library panel is a reusable panel that you can use in any dashboard.\\nWhen you make a change to a library panel, that change propagates to all instances of where the panel is used.\\nLibrary panels streamline reuse of panels across multiple dashboards.\"},\"FieldConfigSource\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"defaults\",\"overrides\"],\"properties\":{\"defaults\":{\"$ref\":\"#/definitions/FieldConfig\",\"description\":\"Defaults are the options applied to all fields.\"},\"overrides\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"matcher\",\"properties\"],\"properties\":{\"__systemRef\":{\"type\":\"string\"},\"matcher\":{\"$ref\":\"#/definitions/MatcherConfig\"},\"properties\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/DynamicConfigValue\"}}}},\"description\":\"Overrides are the options applied to specific fields overriding the defaults.\"}},\"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.\\nEach column within this structure is called a field. A field can represent a single time series or table column.\\nField options allow you to change how the data is displayed in your visualizations.\"},\"FieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"displayName\":{\"type\":\"string\",\"description\":\"The display value for this field. This supports template variables blank is auto\"},\"displayNameFromDS\":{\"type\":\"string\",\"description\":\"This can be used by data sources that return and explicit naming structure for values and labels\\nWhen this property is configured, this value is used rather than the default naming strategy.\"},\"description\":{\"type\":\"string\",\"description\":\"Human readable field metadata\"},\"path\":{\"type\":\"string\",\"description\":\"An explicit path to the field in the datasource. When the frame meta includes a path,\\nThis will default to `${frame.meta.path}/${field.name}\\n\\nWhen defined, this value can be used as an identifier within the datasource scope, and\\nmay be used to update the results\"},\"writeable\":{\"type\":\"boolean\",\"description\":\"True if data source can write a value to the path. Auth/authz are supported separately\"},\"filterable\":{\"type\":\"boolean\",\"description\":\"True if data source field supports ad-hoc filters\"},\"unit\":{\"type\":\"string\",\"description\":\"Unit a field should use. The unit you select is applied to all fields except time.\\nYou can use the units ID availables in Grafana or a custom unit.\\nAvailable units in Grafana: https://github.com/grafana/grafana/blob/main/packages/grafana-data/src/valueFormats/categories.ts\\nAs custom unit, you can use the following formats:\\n`suffix:<suffix>` for custom unit that should go after value.\\n`prefix:<prefix>` for custom unit that should go before value.\\n`time:<format>` For custom date time formats type for example `time:YYYY-MM-DD`.\\n`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.\\n`count:<unit>` for a custom count unit.\\n`currency:<unit>` for custom a currency unit.\"},\"decimals\":{\"type\":\"number\",\"description\":\"Specify the number of decimals Grafana includes in the rendered value.\\nIf you leave this field blank, Grafana automatically truncates the number of decimals based on the value.\\nFor example 1.1234 will display as 1.12 and 100.456 will display as 100.\\nTo display all decimals, set the unit to `String`.\"},\"min\":{\"type\":\"number\",\"description\":\"The minimum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.\"},\"max\":{\"type\":\"number\",\"description\":\"The maximum value used in percentage threshold calculations. Leave blank for auto calculation based on all series and fields.\"},\"mappings\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ValueMapping\"},\"description\":\"Convert input values into a display string\"},\"thresholds\":{\"$ref\":\"#/definitions/ThresholdsConfig\",\"description\":\"Map numeric values to states\"},\"color\":{\"$ref\":\"#/definitions/FieldColor\",\"description\":\"Panel color configuration\"},\"links\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/DataLink\"},\"description\":\"The behavior when clicking on a result\"},\"actions\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Action\"},\"description\":\"Define interactive HTTP requests that can be triggered from data visualizations.\"},\"noValue\":{\"type\":\"string\",\"description\":\"Alternative to empty string\"},\"custom\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"custom is specified by the FieldConfig field\\nin panel plugin schemas.\"},\"fieldMinMax\":{\"type\":\"boolean\"}},\"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.\\nEach column within this structure is called a field. A field can represent a single time series or table column.\\nField options allow you to change how the data is displayed in your visualizations.\"},\"ValueMapping\":{\"oneOf\":[{\"$ref\":\"#/definitions/ValueMap\"},{\"$ref\":\"#/definitions/RangeMap\"},{\"$ref\":\"#/definitions/RegexMap\"},{\"$ref\":\"#/definitions/SpecialValueMap\"}],\"description\":\"Allow to transform the visual representation of specific data values in a visualization, irrespective of their original units\"},\"ValueMap\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"options\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/MappingType\"}],\"default\":\"value\"},\"options\":{\"type\":\"object\",\"additionalProperties\":{\"$ref\":\"#/definitions/ValueMappingResult\"},\"description\":\"Map with <value_to_match>: ValueMappingResult. For example: { \\\"10\\\": { text: \\\"Perfection!\\\", color: \\\"green\\\" } }\"}},\"description\":\"Maps text values to a color or different display text and color.\\nFor example, you can configure a value mapping so that all instances of the value 10 appear as Perfection! rather than the number.\"},\"MappingType\":{\"enum\":[\"value\",\"range\",\"regex\",\"special\"],\"type\":\"string\",\"description\":\"Supported value mapping types\\n`value`: 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.\\n`range`: 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.\\n`regex`: 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.\\n`special`: 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.\"},\"ValueMappingResult\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"text\":{\"type\":\"string\",\"description\":\"Text to display when the value matches\"},\"color\":{\"type\":\"string\",\"description\":\"Text to use when the value matches\"},\"icon\":{\"type\":\"string\",\"description\":\"Icon to display when the value matches. Only specific visualizations.\"},\"index\":{\"type\":\"integer\",\"description\":\"Position in the mapping array. Only used internally.\"}},\"description\":\"Result used as replacement with text and color when the value matches\"},\"RangeMap\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"options\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/MappingType\"}],\"default\":\"range\"},\"options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\",\"result\"],\"properties\":{\"from\":{\"anyOf\":[{\"type\":\"number\"},{\"type\":\"null\"}],\"description\":\"Min value of the range. It can be null which means -Infinity\"},\"to\":{\"anyOf\":[{\"type\":\"number\"},{\"type\":\"null\"}],\"description\":\"Max value of the range. It can be null which means +Infinity\"},\"result\":{\"$ref\":\"#/definitions/ValueMappingResult\",\"description\":\"Config to apply when the value is within the range\"}},\"description\":\"Range to match against and the result to apply when the value is within the range\"}},\"description\":\"Maps numerical ranges to a display text and color.\\nFor 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.\"},\"RegexMap\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"options\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/MappingType\"}],\"default\":\"regex\"},\"options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"pattern\",\"result\"],\"properties\":{\"pattern\":{\"type\":\"string\",\"description\":\"Regular expression to match against\"},\"result\":{\"$ref\":\"#/definitions/ValueMappingResult\",\"description\":\"Config to apply when the value matches the regex\"}},\"description\":\"Regular expression to match against and the result to apply when the value matches the regex\"}},\"description\":\"Maps regular expressions to replacement text and a color.\\nFor example, if a value is www.example.com, you can configure a regex value mapping so that Grafana displays www and truncates the domain.\"},\"SpecialValueMap\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"options\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/MappingType\"}],\"default\":\"special\"},\"options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"match\",\"result\"],\"properties\":{\"match\":{\"$ref\":\"#/definitions/SpecialValueMatch\",\"description\":\"Special value to match against\"},\"result\":{\"$ref\":\"#/definitions/ValueMappingResult\",\"description\":\"Config to apply when the value matches the special value\"}}}},\"description\":\"Maps special values like Null, NaN (not a number), and boolean values like true and false to a display text and color.\\nSee SpecialValueMatch to see the list of special values.\\nFor example, you can configure a special value mapping so that null values appear as N/A.\"},\"SpecialValueMatch\":{\"enum\":[\"true\",\"false\",\"null\",\"nan\",\"null+nan\",\"empty\"],\"type\":\"string\",\"description\":\"Special value types supported by the `SpecialValueMap`\"},\"ThresholdsConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"steps\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/ThresholdsMode\",\"description\":\"Thresholds mode.\"},\"steps\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Threshold\"},\"description\":\"Must be sorted by 'value', first value is always -Infinity\"}},\"description\":\"Thresholds configuration for the panel\"},\"ThresholdsMode\":{\"enum\":[\"absolute\",\"percentage\"],\"type\":\"string\",\"description\":\"Thresholds can either be `absolute` (specific number) or `percentage` (relative to min or max, it will be values between 0 and 1).\"},\"Threshold\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"color\"],\"properties\":{\"value\":{\"anyOf\":[{\"type\":\"number\"},{\"type\":\"null\"}],\"description\":\"Value represents a specified metric for the threshold, which triggers a visual change in the dashboard when this value is met or exceeded.\\nNulls currently appear here when serializing -Infinity to JSON.\"},\"color\":{\"type\":\"string\",\"description\":\"Color represents the color of the visual change that will occur in the dashboard when the threshold value is met or exceeded.\"},\"valueExpr\":{\"type\":\"string\",\"description\":\"Optional dashboard-variable expression (e.g. `$myVar`) resolved at render time; `value` is the numeric fallback when the expression cannot be resolved to a single finite number.\"}},\"description\":\"User-defined value for a metric that triggers visual changes in a panel when this value is met or exceeded\\nThey are used to conditionally style and color visualizations based on query results , and can be applied to most visualizations.\"},\"FieldColor\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/FieldColorModeId\",\"description\":\"The main color scheme mode.\"},\"fixedColor\":{\"type\":\"string\",\"description\":\"The fixed color value for fixed or shades color modes.\"},\"seriesBy\":{\"$ref\":\"#/definitions/FieldColorSeriesByMode\",\"description\":\"Some visualizations need to know how to assign a series color from by value color schemes.\"}},\"description\":\"Map a field to a color.\"},\"FieldColorModeId\":{\"enum\":[\"thresholds\",\"palette-classic\",\"palette-classic-by-name\",\"continuous-viridis\",\"continuous-magma\",\"continuous-plasma\",\"continuous-inferno\",\"continuous-cividis\",\"continuous-GrYlRd\",\"continuous-RdYlGr\",\"continuous-BlYlRd\",\"continuous-YlRd\",\"continuous-BlPu\",\"continuous-YlBl\",\"continuous-blues\",\"continuous-reds\",\"continuous-greens\",\"continuous-purples\",\"fixed\",\"shades\"],\"type\":\"string\",\"description\":\"Color mode for a field. You can specify a single color, or select a continuous (gradient) color schemes, based on a value.\\nContinuous color interpolates a color using the percentage of a value relative to min and max.\\nAccepted values are:\\n`thresholds`: From thresholds. Informs Grafana to take the color from the matching threshold\\n`palette-classic`: Classic palette. Grafana will assign color by looking up a color in a palette by series index. Useful for Graphs and pie charts and other categorical data visualizations\\n`palette-classic-by-name`: Classic palette (by name). Grafana will assign color by looking up a color in a palette by series name. Useful for Graphs and pie charts and other categorical data visualizations\\n`continuous-GrYlRd`: ontinuous Green-Yellow-Red palette mode\\n`continuous-RdYlGr`: Continuous Red-Yellow-Green palette mode\\n`continuous-BlYlRd`: Continuous Blue-Yellow-Red palette mode\\n`continuous-YlRd`: Continuous Yellow-Red palette mode\\n`continuous-BlPu`: Continuous Blue-Purple palette mode\\n`continuous-YlBl`: Continuous Yellow-Blue palette mode\\n`continuous-blues`: Continuous Blue palette mode\\n`continuous-reds`: Continuous Red palette mode\\n`continuous-greens`: Continuous Green palette mode\\n`continuous-purples`: Continuous Purple palette mode\\n`shades`: Shades of a single color. Specify a single color, useful in an override rule.\\n`fixed`: Fixed color mode. Specify a single color, useful in an override rule.\"},\"FieldColorSeriesByMode\":{\"enum\":[\"min\",\"max\",\"last\"],\"type\":\"string\",\"description\":\"Defines how to assign a series color from \\\"by value\\\" color schemes. For example for an aggregated data points like a timeseries, the color can be assigned by the min, max or last value.\"},\"Action\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"title\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ActionType\"},\"title\":{\"type\":\"string\"},\"fetch\":{\"$ref\":\"#/definitions/FetchOptions\"},\"infinity\":{\"$ref\":\"#/definitions/InfinityOptions\"},\"confirmation\":{\"type\":\"string\"},\"oneClick\":{\"type\":\"boolean\"},\"variables\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ActionVariable\"}},\"style\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"backgroundColor\":{\"type\":\"string\"}}}},\"description\":\"Dashboard action\"},\"ActionType\":{\"enum\":[\"fetch\",\"infinity\"],\"type\":\"string\",\"description\":\"Dashboard action type\"},\"FetchOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"method\",\"url\"],\"properties\":{\"method\":{\"$ref\":\"#/definitions/HttpRequestMethod\"},\"url\":{\"type\":\"string\"},\"body\":{\"type\":\"string\"},\"queryParams\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"description\":\"These are 2D arrays of strings, each representing a key-value pair\\nWe are defining this way because we can't generate a go struct that\\nthat would have exactly two strings in each sub-array\"},\"headers\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}},\"description\":\"Fetch options\"},\"HttpRequestMethod\":{\"enum\":[\"GET\",\"PUT\",\"POST\",\"DELETE\",\"PATCH\"],\"type\":\"string\"},\"InfinityOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"method\",\"url\",\"datasourceUid\"],\"properties\":{\"method\":{\"$ref\":\"#/definitions/HttpRequestMethod\"},\"url\":{\"type\":\"string\"},\"body\":{\"type\":\"string\"},\"queryParams\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"description\":\"These are 2D arrays of strings, each representing a key-value pair\\nWe are defining them this way because we can't generate a go struct that\\nthat would have exactly two strings in each sub-array\"},\"headers\":{\"type\":\"array\",\"items\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"datasourceUid\":{\"type\":\"string\"}},\"description\":\"Infinity options\"},\"ActionVariable\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"key\",\"name\",\"type\"],\"properties\":{\"key\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/ActionVariableType\"}],\"default\":\"string\"}}},\"ActionVariableType\":{\"enum\":[\"string\"],\"type\":\"string\",\"description\":\"Action variable type\"},\"DynamicConfigValue\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"default\":\"\"},\"value\":{}}},\"RowPanel\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"collapsed\",\"id\",\"panels\"],\"properties\":{\"type\":{\"type\":\"string\",\"const\":\"row\",\"description\":\"The panel type\"},\"collapsed\":{\"type\":\"boolean\",\"description\":\"Whether this row should be collapsed or not.\",\"default\":false},\"title\":{\"type\":\"string\",\"description\":\"Row title\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"Name of default datasource for the row\"},\"gridPos\":{\"$ref\":\"#/definitions/GridPos\",\"description\":\"Row grid position\"},\"id\":{\"type\":\"integer\",\"description\":\"Unique identifier of the panel. Generated by Grafana when creating a new panel. It must be unique within a dashboard, but not globally.\"},\"panels\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Panel\"},\"description\":\"List of panels in the row\"},\"repeat\":{\"type\":\"string\",\"description\":\"Name of template variable to repeat for.\"}},\"description\":\"Row panel\"},\"VariableModel\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"name\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/VariableType\",\"description\":\"Type of variable\"},\"name\":{\"type\":\"string\",\"description\":\"Name of variable\"},\"label\":{\"type\":\"string\",\"description\":\"Optional display name\"},\"hide\":{\"$ref\":\"#/definitions/VariableHide\",\"description\":\"Visibility configuration for the variable\"},\"skipUrlSync\":{\"type\":\"boolean\",\"description\":\"Whether the variable value should be managed by URL query params or not\",\"default\":false},\"description\":{\"type\":\"string\",\"description\":\"Description of variable. It can be defined but `null`.\"},\"query\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"object\",\"additionalProperties\":{}}],\"description\":\"Query used to fetch values for a variable: a string, or the datasource's own query object (Prometheus writes { query, qryType, refId }).\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"Data source used to fetch values for a variable. It can be defined but `null`.\"},\"current\":{\"anyOf\":[{\"$ref\":\"#/definitions/VariableOption\"},{\"type\":\"object\",\"additionalProperties\":false,\"maxProperties\":0}],\"description\":\"Shows current selected variable text/value on the dashboard. `{}` before the variable has been resolved.\"},\"multi\":{\"type\":\"boolean\",\"description\":\"Whether multiple values can be selected or not from variable value list\",\"default\":false},\"allowCustomValue\":{\"type\":\"boolean\",\"description\":\"Allow custom values to be entered in the variable\",\"default\":true},\"options\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/VariableOption\"},\"description\":\"Options that can be selected for a variable.\"},\"refresh\":{\"$ref\":\"#/definitions/VariableRefresh\",\"description\":\"Options to config when to refresh a variable\"},\"sort\":{\"$ref\":\"#/definitions/VariableSort\",\"description\":\"Options sort order\"},\"includeAll\":{\"type\":\"boolean\",\"description\":\"Whether all value option is available or not\",\"default\":false},\"allValue\":{\"type\":\"string\",\"description\":\"Custom all value\"},\"regex\":{\"type\":\"string\",\"description\":\"Optional field, if you want to extract part of a series name or metric node segment.\\nNamed capture groups can be used to separate the display text and value.\"},\"staticOptions\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/VariableOption\"},\"description\":\"Additional static options for query variable\"},\"staticOptionsOrder\":{\"enum\":[\"before\",\"after\",\"sorted\"],\"type\":\"string\",\"description\":\"Ordering of static options in relation to options returned from data source for query variable\"},\"auto\":{\"type\":\"boolean\",\"description\":\"Dynamically calculates interval by dividing time range by the count specified.\",\"default\":false},\"auto_min\":{\"type\":\"string\",\"description\":\"The minimum threshold below which the step count intervals will not divide the time.\",\"default\":\"10s\"},\"auto_count\":{\"type\":\"integer\",\"exclusiveMinimum\":0,\"description\":\"How many times the current time range should be divided to calculate the value, similar to the Max data points query option.\\nFor example, if the current visible time range is 30 minutes, then the auto interval groups the data into 30 one-minute increments.\",\"default\":30},\"definition\":{\"type\":\"string\"},\"enableGroupBy\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Whether the group-by operator is enabled in the ad hoc filter combobox.\"},\"valuesFormat\":{\"type\":\"string\",\"enum\":[\"csv\",\"json\"],\"default\":\"csv\",\"description\":\"Whether a custom variable defines its values as CSV or JSON.\"},\"regexApplyTo\":{\"type\":\"string\",\"enum\":[\"value\",\"text\"],\"description\":\"Whether regex applies to the variable value or its display text.\"},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/AdHocFilter\"},\"description\":\"Ad hoc variable: the filters currently applied.\"},\"baseFilters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/AdHocFilter\"},\"description\":\"Ad hoc variable: filters always applied to the key lookup, not shown in the UI.\"},\"defaultKeys\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"additionalProperties\":{}},\"description\":\"Ad hoc variable: static keys that override the datasource's.\"},\"defaultValue\":{\"$ref\":\"#/definitions/VariableOption\",\"description\":\"Group-by variable: the default selection.\"}},\"description\":\"A variable is a placeholder for a value. You can use variables in metric queries and in panel titles.\"},\"VariableType\":{\"enum\":[\"query\",\"adhoc\",\"groupby\",\"constant\",\"datasource\",\"interval\",\"textbox\",\"custom\",\"system\",\"snapshot\",\"switch\"],\"type\":\"string\",\"description\":\"Dashboard variable type\\n`query`: Query-generated list of values such as metric names, server names, sensor IDs, data centers, and so on.\\n`adhoc`: Key/value filters that are automatically added to all metric queries for a data source (Prometheus, Loki, InfluxDB, and Elasticsearch only).\\n`constant`: \\tDefine a hidden constant.\\n`datasource`: Quickly change the data source for an entire dashboard.\\n`interval`: Interval variables represent time spans.\\n`textbox`: Display a free text input field with an optional default value.\\n`custom`: Define the variable options manually using a comma-separated list.\\n`system`: Variables defined by Grafana. See: https://grafana.com/docs/grafana/latest/dashboards/variables/add-template-variables/#global-variables\\n`switch`: Boolean variables rendered as a switch\"},\"VariableHide\":{\"enum\":[0,1,2,3],\"type\":\"integer\",\"description\":\"Determine if the variable shows on dashboard\\nAccepted values are 0 (show label and value), 1 (show value only), 2 (show nothing), 3 (show under the controls dropdown menu).\"},\"VariableOption\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"text\",\"value\"],\"properties\":{\"selected\":{\"type\":\"boolean\",\"description\":\"Whether the option is selected or not\"},\"text\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}],\"description\":\"Text to be displayed for the option\"},\"value\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}],\"description\":\"Value of the option\"},\"properties\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"string\"},\"description\":\"Additional properties for multi-props variables\"}},\"description\":\"Option to be selected in a variable.\"},\"VariableRefresh\":{\"enum\":[0,1,2],\"type\":\"integer\",\"description\":\"Options to config when to refresh a variable\\n`0`: Never refresh the variable\\n`1`: Queries the data source every time the dashboard loads.\\n`2`: Queries the data source when the dashboard time range changes.\"},\"VariableSort\":{\"enum\":[0,1,2,3,4,5,6,7,8],\"type\":\"integer\",\"description\":\"Sort variable options\\nAccepted values are:\\n`0`: No sorting\\n`1`: Alphabetical ASC\\n`2`: Alphabetical DESC\\n`3`: Numerical ASC\\n`4`: Numerical DESC\\n`5`: Alphabetical Case Insensitive ASC\\n`6`: Alphabetical Case Insensitive DESC\\n`7`: Natural ASC\\n`8`: Natural DESC\"},\"AnnotationContainer\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"list\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/AnnotationQuery\"},\"description\":\"List of annotations\"}},\"description\":\"Contains the list of annotations that are associated with the dashboard.\\nAnnotations are used to overlay event markers and overlay event tags on graphs.\\nGrafana comes with a native annotation store and the ability to add annotation events directly from the graph panel or via the HTTP API.\\nSee https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/annotate-visualizations/\"},\"AnnotationQuery\":{\"type\":\"object\",\"additionalProperties\":{},\"required\":[\"name\",\"enable\",\"iconColor\"],\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Name of annotation.\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"Datasource where the annotations data is\"},\"enable\":{\"type\":\"boolean\",\"description\":\"When enabled the annotation query is issued with every dashboard refresh\",\"default\":true},\"hide\":{\"type\":\"boolean\",\"description\":\"Annotation queries can be toggled on or off at the top of the dashboard.\\nWhen hide is true, the toggle is not shown in the dashboard.\",\"default\":false},\"iconColor\":{\"type\":\"string\",\"description\":\"Color to use for the annotation event markers\"},\"filter\":{\"$ref\":\"#/definitions/AnnotationPanelFilter\",\"description\":\"Filters to apply when fetching annotations\"},\"target\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"TODO.. this should just be a normal query target\"},\"type\":{\"type\":\"string\",\"description\":\"TODO -- this should not exist here, it is based on the --grafana-- datasource\"},\"builtIn\":{\"type\":\"number\",\"description\":\"Set to 1 for the standard annotation query all dashboards have by default.\",\"default\":0},\"placement\":{\"allOf\":[{\"$ref\":\"#/definitions/AnnotationQueryPlacement\"}],\"default\":\"inControlsMenu\",\"description\":\"Placement can be used to display the annotation query somewhere else on the dashboard other than the default location.\"},\"expr\":{\"type\":\"string\"},\"textFormat\":{\"type\":\"string\",\"description\":\"Format for Prometheus annotation text. Label values can be interpolated with templates like {{instance}}.\"},\"titleFormat\":{\"type\":\"string\",\"description\":\"Format for Prometheus and Loki annotation titles. Label values can be interpolated with templates like {{instance}}.\"},\"tagKeys\":{\"type\":\"string\",\"description\":\"Comma-separated label keys used as annotation tags.\"},\"step\":{\"type\":\"string\",\"description\":\"Legacy Prometheus annotation query step interval.\"},\"useValueForTime\":{\"type\":\"boolean\",\"description\":\"Use the Prometheus series value as the annotation timestamp.\"},\"mappings\":{\"type\":\"object\",\"additionalProperties\":{\"$ref\":\"#/definitions/AnnotationEventFieldMapping\"},\"description\":\"Mappings define how to convert data frame fields to annotation event fields.\"}},\"description\":\"TODO docs\\nFROM: AnnotationQuery in grafana-data/src/types/annotations.ts\"},\"AnnotationPanelFilter\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"ids\"],\"properties\":{\"exclude\":{\"type\":\"boolean\",\"description\":\"Should the specified panels be included or excluded\",\"default\":false},\"ids\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"Panel IDs that should be included or excluded\"}}},\"AnnotationTarget\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"limit\",\"matchAny\",\"tags\",\"type\"],\"properties\":{\"limit\":{\"type\":\"integer\",\"description\":\"Only required/valid for the grafana datasource...\\nbut code+tests is already depending on it so hard to change\"},\"matchAny\":{\"type\":\"boolean\",\"description\":\"Only required/valid for the grafana datasource...\\nbut code+tests is already depending on it so hard to change\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Only required/valid for the grafana datasource...\\nbut code+tests is already depending on it so hard to change\"},\"type\":{\"type\":\"string\",\"description\":\"Only required/valid for the grafana datasource...\\nbut code+tests is already depending on it so hard to change\"}},\"description\":\"TODO: this should be a regular DataQuery that depends on the selected dashboard\\nthese match the properties of the \\\"grafana\\\" datasouce that is default in most dashboards\"},\"AnnotationQueryPlacement\":{\"enum\":[\"inControlsMenu\"],\"type\":\"string\",\"description\":\"Annotation Query placement. Defines where the annotation query should be displayed.\\n- \\\"inControlsMenu\\\" renders the annotation query in the dashboard controls dropdown menu\"},\"Snapshot\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"created\",\"expires\",\"external\",\"externalUrl\",\"originalUrl\",\"id\",\"key\",\"name\",\"orgId\",\"updated\",\"userId\"],\"properties\":{\"created\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"Time when the snapshot was created\"},\"expires\":{\"type\":\"string\",\"description\":\"Time when the snapshot expires, default is never to expire\"},\"external\":{\"type\":\"boolean\",\"description\":\"Is the snapshot saved in an external grafana instance\"},\"externalUrl\":{\"type\":\"string\",\"description\":\"external url, if snapshot was shared in external grafana instance\"},\"originalUrl\":{\"type\":\"string\",\"description\":\"original url, url of the dashboard that was snapshotted\"},\"id\":{\"type\":\"integer\",\"description\":\"Unique identifier of the snapshot\"},\"key\":{\"type\":\"string\",\"description\":\"Optional, defined the unique key of the snapshot, required if external is true\"},\"name\":{\"type\":\"string\",\"description\":\"Optional, name of the snapshot\"},\"orgId\":{\"type\":\"integer\",\"description\":\"org id of the snapshot\"},\"updated\":{\"type\":\"string\",\"format\":\"date-time\",\"description\":\"last time when the snapshot was updated\"},\"url\":{\"type\":\"string\",\"description\":\"url of the snapshot, if snapshot was shared internally\"},\"userId\":{\"type\":\"integer\",\"description\":\"user id of the snapshot creator\"},\"dashboard\":{\"$ref\":\"#/definitions/Dashboard\"}},\"description\":\"A dashboard snapshot shares an interactive dashboard publicly.\\nIt is a read-only version of a dashboard, and is not editable.\\nIt is possible to create a snapshot of a snapshot.\\nGrafana strips away all sensitive information from the dashboard.\\nSensitive information stripped: queries (metric, template,annotation) and panel links.\"},\"AnnotationEventFieldSource\":{\"enum\":[\"field\",\"text\",\"skip\"],\"type\":\"string\",\"description\":\"Annotation event field source. Defines how to obtain the value for an annotation event field.\\n- \\\"field\\\": Find the value with a matching key (default)\\n- \\\"text\\\": Write a constant string into the value\\n- \\\"skip\\\": Do not include the field\"},\"AnnotationEventFieldMapping\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"source\":{\"$ref\":\"#/definitions/AnnotationEventFieldSource\",\"description\":\"Source type for the field value.\"},\"value\":{\"type\":\"string\",\"description\":\"Constant value to use when source is \\\"text\\\".\"},\"regex\":{\"type\":\"string\",\"description\":\"Regular expression to apply to the field value.\"}},\"description\":\"Annotation event field mapping. Defines how to map a data frame field to an annotation event field.\"},\"ExportInput\":{\"type\":\"object\",\"additionalProperties\":{},\"required\":[\"name\",\"type\"],\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Placeholder name, used as `${name}` in the dashboard.\"},\"label\":{\"type\":\"string\"},\"description\":{\"type\":\"string\"},\"type\":{\"type\":\"string\",\"description\":\"`datasource` or `constant`.\"},\"pluginId\":{\"type\":\"string\"},\"pluginName\":{\"type\":\"string\"},\"value\":{\"description\":\"The value a constant input carries.\"}},\"description\":\"One entry of an export's `__inputs`.\"},\"ExportRequirement\":{\"type\":\"object\",\"additionalProperties\":{},\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"`grafana`, `panel` or `datasource`.\"},\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"version\":{\"type\":\"string\"}},\"description\":\"One entry of an export's `__requires`.\"},\"LibraryElementExport\":{\"type\":\"object\",\"additionalProperties\":{},\"required\":[\"uid\",\"name\",\"model\"],\"properties\":{\"uid\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"kind\":{\"type\":\"integer\"},\"model\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"The library panel's own panel JSON. GRAF107 checks it as a panel (src/schema-validate.ts), not here.\"}},\"description\":\"One library panel embedded in an export's `__elements`.\"},\"PanelLink\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"title\"],\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"Title to display with the link\"},\"url\":{\"type\":\"string\",\"description\":\"Link URL. Supports variables, e.g. ${__url_time_range}.\"},\"targetBlank\":{\"type\":\"boolean\",\"description\":\"If true, the link will be opened in a new tab\"},\"type\":{\"$ref\":\"#/definitions/DashboardLinkType\"},\"icon\":{\"type\":\"string\"},\"tooltip\":{\"type\":\"string\"},\"tags\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"asDropdown\":{\"type\":\"boolean\"},\"includeVars\":{\"type\":\"boolean\"},\"keepTime\":{\"type\":\"boolean\"},\"placement\":{\"$ref\":\"#/definitions/DashboardLinkPlacement\"},\"oneClick\":{\"type\":\"boolean\"}},\"description\":\"A panel link: the fields Grafana's panel link editor writes, plus DashboardLink's.\"},\"DataLink\":{\"type\":\"object\",\"additionalProperties\":{},\"properties\":{\"title\":{\"type\":\"string\"},\"url\":{\"type\":\"string\",\"description\":\"Link URL. Supports data variables, e.g. ${__field.labels.pod}.\"},\"targetBlank\":{\"type\":\"boolean\"},\"oneClick\":{\"type\":\"boolean\"},\"internal\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"A query in another datasource (Explore link).\"},\"origin\":{}},\"description\":\"A data link on a field. Open: the CUE leaves these items unconstrained.\"},\"ControlSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"group\"],\"properties\":{\"type\":{\"type\":\"string\",\"const\":\"datasource\"},\"group\":{\"type\":\"string\",\"description\":\"The plugin type-id\"}}},\"MatcherScope\":{\"type\":\"string\",\"enum\":[\"series\",\"nested\",\"annotation\",\"exemplar\"]},\"AdHocFilter\":{\"type\":\"object\",\"additionalProperties\":{},\"required\":[\"key\",\"operator\"],\"properties\":{\"key\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\",\"description\":\"=, !=, =~, !~, <, >, =| or !=|\"},\"value\":{\"type\":\"string\"},\"values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"origin\":{\"type\":\"string\"},\"condition\":{\"type\":\"string\",\"deprecated\":true}},\"description\":\"One ad hoc filter.\"}}}",
|
|
12
|
+
"timeseries": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"legend\",\"tooltip\"],\"properties\":{\"timezone\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/TimeZone\"}},\"legend\":{\"$ref\":\"#/definitions/VizLegendOptions\",\"default\":{\"calcs\":[],\"displayMode\":\"list\",\"placement\":\"bottom\"}},\"tooltip\":{\"$ref\":\"#/definitions/VizTooltipOptions\"},\"orientation\":{\"$ref\":\"#/definitions/VizOrientation\"}}},\"FieldConfig\":{\"$ref\":\"#/definitions/GraphFieldConfig\"},\"TimeZone\":{\"type\":\"string\",\"description\":\"A specific timezone from https://en.wikipedia.org/wiki/Tz_database\"},\"VizLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\",\"default\":\"list\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\",\"default\":\"bottom\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[]}},\"description\":\"TODO docs\"},\"VizTooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"sort\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\"},\"maxWidth\":{\"type\":\"number\"},\"maxHeight\":{\"type\":\"number\"},\"hideZeros\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"VizOrientation\":{\"enum\":[\"auto\",\"vertical\",\"horizontal\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphFieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"drawStyle\":{\"$ref\":\"#/definitions/GraphDrawStyle\"},\"gradientMode\":{\"$ref\":\"#/definitions/GraphGradientMode\"},\"thresholdsStyle\":{\"$ref\":\"#/definitions/GraphThresholdsStyleConfig\"},\"transform\":{\"$ref\":\"#/definitions/GraphTransform\"},\"lineColor\":{\"type\":\"string\"},\"lineWidth\":{\"type\":\"number\"},\"lineInterpolation\":{\"$ref\":\"#/definitions/LineInterpolation\"},\"lineStyle\":{\"$ref\":\"#/definitions/LineStyle\"},\"fillColor\":{\"type\":\"string\"},\"fillOpacity\":{\"type\":\"number\"},\"showPoints\":{\"$ref\":\"#/definitions/VisibilityMode\"},\"pointSize\":{\"type\":\"number\"},\"pointColor\":{\"type\":\"string\"},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"barAlignment\":{\"$ref\":\"#/definitions/BarAlignment\"},\"barWidthFactor\":{\"type\":\"number\"},\"stacking\":{\"$ref\":\"#/definitions/StackingConfig\"},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"},\"insertNulls\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"number\"}]},\"spanNulls\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"number\"}],\"description\":\"Indicate if null values should be treated as gaps or connected.\\nWhen the value is a number, it represents the maximum delta in the\\nX axis that should be considered connected. For timeseries, this is milliseconds\"},\"fillBelowTo\":{\"type\":\"string\"},\"pointSymbol\":{\"type\":\"string\"},\"axisBorderShow\":{\"type\":\"boolean\"},\"barMaxWidth\":{\"type\":\"number\"},\"showValues\":{\"type\":\"boolean\",\"description\":\"Show point values on the graph.\"}},\"description\":\"TODO docs\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"SortOrder\":{\"enum\":[\"asc\",\"desc\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphDrawStyle\":{\"enum\":[\"line\",\"bars\",\"points\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphGradientMode\":{\"enum\":[\"none\",\"opacity\",\"hue\",\"scheme\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphThresholdsStyleConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/GraphThresholdsStyleMode\"}},\"description\":\"TODO docs\"},\"GraphTransform\":{\"enum\":[\"constant\",\"negative-Y\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LineInterpolation\":{\"enum\":[\"linear\",\"smooth\",\"stepBefore\",\"stepAfter\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LineStyle\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"fill\":{\"enum\":[\"solid\",\"dash\",\"dot\",\"square\",\"accessible\"],\"type\":\"string\"},\"dash\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}}},\"description\":\"TODO docs\"},\"VisibilityMode\":{\"enum\":[\"auto\",\"never\",\"always\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"BarAlignment\":{\"enum\":[-1,0,1],\"type\":\"integer\",\"description\":\"TODO docs\"},\"StackingConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"mode\":{\"$ref\":\"#/definitions/StackingMode\"},\"group\":{\"type\":\"string\"}},\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"GraphThresholdsStyleMode\":{\"enum\":[\"off\",\"line\",\"dashed\",\"area\",\"line+area\",\"dashed+area\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"StackingMode\":{\"enum\":[\"none\",\"normal\",\"percent\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
13
|
+
"stat": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"graphMode\",\"colorMode\",\"justifyMode\",\"textMode\",\"wideLayout\",\"showPercentChange\",\"reduceOptions\",\"percentChangeColorMode\",\"orientation\"],\"properties\":{\"graphMode\":{\"$ref\":\"#/definitions/BigValueGraphMode\",\"default\":\"area\"},\"colorMode\":{\"$ref\":\"#/definitions/BigValueColorMode\",\"default\":\"value\"},\"justifyMode\":{\"$ref\":\"#/definitions/BigValueJustifyMode\",\"default\":\"auto\"},\"textMode\":{\"$ref\":\"#/definitions/BigValueTextMode\",\"default\":\"auto\"},\"wideLayout\":{\"type\":\"boolean\",\"default\":true},\"showPercentChange\":{\"type\":\"boolean\",\"default\":false},\"reduceOptions\":{\"$ref\":\"#/definitions/ReduceDataOptions\"},\"text\":{\"$ref\":\"#/definitions/VizTextDisplayOptions\"},\"percentChangeColorMode\":{\"$ref\":\"#/definitions/PercentChangeColorMode\",\"default\":\"standard\"},\"orientation\":{\"$ref\":\"#/definitions/VizOrientation\"}}},\"BigValueGraphMode\":{\"enum\":[\"none\",\"line\",\"area\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"BigValueColorMode\":{\"enum\":[\"value\",\"background\",\"background_solid\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"BigValueJustifyMode\":{\"enum\":[\"auto\",\"center\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"BigValueTextMode\":{\"enum\":[\"auto\",\"value\",\"value_and_name\",\"name\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ReduceDataOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"calcs\"],\"properties\":{\"values\":{\"type\":\"boolean\",\"description\":\"If true show each row value\"},\"limit\":{\"type\":\"number\",\"description\":\"if showing all values limit\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"When !values, pick one value for the whole field\"},\"fields\":{\"type\":\"string\",\"description\":\"Which fields to show. By default this is only numeric fields\"}},\"description\":\"TODO docs\"},\"VizTextDisplayOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"titleSize\":{\"type\":\"number\",\"description\":\"Explicit title text size\"},\"valueSize\":{\"type\":\"number\",\"description\":\"Explicit value text size\"},\"percentSize\":{\"type\":\"number\",\"description\":\"Explicit percent text size\"}},\"description\":\"TODO docs\"},\"PercentChangeColorMode\":{\"enum\":[\"standard\",\"inverted\",\"same_as_value\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"VizOrientation\":{\"enum\":[\"auto\",\"vertical\",\"horizontal\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
14
|
+
"gauge": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"showThresholdLabels\",\"showThresholdMarkers\",\"sizing\",\"minVizWidth\",\"reduceOptions\",\"minVizHeight\",\"orientation\"],\"properties\":{\"showThresholdLabels\":{\"type\":\"boolean\",\"default\":false},\"showThresholdMarkers\":{\"type\":\"boolean\",\"default\":true},\"sizing\":{\"$ref\":\"#/definitions/BarGaugeSizing\",\"default\":\"auto\"},\"minVizWidth\":{\"type\":\"integer\",\"default\":75},\"reduceOptions\":{\"$ref\":\"#/definitions/ReduceDataOptions\"},\"text\":{\"$ref\":\"#/definitions/VizTextDisplayOptions\"},\"minVizHeight\":{\"type\":\"integer\",\"default\":75},\"orientation\":{\"$ref\":\"#/definitions/VizOrientation\"}}},\"BarGaugeSizing\":{\"enum\":[\"auto\",\"manual\"],\"type\":\"string\",\"description\":\"Allows for the bar gauge size to be set explicitly\"},\"ReduceDataOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"calcs\"],\"properties\":{\"values\":{\"type\":\"boolean\",\"description\":\"If true show each row value\"},\"limit\":{\"type\":\"number\",\"description\":\"if showing all values limit\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"When !values, pick one value for the whole field\"},\"fields\":{\"type\":\"string\",\"description\":\"Which fields to show. By default this is only numeric fields\"}},\"description\":\"TODO docs\"},\"VizTextDisplayOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"titleSize\":{\"type\":\"number\",\"description\":\"Explicit title text size\"},\"valueSize\":{\"type\":\"number\",\"description\":\"Explicit value text size\"},\"percentSize\":{\"type\":\"number\",\"description\":\"Explicit percent text size\"}},\"description\":\"TODO docs\"},\"VizOrientation\":{\"enum\":[\"auto\",\"vertical\",\"horizontal\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
15
|
+
"table": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"frameIndex\",\"showHeader\"],\"properties\":{\"frameIndex\":{\"type\":\"number\",\"description\":\"Represents the index of the selected frame\",\"default\":0},\"showHeader\":{\"type\":\"boolean\",\"description\":\"Controls whether the panel should show the header\",\"default\":true},\"showTypeIcons\":{\"type\":\"boolean\",\"description\":\"Controls whether the header should show icons for the column types\",\"default\":false},\"sortBy\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/TableSortByFieldState\"},\"description\":\"Used to control row sorting\"},\"footer\":{\"$ref\":\"#/definitions/TableFooterOptions\",\"description\":\"Controls footer options\",\"default\":{\"countRows\":false,\"reducer\":null,\"show\":false}},\"cellHeight\":{\"$ref\":\"#/definitions/TableCellHeight\",\"description\":\"Controls the height of the rows\",\"default\":\"sm\"}}},\"FieldConfig\":{\"$ref\":\"#/definitions/TableFieldOptions\"},\"TableSortByFieldState\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayName\"],\"properties\":{\"displayName\":{\"type\":\"string\",\"description\":\"Sets the display name of the field to sort by\"},\"desc\":{\"type\":\"boolean\",\"description\":\"Flag used to indicate descending sort order\"}},\"description\":\"Sort by field state\"},\"TableFooterOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"show\",\"reducer\"],\"properties\":{\"show\":{\"type\":\"boolean\"},\"reducer\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"actually 1 value\"},\"fields\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"enablePagination\":{\"type\":\"boolean\"},\"countRows\":{\"type\":\"boolean\"}},\"description\":\"Footer options\"},\"TableCellHeight\":{\"enum\":[\"sm\",\"md\",\"lg\",\"auto\"],\"type\":\"string\",\"description\":\"Height of a table cell\"},\"TableFieldOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"align\",\"inspect\"],\"properties\":{\"width\":{\"type\":\"number\"},\"minWidth\":{\"type\":\"number\"},\"align\":{\"$ref\":\"#/definitions/FieldTextAlignment\",\"default\":\"auto\"},\"displayMode\":{\"$ref\":\"#/definitions/TableCellDisplayMode\",\"description\":\"This field is deprecated in favor of using cellOptions\"},\"cellOptions\":{\"anyOf\":[{\"$ref\":\"#/definitions/TableCellOptions\"},{\"type\":\"null\"}]},\"hidden\":{\"type\":\"boolean\",\"description\":\"?? default is missing or false ??\"},\"inspect\":{\"type\":\"boolean\",\"default\":false},\"filterable\":{\"type\":\"boolean\"},\"hideHeader\":{\"type\":\"boolean\",\"description\":\"Hides any header for a column, useful for columns that show some static content or buttons.\"},\"footer\":{\"$ref\":\"#/definitions/TableFieldFooterOptions\",\"description\":\"options for the footer for this field\"}},\"description\":\"Field options for each field within a table (e.g 10, \\\"The String\\\", 64.20, etc.)\\nGenerally defines alignment, filtering capabilties, display options, etc.\"},\"FieldTextAlignment\":{\"enum\":[\"auto\",\"left\",\"right\",\"center\"],\"type\":\"string\",\"description\":\"TODO -- should not be table specific!\\nTODO docs\"},\"TableCellDisplayMode\":{\"enum\":[\"auto\",\"color-text\",\"color-background\",\"color-background-solid\",\"gradient-gauge\",\"lcd-gauge\",\"json-view\",\"basic\",\"image\",\"gauge\",\"sparkline\",\"data-links\",\"custom\",\"actions\",\"pill\",\"markdown\",\"geo\"],\"type\":\"string\",\"description\":\"Internally, this is the \\\"type\\\" of cell that's being displayed\\nin the table such as colored text, JSON, gauge, etc.\\nThe color-background-solid, gradient-gauge, and lcd-gauge\\nmodes are deprecated in favor of new cell subOptions\"},\"TableCellOptions\":{\"oneOf\":[{\"$ref\":\"#/definitions/TableAutoCellOptions\"},{\"$ref\":\"#/definitions/TableSparklineCellOptions\"},{\"$ref\":\"#/definitions/TableBarGaugeCellOptions\"},{\"$ref\":\"#/definitions/TableColoredBackgroundCellOptions\"},{\"$ref\":\"#/definitions/TableColorTextCellOptions\"},{\"$ref\":\"#/definitions/TableImageCellOptions\"},{\"$ref\":\"#/definitions/TableDataLinksCellOptions\"},{\"$ref\":\"#/definitions/TableActionsCellOptions\"},{\"$ref\":\"#/definitions/TableJsonViewCellOptions\"},{\"$ref\":\"#/definitions/TablePillCellOptions\"},{\"$ref\":\"#/definitions/TableMarkdownCellOptions\"},{\"$ref\":\"#/definitions/TableGeoCellOptions\"}],\"description\":\"Table cell options. Each cell has a display mode\\nand other potential options for that display.\"},\"TableAutoCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"auto\"},\"wrapText\":{\"type\":\"boolean\"}},\"description\":\"Auto mode table cell options\"},\"TableSparklineCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"sparkline\"},\"drawStyle\":{\"$ref\":\"#/definitions/GraphDrawStyle\"},\"gradientMode\":{\"$ref\":\"#/definitions/GraphGradientMode\"},\"thresholdsStyle\":{\"$ref\":\"#/definitions/GraphThresholdsStyleConfig\"},\"transform\":{\"$ref\":\"#/definitions/GraphTransform\"},\"lineColor\":{\"type\":\"string\"},\"lineWidth\":{\"type\":\"number\"},\"lineInterpolation\":{\"$ref\":\"#/definitions/LineInterpolation\"},\"lineStyle\":{\"$ref\":\"#/definitions/LineStyle\"},\"fillColor\":{\"type\":\"string\"},\"fillOpacity\":{\"type\":\"number\"},\"showPoints\":{\"$ref\":\"#/definitions/VisibilityMode\"},\"pointSize\":{\"type\":\"number\"},\"pointColor\":{\"type\":\"string\"},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"barAlignment\":{\"$ref\":\"#/definitions/BarAlignment\"},\"barWidthFactor\":{\"type\":\"number\"},\"stacking\":{\"$ref\":\"#/definitions/StackingConfig\"},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"},\"hideValue\":{\"type\":\"boolean\"},\"insertNulls\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"number\"}]},\"spanNulls\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"number\"}],\"description\":\"Indicate if null values should be treated as gaps or connected.\\nWhen the value is a number, it represents the maximum delta in the\\nX axis that should be considered connected. For timeseries, this is milliseconds\"},\"fillBelowTo\":{\"type\":\"string\"},\"pointSymbol\":{\"type\":\"string\"},\"axisBorderShow\":{\"type\":\"boolean\"},\"barMaxWidth\":{\"type\":\"number\"}},\"description\":\"Sparkline cell options\"},\"TableBarGaugeCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"gauge\"},\"mode\":{\"$ref\":\"#/definitions/BarGaugeDisplayMode\"},\"valueDisplayMode\":{\"$ref\":\"#/definitions/BarGaugeValueMode\"}},\"description\":\"Gauge cell options\"},\"TableColoredBackgroundCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"color-background\"},\"mode\":{\"$ref\":\"#/definitions/TableCellBackgroundDisplayMode\"},\"applyToRow\":{\"type\":\"boolean\"},\"wrapText\":{\"type\":\"boolean\"}},\"description\":\"Colored background cell options\"},\"TableColorTextCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"color-text\"},\"wrapText\":{\"type\":\"boolean\"}},\"description\":\"Colored text cell options\"},\"TableImageCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"image\"},\"alt\":{\"type\":\"string\"},\"title\":{\"type\":\"string\"}},\"description\":\"Json view cell options\"},\"TableDataLinksCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"data-links\"}},\"description\":\"Show data links in the cell\"},\"TableActionsCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"actions\"}},\"description\":\"Show actions in the cell\"},\"TableJsonViewCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"json-view\"}},\"description\":\"Json view cell options\"},\"GraphDrawStyle\":{\"enum\":[\"line\",\"bars\",\"points\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphGradientMode\":{\"enum\":[\"none\",\"opacity\",\"hue\",\"scheme\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphThresholdsStyleConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/GraphThresholdsStyleMode\"}},\"description\":\"TODO docs\"},\"GraphTransform\":{\"enum\":[\"constant\",\"negative-Y\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LineInterpolation\":{\"enum\":[\"linear\",\"smooth\",\"stepBefore\",\"stepAfter\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LineStyle\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"fill\":{\"enum\":[\"solid\",\"dash\",\"dot\",\"square\",\"accessible\"],\"type\":\"string\"},\"dash\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}}},\"description\":\"TODO docs\"},\"VisibilityMode\":{\"enum\":[\"auto\",\"never\",\"always\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"BarAlignment\":{\"enum\":[-1,0,1],\"type\":\"integer\",\"description\":\"TODO docs\"},\"StackingConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"mode\":{\"$ref\":\"#/definitions/StackingMode\"},\"group\":{\"type\":\"string\"}},\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"BarGaugeDisplayMode\":{\"enum\":[\"basic\",\"lcd\",\"gradient\"],\"type\":\"string\",\"description\":\"Enum expressing the possible display modes\\nfor the bar gauge component of Grafana UI\"},\"BarGaugeValueMode\":{\"enum\":[\"color\",\"text\",\"hidden\"],\"type\":\"string\",\"description\":\"Allows for the table cell gauge display type to set the gauge mode.\"},\"TableCellBackgroundDisplayMode\":{\"enum\":[\"basic\",\"gradient\"],\"type\":\"string\",\"description\":\"Display mode to the \\\"Colored Background\\\" display\\nmode for table cells. Either displays a solid color (basic mode)\\nor a gradient.\"},\"GraphThresholdsStyleMode\":{\"enum\":[\"off\",\"line\",\"dashed\",\"area\",\"line+area\",\"dashed+area\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"StackingMode\":{\"enum\":[\"none\",\"normal\",\"percent\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TablePillCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"pill\"}},\"description\":\"Pill cell options\"},\"TableMarkdownCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"markdown\"},\"dynamicHeight\":{\"type\":\"boolean\"}},\"description\":\"Markdown cell options\"},\"TableGeoCellOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/TableCellDisplayMode\"}],\"default\":\"geo\"}},\"description\":\"Geo cell options\"},\"TableFieldFooterOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"reducers\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"footer reducers to apply to this field\"}},\"description\":\"The footer of one field (TableFooterOptions in the CUE; renamed here because the vendored schema already has a panel-level TableFooterOptions)\"}}}",
|
|
16
|
+
"logs": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"showLabels\",\"showCommonLabels\",\"showTime\",\"showLogContextToggle\",\"wrapLogMessage\",\"prettifyLogMessage\",\"enableLogDetails\",\"sortOrder\",\"dedupStrategy\"],\"properties\":{\"showLabels\":{\"type\":\"boolean\"},\"showCommonLabels\":{\"type\":\"boolean\"},\"showTime\":{\"type\":\"boolean\"},\"showLogContextToggle\":{\"type\":\"boolean\"},\"wrapLogMessage\":{\"type\":\"boolean\"},\"prettifyLogMessage\":{\"type\":\"boolean\"},\"enableLogDetails\":{\"type\":\"boolean\"},\"sortOrder\":{\"$ref\":\"#/definitions/LogsSortOrder\"},\"dedupStrategy\":{\"$ref\":\"#/definitions/LogsDedupStrategy\"},\"enableInfiniteScrolling\":{\"type\":\"boolean\"},\"showControls\":{\"type\":\"boolean\",\"description\":\"Display controls to jump to the last or first log line, and filters by log level.\"},\"showFieldSelector\":{\"type\":\"boolean\",\"description\":\"Show a component to manage the displayed fields from the logs.\"},\"syntaxHighlighting\":{\"type\":\"boolean\",\"description\":\"Use a predefined coloring scheme to highlight relevant parts of the log lines.\"},\"fontSize\":{\"enum\":[\"default\",\"small\"],\"type\":\"string\"},\"detailsMode\":{\"enum\":[\"inline\",\"sidebar\"],\"type\":\"string\"},\"unwrappedColumns\":{\"type\":\"boolean\"}}},\"LogsSortOrder\":{\"enum\":[\"Descending\",\"Ascending\"],\"type\":\"string\"},\"LogsDedupStrategy\":{\"enum\":[\"none\",\"exact\",\"numbers\",\"signature\"],\"type\":\"string\"}}}",
|
|
17
|
+
"heatmap": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"HeatmapColorMode\":{\"enum\":[\"opacity\",\"scheme\"],\"type\":\"string\",\"description\":\"Controls the color mode of the heatmap\"},\"HeatmapColorScale\":{\"enum\":[\"linear\",\"exponential\"],\"type\":\"string\",\"description\":\"Controls the color scale of the heatmap\"},\"HeatmapSelectionMode\":{\"enum\":[\"x\",\"y\",\"xy\"],\"type\":\"string\",\"description\":\"Controls which axis to allow selection on\"},\"HeatmapColorOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"scheme\",\"fill\",\"exponent\",\"steps\",\"reverse\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/HeatmapColorMode\",\"description\":\"Sets the color mode\"},\"scheme\":{\"type\":\"string\",\"description\":\"Controls the color scheme used\"},\"fill\":{\"type\":\"string\",\"description\":\"Controls the color fill when in opacity mode\"},\"scale\":{\"$ref\":\"#/definitions/HeatmapColorScale\",\"description\":\"Controls the color scale\"},\"exponent\":{\"type\":\"number\",\"description\":\"Controls the exponent when scale is set to exponential\"},\"steps\":{\"type\":\"integer\",\"minimum\":2,\"maximum\":128,\"description\":\"Controls the number of color steps\"},\"reverse\":{\"type\":\"boolean\",\"description\":\"Reverses the color scheme\"},\"min\":{\"type\":\"number\",\"description\":\"Sets the minimum value for the color scale\"},\"max\":{\"type\":\"number\",\"description\":\"Sets the maximum value for the color scale\"}},\"description\":\"Controls various color options\"},\"YAxisConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"unit\":{\"type\":\"string\",\"description\":\"Sets the yAxis unit\"},\"reverse\":{\"type\":\"boolean\",\"description\":\"Reverses the yAxis\"},\"decimals\":{\"type\":\"number\",\"description\":\"Controls the number of decimals for yAxis values\"},\"min\":{\"type\":\"number\",\"description\":\"Sets the minimum value for the yAxis\"},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"max\":{\"type\":\"number\",\"description\":\"Sets the maximum value for the yAxis\"},\"axisBorderShow\":{\"type\":\"boolean\"}},\"description\":\"Configuration options for the yAxis\"},\"CellValues\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"unit\":{\"type\":\"string\",\"description\":\"Controls the cell value unit\"},\"decimals\":{\"type\":\"number\",\"description\":\"Controls the number of decimals for cell values\"}},\"description\":\"Controls cell value options\"},\"FilterValueRange\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"le\":{\"type\":\"number\",\"description\":\"Sets the filter range to values less than or equal to the given value\"},\"ge\":{\"type\":\"number\",\"description\":\"Sets the filter range to values greater than or equal to the given value\"}},\"description\":\"Controls the value filter range\"},\"HeatmapTooltip\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\",\"description\":\"Controls how the tooltip is shown\"},\"maxHeight\":{\"type\":\"number\"},\"maxWidth\":{\"type\":\"number\"},\"yHistogram\":{\"type\":\"boolean\",\"description\":\"Controls if the tooltip shows a histogram of the y-axis values\"},\"showColorScale\":{\"type\":\"boolean\",\"description\":\"Controls if the tooltip shows a color scale in header\"}},\"description\":\"Controls tooltip options\"},\"HeatmapLegend\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"show\"],\"properties\":{\"show\":{\"type\":\"boolean\",\"description\":\"Controls if the legend is shown\"}},\"description\":\"Controls legend options\"},\"ExemplarConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"color\"],\"properties\":{\"color\":{\"type\":\"string\",\"description\":\"Sets the color of the exemplar markers\"}},\"description\":\"Controls exemplar options\"},\"RowsHeatmapOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"value\":{\"type\":\"string\",\"description\":\"Sets the name of the cell when not calculating from data\"},\"layout\":{\"$ref\":\"#/definitions/HeatmapCellLayout\",\"description\":\"Controls tick alignment when not calculating from data\"}},\"description\":\"Controls frame rows options\"},\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"color\",\"showValue\",\"yAxis\",\"legend\",\"tooltip\",\"exemplars\"],\"properties\":{\"calculate\":{\"type\":\"boolean\",\"description\":\"Controls if the heatmap should be calculated from data\",\"default\":false},\"calculation\":{\"$ref\":\"#/definitions/HeatmapCalculationOptions\",\"description\":\"Calculation options for the heatmap\"},\"color\":{\"$ref\":\"#/definitions/HeatmapColorOptions\",\"description\":\"Controls the color options\",\"default\":{\"exponent\":0.5,\"fill\":\"dark-orange\",\"reverse\":false,\"scheme\":\"Oranges\",\"steps\":64}},\"filterValues\":{\"$ref\":\"#/definitions/FilterValueRange\",\"description\":\"Filters values between a given range\",\"default\":{\"le\":1e-9}},\"rowsFrame\":{\"$ref\":\"#/definitions/RowsHeatmapOptions\",\"description\":\"Controls tick alignment and value name when not calculating from data\"},\"showValue\":{\"$ref\":\"#/definitions/VisibilityMode\",\"description\":\"| *{\\n\\tlayout: ui.HeatmapCellLayout & \\\"auto\\\" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\\n}\\nControls the display of the value in the cell\",\"default\":\"auto\"},\"cellGap\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":25,\"description\":\"Controls gap between cells\",\"default\":1},\"cellRadius\":{\"type\":\"number\",\"description\":\"Controls cell radius\"},\"cellValues\":{\"$ref\":\"#/definitions/CellValues\",\"description\":\"Controls cell value unit\"},\"yAxis\":{\"$ref\":\"#/definitions/YAxisConfig\",\"description\":\"Controls yAxis placement\"},\"legend\":{\"$ref\":\"#/definitions/HeatmapLegend\",\"description\":\"| *{\\n\\taxisPlacement: ui.AxisPlacement & \\\"left\\\" // TODO: fix after remove when https://github.com/grafana/cuetsy/issues/74 is fixed\\n}\\nControls legend options\",\"default\":{\"show\":true}},\"tooltip\":{\"$ref\":\"#/definitions/HeatmapTooltip\",\"description\":\"Controls tooltip options\"},\"exemplars\":{\"$ref\":\"#/definitions/ExemplarConfig\",\"description\":\"Controls exemplar options\",\"default\":{\"color\":\"rgba(255,0,255,0.7)\"}},\"selectionMode\":{\"$ref\":\"#/definitions/HeatmapSelectionMode\",\"description\":\"Controls which axis to allow selection on\",\"default\":\"x\"}}},\"FieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"}}},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"HeatmapCellLayout\":{\"enum\":[\"le\",\"ge\",\"unknown\",\"auto\"],\"type\":\"string\"},\"HeatmapCalculationOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"xBuckets\":{\"$ref\":\"#/definitions/HeatmapCalculationBucketConfig\",\"description\":\"The number of buckets to use for the xAxis in the heatmap\"},\"yBuckets\":{\"$ref\":\"#/definitions/HeatmapCalculationBucketConfig\",\"description\":\"The number of buckets to use for the yAxis in the heatmap\"}}},\"VisibilityMode\":{\"enum\":[\"auto\",\"never\",\"always\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"HeatmapCalculationBucketConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"mode\":{\"$ref\":\"#/definitions/HeatmapCalculationMode\",\"description\":\"Sets the bucket calculation mode\"},\"value\":{\"type\":\"string\",\"description\":\"The number of buckets to use for the axis in the heatmap\"},\"scale\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\",\"description\":\"Controls the scale of the buckets\"}}},\"HeatmapCalculationMode\":{\"enum\":[\"size\",\"count\"],\"type\":\"string\"}}}",
|
|
18
|
+
"text": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"TextMode\":{\"enum\":[\"html\",\"markdown\",\"code\"],\"type\":\"string\"},\"CodeLanguage\":{\"enum\":[\"json\",\"yaml\",\"xml\",\"typescript\",\"sql\",\"go\",\"markdown\",\"html\",\"plaintext\"],\"type\":\"string\"},\"CodeOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"language\",\"showLineNumbers\",\"showMiniMap\"],\"properties\":{\"language\":{\"$ref\":\"#/definitions/CodeLanguage\",\"description\":\"The language passed to monaco code editor\",\"default\":\"plaintext\"},\"showLineNumbers\":{\"type\":\"boolean\",\"default\":false},\"showMiniMap\":{\"type\":\"boolean\",\"default\":false}}},\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"content\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TextMode\",\"default\":\"markdown\"},\"code\":{\"$ref\":\"#/definitions/CodeOptions\"},\"content\":{\"type\":\"string\",\"default\":\"# Title\\n\\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)\"}}}}}",
|
|
19
|
+
"barchart": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"orientation\",\"xTickLabelRotation\",\"xTickLabelMaxLength\",\"stacking\",\"showValue\",\"barWidth\",\"groupWidth\",\"legend\",\"tooltip\",\"fullHighlight\"],\"properties\":{\"xField\":{\"type\":\"string\",\"description\":\"Manually select which field from the dataset to represent the x field.\"},\"colorByField\":{\"type\":\"string\",\"description\":\"Use the color value for a sibling field to color each bar value.\"},\"orientation\":{\"$ref\":\"#/definitions/VizOrientation\",\"description\":\"Controls the orientation of the bar chart, either vertical or horizontal.\",\"default\":\"auto\"},\"barRadius\":{\"type\":\"number\",\"minimum\":0,\"maximum\":0.5,\"description\":\"Controls the radius of each bar.\",\"default\":0},\"xTickLabelRotation\":{\"type\":\"integer\",\"minimum\":-90,\"maximum\":90,\"description\":\"Controls the rotation of the x axis labels.\",\"default\":0},\"xTickLabelMaxLength\":{\"type\":\"integer\",\"minimum\":0,\"description\":\"Sets the max length that a label can have before it is truncated.\"},\"xTickLabelSpacing\":{\"type\":\"integer\",\"description\":\"Controls the spacing between x axis labels.\\nnegative values indicate backwards skipping behavior\",\"default\":0},\"stacking\":{\"$ref\":\"#/definitions/StackingMode\",\"description\":\"Controls whether bars are stacked or not, either normally or in percent mode.\",\"default\":\"none\"},\"showValue\":{\"$ref\":\"#/definitions/VisibilityMode\",\"description\":\"This controls whether values are shown on top or to the left of bars.\",\"default\":\"auto\"},\"barWidth\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1,\"description\":\"Controls the width of bars. 1 = Max width, 0 = Min width.\",\"default\":0.97},\"groupWidth\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1,\"description\":\"Controls the width of groups. 1 = max with, 0 = min width.\",\"default\":0.7},\"legend\":{\"$ref\":\"#/definitions/VizLegendOptions\"},\"tooltip\":{\"$ref\":\"#/definitions/VizTooltipOptions\"},\"text\":{\"$ref\":\"#/definitions/VizTextDisplayOptions\"},\"fullHighlight\":{\"type\":\"boolean\",\"description\":\"Enables mode which highlights the entire bar area and shows tooltip when cursor\\nhovers over highlighted area\",\"default\":false}}},\"FieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"lineWidth\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":10,\"description\":\"Controls line width of the bars.\",\"default\":1},\"fillOpacity\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":100,\"description\":\"Controls the fill opacity of the bars.\",\"default\":80},\"gradientMode\":{\"$ref\":\"#/definitions/GraphGradientMode\",\"description\":\"Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\\nGradient appearance is influenced by the Fill opacity setting.\",\"default\":\"none\"},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"},\"thresholdsStyle\":{\"$ref\":\"#/definitions/GraphThresholdsStyleConfig\",\"description\":\"Threshold rendering\"},\"axisBorderShow\":{\"type\":\"boolean\"}}},\"VizOrientation\":{\"enum\":[\"auto\",\"vertical\",\"horizontal\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"StackingMode\":{\"enum\":[\"none\",\"normal\",\"percent\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"VisibilityMode\":{\"enum\":[\"auto\",\"never\",\"always\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"VizLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\",\"default\":\"list\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\",\"default\":\"bottom\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[]}},\"description\":\"TODO docs\"},\"VizTooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"sort\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\"},\"maxWidth\":{\"type\":\"number\"},\"maxHeight\":{\"type\":\"number\"},\"hideZeros\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"VizTextDisplayOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"titleSize\":{\"type\":\"number\",\"description\":\"Explicit title text size\"},\"valueSize\":{\"type\":\"number\",\"description\":\"Explicit value text size\"},\"percentSize\":{\"type\":\"number\",\"description\":\"Explicit percent text size\"}},\"description\":\"TODO docs\"},\"GraphGradientMode\":{\"enum\":[\"none\",\"opacity\",\"hue\",\"scheme\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"GraphThresholdsStyleConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/GraphThresholdsStyleMode\"}},\"description\":\"TODO docs\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"SortOrder\":{\"enum\":[\"asc\",\"desc\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphThresholdsStyleMode\":{\"enum\":[\"off\",\"line\",\"dashed\",\"area\",\"line+area\",\"dashed+area\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
20
|
+
"bargauge": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"valueMode\",\"namePlacement\",\"showUnfilled\",\"sizing\",\"minVizWidth\",\"minVizHeight\",\"legend\",\"reduceOptions\",\"maxVizHeight\",\"orientation\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/BarGaugeDisplayMode\",\"default\":\"gradient\"},\"valueMode\":{\"$ref\":\"#/definitions/BarGaugeValueMode\",\"default\":\"color\"},\"namePlacement\":{\"$ref\":\"#/definitions/BarGaugeNamePlacement\",\"default\":\"auto\"},\"showUnfilled\":{\"type\":\"boolean\",\"default\":true},\"sizing\":{\"$ref\":\"#/definitions/BarGaugeSizing\",\"default\":\"auto\"},\"minVizWidth\":{\"type\":\"integer\",\"default\":8},\"minVizHeight\":{\"type\":\"integer\",\"default\":16},\"legend\":{\"$ref\":\"#/definitions/VizLegendOptions\"},\"reduceOptions\":{\"$ref\":\"#/definitions/ReduceDataOptions\"},\"text\":{\"$ref\":\"#/definitions/VizTextDisplayOptions\"},\"maxVizHeight\":{\"type\":\"integer\",\"default\":300},\"orientation\":{\"$ref\":\"#/definitions/VizOrientation\"}}},\"BarGaugeDisplayMode\":{\"enum\":[\"basic\",\"lcd\",\"gradient\"],\"type\":\"string\",\"description\":\"Enum expressing the possible display modes\\nfor the bar gauge component of Grafana UI\"},\"BarGaugeValueMode\":{\"enum\":[\"color\",\"text\",\"hidden\"],\"type\":\"string\",\"description\":\"Allows for the table cell gauge display type to set the gauge mode.\"},\"BarGaugeNamePlacement\":{\"enum\":[\"auto\",\"top\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"Allows for the bar gauge name to be placed explicitly\"},\"BarGaugeSizing\":{\"enum\":[\"auto\",\"manual\"],\"type\":\"string\",\"description\":\"Allows for the bar gauge size to be set explicitly\"},\"VizLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\",\"default\":\"list\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\",\"default\":\"bottom\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[]}},\"description\":\"TODO docs\"},\"ReduceDataOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"calcs\"],\"properties\":{\"values\":{\"type\":\"boolean\",\"description\":\"If true show each row value\"},\"limit\":{\"type\":\"number\",\"description\":\"if showing all values limit\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"When !values, pick one value for the whole field\"},\"fields\":{\"type\":\"string\",\"description\":\"Which fields to show. By default this is only numeric fields\"}},\"description\":\"TODO docs\"},\"VizTextDisplayOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"titleSize\":{\"type\":\"number\",\"description\":\"Explicit title text size\"},\"valueSize\":{\"type\":\"number\",\"description\":\"Explicit value text size\"},\"percentSize\":{\"type\":\"number\",\"description\":\"Explicit percent text size\"}},\"description\":\"TODO docs\"},\"VizOrientation\":{\"enum\":[\"auto\",\"vertical\",\"horizontal\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
21
|
+
"piechart": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"PieChartType\":{\"enum\":[\"pie\",\"donut\"],\"type\":\"string\",\"description\":\"Select the pie chart display style.\"},\"PieChartLabels\":{\"enum\":[\"name\",\"value\",\"percent\"],\"type\":\"string\",\"description\":\"Select labels to display on the pie chart.\\n - Name - The series or field name.\\n - Percent - The percentage of the whole.\\n - Value - The raw numerical value.\"},\"PieChartLegendValues\":{\"enum\":[\"value\",\"percent\"],\"type\":\"string\",\"description\":\"Select values to display in the legend.\\n - Percent: The percentage of the whole.\\n - Value: The raw numerical value.\"},\"PieChartLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"values\",\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"values\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/PieChartLegendValues\"}},\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}},\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"pieType\",\"tooltip\",\"reduceOptions\",\"legend\",\"orientation\"],\"properties\":{\"pieType\":{\"$ref\":\"#/definitions/PieChartType\"},\"displayLabels\":{\"anyOf\":[{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/PieChartLabels\"}},{\"type\":\"null\"}]},\"tooltip\":{\"$ref\":\"#/definitions/VizTooltipOptions\"},\"reduceOptions\":{\"$ref\":\"#/definitions/ReduceDataOptions\"},\"text\":{\"$ref\":\"#/definitions/VizTextDisplayOptions\"},\"legend\":{\"$ref\":\"#/definitions/PieChartLegendOptions\"},\"orientation\":{\"$ref\":\"#/definitions/VizOrientation\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\",\"description\":\"How slices are ordered.\"}}},\"FieldConfig\":{\"$ref\":\"#/definitions/HideableFieldConfig\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"VizTooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"sort\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\"},\"maxWidth\":{\"type\":\"number\"},\"maxHeight\":{\"type\":\"number\"},\"hideZeros\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"ReduceDataOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"calcs\"],\"properties\":{\"values\":{\"type\":\"boolean\",\"description\":\"If true show each row value\"},\"limit\":{\"type\":\"number\",\"description\":\"if showing all values limit\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"When !values, pick one value for the whole field\"},\"fields\":{\"type\":\"string\",\"description\":\"Which fields to show. By default this is only numeric fields\"}},\"description\":\"TODO docs\"},\"VizTextDisplayOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"titleSize\":{\"type\":\"number\",\"description\":\"Explicit title text size\"},\"valueSize\":{\"type\":\"number\",\"description\":\"Explicit value text size\"},\"percentSize\":{\"type\":\"number\",\"description\":\"Explicit percent text size\"}},\"description\":\"TODO docs\"},\"VizOrientation\":{\"enum\":[\"auto\",\"vertical\",\"horizontal\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"HideableFieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"}},\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"SortOrder\":{\"enum\":[\"asc\",\"desc\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"}}}",
|
|
22
|
+
"statetimeline": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"showValue\",\"rowHeight\",\"legend\",\"tooltip\"],\"properties\":{\"showValue\":{\"$ref\":\"#/definitions/VisibilityMode\",\"description\":\"Show timeline values on chart\",\"default\":\"auto\"},\"rowHeight\":{\"type\":\"number\",\"maximum\":1,\"description\":\"Controls the row height\",\"default\":0.9},\"mergeValues\":{\"type\":\"boolean\",\"description\":\"Merge equal consecutive values\",\"default\":true},\"alignValue\":{\"$ref\":\"#/definitions/TimelineValueAlignment\",\"description\":\"Controls value alignment on the timelines\",\"default\":\"left\"},\"legend\":{\"$ref\":\"#/definitions/VizLegendOptions\"},\"tooltip\":{\"$ref\":\"#/definitions/VizTooltipOptions\"},\"timezone\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/TimeZone\"}},\"perPage\":{\"type\":\"number\",\"minimum\":1,\"description\":\"Enables pagination when > 0\",\"default\":20}}},\"FieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"lineWidth\":{\"type\":\"integer\",\"maximum\":10,\"default\":0},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"},\"fillOpacity\":{\"type\":\"integer\",\"maximum\":100,\"default\":70},\"axisBorderShow\":{\"type\":\"boolean\"},\"spanNulls\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"integer\"}]},\"insertNulls\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"integer\"}]}}},\"VisibilityMode\":{\"enum\":[\"auto\",\"never\",\"always\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TimelineValueAlignment\":{\"enum\":[\"center\",\"left\",\"right\"],\"type\":\"string\",\"description\":\"Controls the value alignment in the TimelineChart component\"},\"VizLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\",\"default\":\"list\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\",\"default\":\"bottom\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[]}},\"description\":\"TODO docs\"},\"VizTooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"sort\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\"},\"maxWidth\":{\"type\":\"number\"},\"maxHeight\":{\"type\":\"number\"},\"hideZeros\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"TimeZone\":{\"type\":\"string\",\"description\":\"A specific timezone from https://en.wikipedia.org/wiki/Tz_database\"},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"SortOrder\":{\"enum\":[\"asc\",\"desc\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
23
|
+
"statushistory": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"rowHeight\",\"showValue\",\"legend\",\"tooltip\"],\"properties\":{\"rowHeight\":{\"type\":\"number\",\"minimum\":0,\"maximum\":1,\"description\":\"Set the height of the rows\",\"default\":0.9},\"showValue\":{\"$ref\":\"#/definitions/VisibilityMode\",\"description\":\"Show values on the columns\",\"default\":\"auto\"},\"colWidth\":{\"type\":\"number\",\"maximum\":1,\"description\":\"Controls the column width\",\"default\":0.9},\"legend\":{\"$ref\":\"#/definitions/VizLegendOptions\"},\"tooltip\":{\"$ref\":\"#/definitions/VizTooltipOptions\"},\"timezone\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/TimeZone\"}},\"perPage\":{\"type\":\"number\",\"minimum\":1,\"description\":\"Enables pagination when > 0\",\"default\":20}}},\"FieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"lineWidth\":{\"type\":\"integer\",\"maximum\":10,\"default\":1},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"},\"fillOpacity\":{\"type\":\"integer\",\"maximum\":100,\"default\":70},\"axisBorderShow\":{\"type\":\"boolean\"}}},\"VisibilityMode\":{\"enum\":[\"auto\",\"never\",\"always\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"VizLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\",\"default\":\"list\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\",\"default\":\"bottom\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[]}},\"description\":\"TODO docs\"},\"VizTooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"sort\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\"},\"maxWidth\":{\"type\":\"number\"},\"maxHeight\":{\"type\":\"number\"},\"hideZeros\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"TimeZone\":{\"type\":\"string\",\"description\":\"A specific timezone from https://en.wikipedia.org/wiki/Tz_database\"},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"SortOrder\":{\"enum\":[\"asc\",\"desc\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
24
|
+
"histogram": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"legend\",\"tooltip\"],\"properties\":{\"bucketCount\":{\"type\":\"integer\",\"exclusiveMinimum\":0,\"description\":\"Bucket count (approx)\",\"default\":30},\"bucketSize\":{\"type\":\"integer\",\"description\":\"Size of each bucket\"},\"bucketOffset\":{\"type\":\"number\",\"description\":\"Offset buckets by this amount\",\"default\":0},\"legend\":{\"$ref\":\"#/definitions/VizLegendOptions\"},\"tooltip\":{\"$ref\":\"#/definitions/VizTooltipOptions\"},\"combine\":{\"type\":\"boolean\",\"description\":\"Combines multiple series into a single histogram\"}}},\"FieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"lineWidth\":{\"type\":\"integer\",\"maximum\":10,\"description\":\"Controls line width of the bars.\",\"default\":1},\"fillOpacity\":{\"type\":\"integer\",\"maximum\":100,\"description\":\"Controls the fill opacity of the bars.\",\"default\":80},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"},\"stacking\":{\"$ref\":\"#/definitions/StackingConfig\"},\"gradientMode\":{\"$ref\":\"#/definitions/GraphGradientMode\",\"description\":\"Set the mode of the gradient fill. Fill gradient is based on the line color. To change the color, use the standard color scheme field option.\\nGradient appearance is influenced by the Fill opacity setting.\",\"default\":\"none\"},\"axisBorderShow\":{\"type\":\"boolean\"}}},\"VizLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\",\"default\":\"list\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\",\"default\":\"bottom\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[]}},\"description\":\"TODO docs\"},\"VizTooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"sort\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\"},\"maxWidth\":{\"type\":\"number\"},\"maxHeight\":{\"type\":\"number\"},\"hideZeros\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"StackingConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"mode\":{\"$ref\":\"#/definitions/StackingMode\"},\"group\":{\"type\":\"string\"}},\"description\":\"TODO docs\"},\"GraphGradientMode\":{\"enum\":[\"none\",\"opacity\",\"hue\",\"scheme\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"SortOrder\":{\"enum\":[\"asc\",\"desc\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"StackingMode\":{\"enum\":[\"none\",\"normal\",\"percent\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
25
|
+
"nodegraph": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"ArcOption\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"field\":{\"type\":\"string\",\"description\":\"Field from which to get the value. Values should be less than 1, representing fraction of a circle.\"},\"color\":{\"type\":\"string\",\"description\":\"The color of the arc.\"}}},\"NodeOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"mainStatUnit\":{\"type\":\"string\",\"description\":\"Unit for the main stat to override what ever is set in the data frame.\"},\"secondaryStatUnit\":{\"type\":\"string\",\"description\":\"Unit for the secondary stat to override what ever is set in the data frame.\"},\"arcs\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ArcOption\"},\"description\":\"Define which fields are shown as part of the node arc (colored circle around the node).\"}}},\"EdgeOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"mainStatUnit\":{\"type\":\"string\",\"description\":\"Unit for the main stat to override what ever is set in the data frame.\"},\"secondaryStatUnit\":{\"type\":\"string\",\"description\":\"Unit for the secondary stat to override what ever is set in the data frame.\"}}},\"ZoomMode\":{\"enum\":[\"cooperative\",\"greedy\"],\"type\":\"string\"},\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"nodes\":{\"$ref\":\"#/definitions/NodeOptions\"},\"edges\":{\"$ref\":\"#/definitions/EdgeOptions\"},\"zoomMode\":{\"$ref\":\"#/definitions/ZoomMode\",\"description\":\"How to handle zoom/scroll events in the node graph\"},\"layoutAlgorithm\":{\"$ref\":\"#/definitions/LayoutAlgorithm\",\"description\":\"How to layout the nodes in the node graph\"}}},\"LayoutAlgorithm\":{\"enum\":[\"layered\",\"force\",\"grid\"],\"type\":\"string\"}}}",
|
|
26
|
+
"xychart": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"PointShape\":{\"enum\":[\"circle\",\"square\"],\"type\":\"string\"},\"SeriesMapping\":{\"enum\":[\"auto\",\"manual\"],\"type\":\"string\"},\"XYShowMode\":{\"enum\":[\"points\",\"lines\",\"points+lines\"],\"type\":\"string\"},\"MatcherConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"The matcher id. This is used to find the matcher implementation from registry.\",\"default\":\"\"},\"options\":{\"description\":\"The matcher options. This is specific to the matcher implementation: a field name for byName, a frame index for byIndex.\"}},\"description\":\"NOTE: (copied from dashboard_kind.cue, since not exported)\\nMatcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.\\nIt comes with in id ( to resolve implementation from registry) and a configuration that’s specific to a particular matcher type.\"},\"FieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"show\":{\"$ref\":\"#/definitions/XYShowMode\",\"default\":\"points\"},\"pointSize\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"fixed\":{\"type\":\"integer\",\"minimum\":0},\"min\":{\"type\":\"integer\",\"minimum\":0},\"max\":{\"type\":\"integer\",\"minimum\":0}}},\"pointShape\":{\"$ref\":\"#/definitions/PointShape\"},\"pointStrokeWidth\":{\"type\":\"integer\",\"minimum\":0},\"fillOpacity\":{\"type\":\"integer\",\"maximum\":100,\"default\":50},\"lineWidth\":{\"type\":\"integer\",\"minimum\":0},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"lineStyle\":{\"$ref\":\"#/definitions/LineStyle\"},\"axisBorderShow\":{\"type\":\"boolean\"}}},\"XYSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"name\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"fixed\":{\"type\":\"string\"}}},\"frame\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"matcher\"],\"properties\":{\"matcher\":{\"$ref\":\"#/definitions/MatcherConfig\"}}},\"x\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"matcher\"],\"properties\":{\"matcher\":{\"$ref\":\"#/definitions/MatcherConfig\"}}},\"y\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"matcher\"],\"properties\":{\"matcher\":{\"$ref\":\"#/definitions/MatcherConfig\"}}},\"color\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"matcher\"],\"properties\":{\"matcher\":{\"$ref\":\"#/definitions/MatcherConfig\"}}},\"size\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"matcher\"],\"properties\":{\"matcher\":{\"$ref\":\"#/definitions/MatcherConfig\"}}}}},\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mapping\",\"legend\",\"tooltip\",\"series\"],\"properties\":{\"mapping\":{\"$ref\":\"#/definitions/SeriesMapping\"},\"legend\":{\"$ref\":\"#/definitions/VizLegendOptions\"},\"tooltip\":{\"$ref\":\"#/definitions/VizTooltipOptions\"},\"series\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/XYSeriesConfig\"}}}},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"LineStyle\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"fill\":{\"enum\":[\"solid\",\"dash\",\"dot\",\"square\"],\"type\":\"string\"},\"dash\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}}},\"description\":\"TODO docs\"},\"VizLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\",\"default\":\"list\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\",\"default\":\"bottom\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[]}},\"description\":\"TODO docs\"},\"VizTooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"sort\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\"},\"maxWidth\":{\"type\":\"number\"},\"maxHeight\":{\"type\":\"number\"},\"hideZeros\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"SortOrder\":{\"enum\":[\"asc\",\"desc\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
27
|
+
"trend": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"legend\",\"tooltip\"],\"properties\":{\"legend\":{\"$ref\":\"#/definitions/VizLegendOptions\"},\"tooltip\":{\"$ref\":\"#/definitions/VizTooltipOptions\"},\"xField\":{\"type\":\"string\",\"description\":\"Name of the x field to use (defaults to first number)\"}},\"description\":\"Identical to timeseries... except it does not have timezone settings\"},\"FieldConfig\":{\"$ref\":\"#/definitions/GraphFieldConfig\"},\"VizLegendOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"displayMode\",\"placement\",\"showLegend\",\"calcs\"],\"properties\":{\"displayMode\":{\"$ref\":\"#/definitions/LegendDisplayMode\",\"default\":\"list\"},\"placement\":{\"$ref\":\"#/definitions/LegendPlacement\",\"default\":\"bottom\"},\"showLegend\":{\"type\":\"boolean\"},\"asTable\":{\"type\":\"boolean\"},\"isVisible\":{\"type\":\"boolean\"},\"sortBy\":{\"type\":\"string\"},\"sortDesc\":{\"type\":\"boolean\"},\"width\":{\"type\":\"number\"},\"calcs\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"default\":[]}},\"description\":\"TODO docs\"},\"VizTooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\",\"sort\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"sort\":{\"$ref\":\"#/definitions/SortOrder\"},\"maxWidth\":{\"type\":\"number\"},\"maxHeight\":{\"type\":\"number\"},\"hideZeros\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"GraphFieldConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"drawStyle\":{\"$ref\":\"#/definitions/GraphDrawStyle\"},\"gradientMode\":{\"$ref\":\"#/definitions/GraphGradientMode\"},\"thresholdsStyle\":{\"$ref\":\"#/definitions/GraphThresholdsStyleConfig\"},\"transform\":{\"$ref\":\"#/definitions/GraphTransform\"},\"lineColor\":{\"type\":\"string\"},\"lineWidth\":{\"type\":\"number\"},\"lineInterpolation\":{\"$ref\":\"#/definitions/LineInterpolation\"},\"lineStyle\":{\"$ref\":\"#/definitions/LineStyle\"},\"fillColor\":{\"type\":\"string\"},\"fillOpacity\":{\"type\":\"number\"},\"showPoints\":{\"$ref\":\"#/definitions/VisibilityMode\"},\"pointSize\":{\"type\":\"number\"},\"pointColor\":{\"type\":\"string\"},\"axisPlacement\":{\"$ref\":\"#/definitions/AxisPlacement\"},\"axisColorMode\":{\"$ref\":\"#/definitions/AxisColorMode\"},\"axisLabel\":{\"type\":\"string\"},\"axisWidth\":{\"type\":\"number\"},\"axisSoftMin\":{\"type\":\"number\"},\"axisSoftMax\":{\"type\":\"number\"},\"axisGridShow\":{\"type\":\"boolean\"},\"scaleDistribution\":{\"$ref\":\"#/definitions/ScaleDistributionConfig\"},\"axisCenteredZero\":{\"type\":\"boolean\"},\"barAlignment\":{\"$ref\":\"#/definitions/BarAlignment\"},\"barWidthFactor\":{\"type\":\"number\"},\"stacking\":{\"$ref\":\"#/definitions/StackingConfig\"},\"hideFrom\":{\"$ref\":\"#/definitions/HideSeriesConfig\"},\"insertNulls\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"number\"}]},\"spanNulls\":{\"oneOf\":[{\"type\":\"boolean\"},{\"type\":\"number\"}],\"description\":\"Indicate if null values should be treated as gaps or connected.\\nWhen the value is a number, it represents the maximum delta in the\\nX axis that should be considered connected. For timeseries, this is milliseconds\"},\"fillBelowTo\":{\"type\":\"string\"},\"pointSymbol\":{\"type\":\"string\"},\"axisBorderShow\":{\"type\":\"boolean\"},\"barMaxWidth\":{\"type\":\"number\"},\"showValues\":{\"type\":\"boolean\",\"description\":\"Show point values on the graph.\"}},\"description\":\"TODO docs\"},\"LegendDisplayMode\":{\"enum\":[\"list\",\"table\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\\nNote: \\\"hidden\\\" needs to remain as an option for plugins compatibility\"},\"LegendPlacement\":{\"enum\":[\"bottom\",\"right\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"SortOrder\":{\"enum\":[\"asc\",\"desc\",\"none\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphDrawStyle\":{\"enum\":[\"line\",\"bars\",\"points\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphGradientMode\":{\"enum\":[\"none\",\"opacity\",\"hue\",\"scheme\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"GraphThresholdsStyleConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/GraphThresholdsStyleMode\"}},\"description\":\"TODO docs\"},\"GraphTransform\":{\"enum\":[\"constant\",\"negative-Y\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LineInterpolation\":{\"enum\":[\"linear\",\"smooth\",\"stepBefore\",\"stepAfter\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"LineStyle\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"fill\":{\"enum\":[\"solid\",\"dash\",\"dot\",\"square\"],\"type\":\"string\"},\"dash\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}}},\"description\":\"TODO docs\"},\"VisibilityMode\":{\"enum\":[\"auto\",\"never\",\"always\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisPlacement\":{\"enum\":[\"auto\",\"top\",\"right\",\"bottom\",\"left\",\"hidden\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"AxisColorMode\":{\"enum\":[\"text\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistributionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/ScaleDistribution\"},\"log\":{\"type\":\"number\"},\"linearThreshold\":{\"type\":\"number\"}},\"description\":\"TODO docs\"},\"BarAlignment\":{\"enum\":[-1,0,1],\"type\":\"integer\",\"description\":\"TODO docs\"},\"StackingConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"mode\":{\"$ref\":\"#/definitions/StackingMode\"},\"group\":{\"type\":\"string\"}},\"description\":\"TODO docs\"},\"HideSeriesConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"tooltip\",\"legend\",\"viz\"],\"properties\":{\"tooltip\":{\"type\":\"boolean\"},\"legend\":{\"type\":\"boolean\"},\"viz\":{\"type\":\"boolean\"}},\"description\":\"TODO docs\"},\"GraphThresholdsStyleMode\":{\"enum\":[\"off\",\"line\",\"dashed\",\"area\",\"line+area\",\"dashed+area\",\"series\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"ScaleDistribution\":{\"enum\":[\"linear\",\"log\",\"ordinal\",\"symlog\"],\"type\":\"string\",\"description\":\"TODO docs\"},\"StackingMode\":{\"enum\":[\"none\",\"normal\",\"percent\"],\"type\":\"string\",\"description\":\"TODO docs\"}}}",
|
|
28
|
+
"canvas": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"HorizontalConstraint\":{\"enum\":[\"left\",\"right\",\"leftright\",\"center\",\"scale\"],\"type\":\"string\"},\"VerticalConstraint\":{\"enum\":[\"top\",\"bottom\",\"topbottom\",\"center\",\"scale\"],\"type\":\"string\"},\"Constraint\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"horizontal\":{\"$ref\":\"#/definitions/HorizontalConstraint\"},\"vertical\":{\"$ref\":\"#/definitions/VerticalConstraint\"}}},\"Placement\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"top\":{\"type\":\"number\"},\"left\":{\"type\":\"number\"},\"right\":{\"type\":\"number\"},\"bottom\":{\"type\":\"number\"},\"width\":{\"type\":\"number\"},\"height\":{\"type\":\"number\"},\"rotation\":{\"type\":\"number\"}}},\"BackgroundImageSize\":{\"enum\":[\"original\",\"contain\",\"cover\",\"fill\",\"tile\"],\"type\":\"string\"},\"BackgroundConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"color\":{\"$ref\":\"#/definitions/ColorDimensionConfig\"},\"image\":{\"$ref\":\"#/definitions/ResourceDimensionConfig\"},\"size\":{\"$ref\":\"#/definitions/BackgroundImageSize\"}}},\"LineConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"color\":{\"$ref\":\"#/definitions/ColorDimensionConfig\"},\"width\":{\"type\":\"number\"},\"radius\":{\"type\":\"number\"}}},\"HttpRequestMethod\":{\"enum\":[\"GET\",\"POST\",\"PUT\"],\"type\":\"string\"},\"ConnectionCoordinates\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"x\",\"y\"],\"properties\":{\"x\":{\"type\":\"number\"},\"y\":{\"type\":\"number\"}}},\"ConnectionPath\":{\"enum\":[\"straight\"],\"type\":\"string\"},\"CanvasConnection\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"source\",\"target\",\"path\"],\"properties\":{\"source\":{\"$ref\":\"#/definitions/ConnectionCoordinates\"},\"target\":{\"$ref\":\"#/definitions/ConnectionCoordinates\"},\"targetName\":{\"type\":\"string\"},\"path\":{\"allOf\":[{\"$ref\":\"#/definitions/ConnectionPath\"}],\"default\":\"straight\"},\"color\":{\"$ref\":\"#/definitions/ColorDimensionConfig\"},\"size\":{\"$ref\":\"#/definitions/ScaleDimensionConfig\"},\"vertices\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ConnectionCoordinates\"}},\"sourceOriginal\":{\"$ref\":\"#/definitions/ConnectionCoordinates\"},\"targetOriginal\":{\"$ref\":\"#/definitions/ConnectionCoordinates\"},\"direction\":{\"$ref\":\"#/definitions/DirectionDimensionConfig\"}}},\"CanvasElementOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"name\",\"type\"],\"properties\":{\"name\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"},\"config\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"TODO: figure out how to define this (element config(s))\"},\"constraint\":{\"$ref\":\"#/definitions/Constraint\"},\"placement\":{\"$ref\":\"#/definitions/Placement\"},\"background\":{\"$ref\":\"#/definitions/BackgroundConfig\"},\"border\":{\"$ref\":\"#/definitions/LineConfig\"},\"connections\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/CanvasConnection\"}}}},\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"inlineEditing\",\"showAdvancedTypes\",\"panZoom\",\"infinitePan\",\"root\"],\"properties\":{\"inlineEditing\":{\"type\":\"boolean\",\"description\":\"Enable inline editing\",\"default\":true},\"showAdvancedTypes\":{\"type\":\"boolean\",\"description\":\"Show all available element types\",\"default\":true},\"panZoom\":{\"type\":\"boolean\",\"description\":\"Enable pan and zoom\",\"default\":true},\"infinitePan\":{\"type\":\"boolean\",\"description\":\"Enable infinite pan\",\"default\":true},\"root\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"name\",\"type\",\"elements\"],\"properties\":{\"name\":{\"type\":\"string\",\"description\":\"Name of the root element\"},\"type\":{\"type\":\"string\",\"const\":\"frame\",\"description\":\"Type of root element (frame)\"},\"elements\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/CanvasElementOptions\"},\"description\":\"The list of canvas elements attached to the root element\"},\"constraint\":{\"$ref\":\"#/definitions/Constraint\"},\"placement\":{\"$ref\":\"#/definitions/Placement\"},\"background\":{\"$ref\":\"#/definitions/BackgroundConfig\"},\"border\":{\"$ref\":\"#/definitions/LineConfig\"}},\"description\":\"The root element of canvas (frame), where all canvas elements are nested\\nTODO: Figure out how to define a default value for this\"},\"tooltip\":{\"$ref\":\"#/definitions/CanvasTooltip\",\"description\":\"Controls tooltip options\"},\"zoomToContent\":{\"type\":\"boolean\",\"default\":true,\"description\":\"Zoom to content\"}}},\"ColorDimensionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"fixed\":{\"type\":\"string\",\"description\":\"color value\"},\"field\":{\"type\":\"string\",\"description\":\"fixed: T -- will be added by each element\"}}},\"ResourceDimensionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/ResourceDimensionMode\"},\"field\":{\"type\":\"string\",\"description\":\"fixed: T -- will be added by each element\"},\"fixed\":{\"type\":\"string\"}},\"description\":\"Links to a resource (image/svg path)\"},\"ScaleDimensionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"min\",\"max\"],\"properties\":{\"min\":{\"type\":\"number\"},\"max\":{\"type\":\"number\"},\"fixed\":{\"type\":\"number\"},\"field\":{\"type\":\"string\",\"description\":\"fixed: T -- will be added by each element\"},\"mode\":{\"$ref\":\"#/definitions/ScaleDimensionMode\",\"description\":\"| *\\\"linear\\\"\"}}},\"ResourceDimensionMode\":{\"enum\":[\"fixed\",\"field\",\"mapping\"],\"type\":\"string\"},\"ScaleDimensionMode\":{\"enum\":[\"linear\",\"quad\"],\"type\":\"string\"},\"TooltipDisplayMode\":{\"enum\":[\"single\",\"multi\",\"none\"],\"type\":\"string\"},\"CanvasTooltip\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipDisplayMode\"},\"disableForOneClick\":{\"type\":\"boolean\"}}},\"DirectionDimensionConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"field\":{\"type\":\"string\"},\"mode\":{\"enum\":[\"fixed\",\"field\"],\"type\":\"string\"},\"fixed\":{\"enum\":[\"forward\",\"reverse\",\"both\",\"none\"],\"type\":\"string\"}}}}}",
|
|
29
|
+
"geomap": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"definitions\":{\"Options\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"view\",\"controls\",\"basemap\",\"layers\",\"tooltip\"],\"properties\":{\"view\":{\"$ref\":\"#/definitions/MapViewConfig\"},\"controls\":{\"$ref\":\"#/definitions/ControlsOptions\"},\"basemap\":{\"$ref\":\"#/definitions/MapLayerOptions\"},\"layers\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MapLayerOptions\"}},\"tooltip\":{\"$ref\":\"#/definitions/TooltipOptions\"}}},\"MapViewConfig\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"default\":\"zero\"},\"lat\":{\"type\":\"integer\",\"default\":0},\"lon\":{\"type\":\"integer\",\"default\":0},\"zoom\":{\"type\":\"integer\",\"default\":1},\"minZoom\":{\"type\":\"integer\"},\"maxZoom\":{\"type\":\"integer\"},\"padding\":{\"type\":\"integer\"},\"allLayers\":{\"type\":\"boolean\",\"default\":true},\"lastOnly\":{\"type\":\"boolean\"},\"layer\":{\"type\":\"string\"},\"shared\":{\"type\":\"boolean\"},\"noRepeat\":{\"type\":\"boolean\",\"default\":false},\"dashboardVariable\":{\"type\":\"boolean\"},\"dashboardVariableName\":{\"type\":\"string\"}}},\"ControlsOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"showZoom\":{\"type\":\"boolean\",\"description\":\"Zoom (upper left)\"},\"mouseWheelZoom\":{\"type\":\"boolean\",\"description\":\"let the mouse wheel zoom\"},\"showAttribution\":{\"type\":\"boolean\",\"description\":\"Lower right\"},\"showScale\":{\"type\":\"boolean\",\"description\":\"Scale options\"},\"showDebug\":{\"type\":\"boolean\",\"description\":\"Show debug\"},\"showMeasure\":{\"type\":\"boolean\",\"description\":\"Show measure\"}}},\"TooltipOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/TooltipMode\"}}},\"TooltipMode\":{\"enum\":[\"none\",\"details\"],\"type\":\"string\"},\"MapCenterID\":{\"enum\":[\"zero\",\"coords\",\"fit\"],\"type\":\"string\"},\"MapLayerOptions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"name\"],\"properties\":{\"type\":{\"type\":\"string\"},\"name\":{\"type\":\"string\",\"description\":\"configured unique display name\"},\"config\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"Custom options depending on the type\"},\"location\":{\"$ref\":\"#/definitions/FrameGeometrySource\",\"description\":\"Common method to define geometry fields\"},\"filterData\":{\"type\":\"object\",\"additionalProperties\":{},\"description\":\"Defines a frame MatcherConfig that may filter data for the given layer\"},\"opacity\":{\"type\":\"integer\",\"description\":\"Common properties:\\nhttps://openlayers.org/en/latest/apidoc/module-ol_layer_Base-BaseLayer.html\\nLayer opacity (0-1)\"},\"tooltip\":{\"type\":\"boolean\",\"description\":\"Check tooltip (defaults to true)\"}}},\"FrameGeometrySource\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"$ref\":\"#/definitions/FrameGeometrySourceMode\"},\"geohash\":{\"type\":\"string\",\"description\":\"Field mappings\"},\"latitude\":{\"type\":\"string\"},\"longitude\":{\"type\":\"string\"},\"wkt\":{\"type\":\"string\"},\"lookup\":{\"type\":\"string\"},\"gazetteer\":{\"type\":\"string\",\"description\":\"Path to Gazetteer\"}}},\"FrameGeometrySourceMode\":{\"enum\":[\"auto\",\"geohash\",\"coords\",\"lookup\"],\"type\":\"string\"}}}",
|
|
30
|
+
"prometheus": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/Dataquery\",\"definitions\":{\"AdhocFilters\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"key\",\"operator\",\"value\"],\"properties\":{\"key\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"},\"values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}},\"ResultAssertions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"typeVersion\"],\"properties\":{\"maxFrames\":{\"type\":\"integer\",\"description\":\"Maximum frame count\"},\"type\":{\"$ref\":\"#/definitions/ResultAssertionsType\",\"description\":\"Type asserts that the frame matches a known type structure.\\nPossible enum values:\\n - `\\\"\\\"` \\n - `\\\"timeseries-wide\\\"` \\n - `\\\"timeseries-long\\\"` \\n - `\\\"timeseries-many\\\"` \\n - `\\\"timeseries-multi\\\"` \\n - `\\\"directory-listing\\\"` \\n - `\\\"table\\\"` \\n - `\\\"numeric-wide\\\"` \\n - `\\\"numeric-multi\\\"` \\n - `\\\"numeric-long\\\"` \\n - `\\\"log-lines\\\"` \"},\"typeVersion\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\\ncontract documentation https://grafana.github.io/dataplane/contract/.\"}}},\"ScopesFilters\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"key\",\"operator\",\"value\"],\"properties\":{\"key\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"},\"values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}},\"Scopes\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"title\"],\"properties\":{\"defaultPath\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/ScopesFilters\"}},\"title\":{\"type\":\"string\"}}},\"TimeRange\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\"],\"properties\":{\"from\":{\"type\":\"string\",\"description\":\"From is the start time of the query.\",\"default\":\"now-6h\"},\"to\":{\"type\":\"string\",\"description\":\"To is the end time of the query.\",\"default\":\"now\"}}},\"Dataquery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"expr\"],\"properties\":{\"adhocFilters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/AdhocFilters\"},\"description\":\"Additional Ad-hoc filters that take precedence over Scope on conflict.\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"The datasource\"},\"editorMode\":{\"$ref\":\"#/definitions/QueryEditorMode\",\"description\":\"what we should show in the editor\\nPossible enum values:\\n - `\\\"builder\\\"` \\n - `\\\"code\\\"` \"},\"exemplar\":{\"type\":\"boolean\",\"description\":\"Execute an additional query to identify interesting raw samples relevant for the given expr\"},\"expr\":{\"type\":\"string\",\"description\":\"The actual expression/query that will be evaluated by Prometheus\"},\"format\":{\"$ref\":\"#/definitions/PromQueryFormat\",\"description\":\"The response format\\nPossible enum values:\\n - `\\\"time_series\\\"` \\n - `\\\"table\\\"` \\n - `\\\"heatmap\\\"` \"},\"groupByKeys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Group By parameters to apply to aggregate expressions in the query\"},\"hide\":{\"type\":\"boolean\",\"description\":\"true if query is disabled (ie should not be returned to the dashboard)\\nNOTE: this does not always imply that the query should not be executed since\\nthe results from a hidden query may be used as the input to other queries (SSE etc)\"},\"instant\":{\"type\":\"boolean\",\"description\":\"Returns only the latest value that Prometheus has scraped for the requested time series\"},\"intervalFactor\":{\"type\":\"integer\",\"description\":\"Used to specify how many times to divide max data points by. We use max data points under query options\\nSee https://github.com/grafana/grafana/issues/48081\\nDeprecated: use interval\"},\"intervalMs\":{\"type\":\"number\",\"description\":\"Interval is the suggested duration between time points in a time series query.\\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\\nfrom the interval required to fill a pixels in the visualization\"},\"legendFormat\":{\"type\":\"string\",\"description\":\"Series name override or template. Ex. {{hostname}} will be replaced with label value for hostname\"},\"maxDataPoints\":{\"type\":\"integer\",\"description\":\"MaxDataPoints is the maximum number of data points that should be returned from a time series query.\\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\\nfrom the number of pixels visible in a visualization\"},\"queryType\":{\"type\":\"string\",\"description\":\"QueryType is an optional identifier for the type of query.\\nIt can be used to distinguish different types of queries.\"},\"range\":{\"type\":\"boolean\",\"description\":\"Returns a Range vector, comprised of a set of time series containing a range of data points over time for each time series\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"RefID is the unique identifier of the query, set by the frontend call.\"},\"resultAssertions\":{\"$ref\":\"#/definitions/ResultAssertions\",\"description\":\"Optionally define expected query result behavior\"},\"scopes\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Scopes\"},\"description\":\"A set of filters applied to apply to the query\"},\"timeRange\":{\"$ref\":\"#/definitions/TimeRange\",\"description\":\"TimeRange represents the query range\\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly\"},\"interval\":{\"type\":\"string\",\"description\":\"An additional lower limit for the step parameter of the Prometheus query and for the\\n`$__interval` and `$__rate_interval` variables.\"}}},\"ResultAssertionsType\":{\"enum\":[\"\",\"timeseries-wide\",\"timeseries-long\",\"timeseries-many\",\"timeseries-multi\",\"directory-listing\",\"table\",\"numeric-wide\",\"numeric-multi\",\"numeric-long\",\"log-lines\"],\"type\":\"string\"},\"QueryEditorMode\":{\"enum\":[\"builder\",\"code\"],\"type\":\"string\"},\"PromQueryFormat\":{\"enum\":[\"time_series\",\"table\",\"heatmap\"],\"type\":\"string\"},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
31
|
+
"tempo": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/Dataquery\",\"definitions\":{\"Dataquery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"filters\"],\"properties\":{\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"query\":{\"type\":\"string\",\"description\":\"TraceQL query or trace ID\"},\"search\":{\"type\":\"string\",\"description\":\"@deprecated Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true\"},\"serviceName\":{\"type\":\"string\",\"description\":\"@deprecated Query traces by service name\"},\"spanName\":{\"type\":\"string\",\"description\":\"@deprecated Query traces by span name\"},\"minDuration\":{\"type\":\"string\",\"description\":\"@deprecated Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms\"},\"maxDuration\":{\"type\":\"string\",\"description\":\"@deprecated Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms\"},\"serviceMapQuery\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}],\"description\":\"Filters to be included in a PromQL query to select data for the service graph. Example: {client=\\\"app\\\",service=\\\"app\\\"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally.\"},\"serviceMapIncludeNamespace\":{\"type\":\"boolean\",\"description\":\"Use service.namespace in addition to service.name to uniquely identify a service.\"},\"limit\":{\"type\":\"integer\",\"description\":\"Defines the maximum number of traces that are returned from Tempo\"},\"spss\":{\"type\":\"integer\",\"description\":\"Defines the maximum number of spans per spanset that are returned from Tempo\"},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/TraceqlFilter\"}},\"groupBy\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/TraceqlFilter\"},\"description\":\"Filters that are used to query the metrics summary\"},\"tableType\":{\"$ref\":\"#/definitions/SearchTableType\",\"description\":\"The type of the table that is used to display the search results\"},\"step\":{\"type\":\"string\",\"description\":\"For metric queries, the step size to use\"},\"exemplars\":{\"type\":\"integer\",\"description\":\"For metric queries, how many exemplars to request, 0 means no exemplars\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"},\"metricsQueryType\":{\"$ref\":\"#/definitions/MetricsQueryType\",\"description\":\"For metric queries, whether to run instant or range queries\"}}},\"TraceqlFilter\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\"],\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Uniquely identify the filter, will not be used in the query generation\"},\"tag\":{\"type\":\"string\",\"description\":\"The tag for the search filter, for example: .http.status_code, .service.name, status\"},\"operator\":{\"type\":\"string\",\"description\":\"The operator that connects the tag to the value, for example: =, >, !=, =~\"},\"value\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}],\"description\":\"The value for the search filter\"},\"valueType\":{\"type\":\"string\",\"description\":\"The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query\"},\"scope\":{\"$ref\":\"#/definitions/TraceqlSearchScope\",\"description\":\"The scope of the filter, can either be unscoped/all scopes, resource or span\"}}},\"TraceqlSearchScope\":{\"enum\":[\"intrinsic\",\"unscoped\",\"event\",\"instrumentation\",\"link\",\"resource\",\"span\"],\"type\":\"string\",\"description\":\"static fields are pre-set in the UI, dynamic fields are added by the user\"},\"SearchTableType\":{\"enum\":[\"traces\",\"spans\",\"raw\"],\"type\":\"string\",\"description\":\"The type of the table that is used to display the search results\"},\"MetricsQueryType\":{\"enum\":[\"range\",\"instant\"],\"type\":\"string\"},\"TempoQueryType\":{\"enum\":[\"traceql\",\"traceqlSearch\",\"serviceMap\",\"upload\",\"nativeSearch\",\"traceId\",\"clear\"],\"type\":\"string\"},\"SearchStreamingState\":{\"enum\":[\"pending\",\"streaming\",\"done\",\"error\"],\"type\":\"string\",\"description\":\"The state of the TraceQL streaming search query\"},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
32
|
+
"loki": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/dataquery\",\"definitions\":{\"QueryEditorMode\":{\"enum\":[\"code\",\"builder\"],\"type\":\"string\"},\"LokiQueryType\":{\"enum\":[\"range\",\"instant\",\"stream\"],\"type\":\"string\"},\"SupportingQueryType\":{\"enum\":[\"logsVolume\",\"logsSample\",\"dataSample\",\"infiniteScroll\"],\"type\":\"string\"},\"LokiQueryDirection\":{\"enum\":[\"forward\",\"backward\",\"scan\"],\"type\":\"string\"},\"dataquery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"expr\"],\"properties\":{\"expr\":{\"type\":\"string\",\"description\":\"The LogQL query.\"},\"legendFormat\":{\"type\":\"string\",\"description\":\"Used to override the name of the series.\"},\"maxLines\":{\"type\":\"integer\",\"description\":\"Used to limit the number of log rows returned.\"},\"resolution\":{\"type\":\"integer\",\"description\":\"@deprecated, now use step.\"},\"editorMode\":{\"$ref\":\"#/definitions/QueryEditorMode\"},\"range\":{\"type\":\"boolean\",\"description\":\"@deprecated, now use queryType.\"},\"instant\":{\"type\":\"boolean\",\"description\":\"@deprecated, now use queryType.\"},\"step\":{\"type\":\"string\",\"description\":\"Used to set step value for range queries.\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"},\"direction\":{\"$ref\":\"#/definitions/LokiQueryDirection\"}}},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
33
|
+
"elasticsearch": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/dataquery\",\"definitions\":{\"BucketAggregation\":{\"oneOf\":[{\"$ref\":\"#/definitions/DateHistogram\"},{\"$ref\":\"#/definitions/Histogram\"},{\"$ref\":\"#/definitions/Terms\"},{\"$ref\":\"#/definitions/Filters\"},{\"$ref\":\"#/definitions/GeoHashGrid\"},{\"$ref\":\"#/definitions/Nested\"}]},\"DateHistogram\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"type\"],\"properties\":{\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/BucketAggregationType\"}],\"default\":\"date_histogram\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"interval\":{\"type\":\"string\"},\"min_doc_count\":{\"type\":\"string\"},\"trimEdges\":{\"type\":\"string\"},\"offset\":{\"type\":\"string\"},\"timeZone\":{\"type\":\"string\"}}}}},\"BucketAggregationType\":{\"enum\":[\"terms\",\"filters\",\"geohash_grid\",\"date_histogram\",\"histogram\",\"nested\"],\"type\":\"string\"},\"Histogram\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"type\"],\"properties\":{\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/BucketAggregationType\"}],\"default\":\"histogram\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"interval\":{\"type\":\"string\"},\"min_doc_count\":{\"type\":\"string\"}}}}},\"Terms\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"type\"],\"properties\":{\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/BucketAggregationType\"}],\"default\":\"terms\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"order\":{\"$ref\":\"#/definitions/TermsOrder\"},\"size\":{\"type\":\"string\"},\"min_doc_count\":{\"type\":\"string\"},\"orderBy\":{\"type\":\"string\"},\"missing\":{\"type\":\"string\"}}}}},\"TermsOrder\":{\"enum\":[\"desc\",\"asc\"],\"type\":\"string\"},\"Filters\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"type\"],\"properties\":{\"id\":{\"type\":\"string\"},\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/BucketAggregationType\"}],\"default\":\"filters\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Filter\"}}}}}},\"Filter\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"query\",\"label\"],\"properties\":{\"query\":{\"type\":\"string\"},\"label\":{\"type\":\"string\"}}},\"GeoHashGrid\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"type\"],\"properties\":{\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/BucketAggregationType\"}],\"default\":\"geohash_grid\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"precision\":{\"type\":\"string\"}}}}},\"Nested\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"type\"],\"properties\":{\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/BucketAggregationType\"}],\"default\":\"nested\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":{}}}},\"MetricAggregation\":{\"oneOf\":[{\"$ref\":\"#/definitions/Count\"},{\"$ref\":\"#/definitions/PipelineMetricAggregation\"},{\"$ref\":\"#/definitions/MetricAggregationWithSettings\"}]},\"Count\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"hide\":{\"type\":\"boolean\"}}},\"MetricAggregationType\":{\"oneOf\":[{\"type\":\"string\",\"const\":\"count\"},{\"type\":\"string\",\"const\":\"avg\"},{\"type\":\"string\",\"const\":\"sum\"},{\"type\":\"string\",\"const\":\"min\"},{\"type\":\"string\",\"const\":\"max\"},{\"type\":\"string\",\"const\":\"extended_stats\"},{\"type\":\"string\",\"const\":\"percentiles\"},{\"type\":\"string\",\"const\":\"cardinality\"},{\"type\":\"string\",\"const\":\"raw_document\"},{\"type\":\"string\",\"const\":\"raw_data\"},{\"type\":\"string\",\"const\":\"logs\"},{\"type\":\"string\",\"const\":\"rate\"},{\"type\":\"string\",\"const\":\"top_metrics\"},{\"$ref\":\"#/definitions/PipelineMetricAggregationType\"}]},\"PipelineMetricAggregationType\":{\"enum\":[\"moving_avg\",\"moving_fn\",\"derivative\",\"serial_diff\",\"cumulative_sum\",\"bucket_script\"],\"type\":\"string\"},\"PipelineMetricAggregation\":{\"oneOf\":[{\"$ref\":\"#/definitions/MovingAverage\"},{\"$ref\":\"#/definitions/Derivative\"},{\"$ref\":\"#/definitions/CumulativeSum\"},{\"$ref\":\"#/definitions/BucketScript\"}]},\"MovingAverage\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"pipelineAgg\":{\"type\":\"string\"},\"field\":{\"type\":\"string\"},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\",\"additionalProperties\":{}}},\"hide\":{\"type\":\"boolean\"}},\"description\":\"#MovingAverage's settings are overridden in types.ts\"},\"Derivative\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"pipelineAgg\":{\"type\":\"string\"},\"field\":{\"type\":\"string\"},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"unit\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"CumulativeSum\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"pipelineAgg\":{\"type\":\"string\"},\"field\":{\"type\":\"string\"},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"format\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"BucketScript\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"pipelineVariables\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/PipelineVariable\"}},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"script\":{\"$ref\":\"#/definitions/InlineScript\"}}},\"hide\":{\"type\":\"boolean\"}}},\"PipelineVariable\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"name\",\"pipelineAgg\"],\"properties\":{\"name\":{\"type\":\"string\"},\"pipelineAgg\":{\"type\":\"string\"}}},\"InlineScript\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"inline\":{\"type\":\"string\"}}}]},\"MetricAggregationWithSettings\":{\"oneOf\":[{\"$ref\":\"#/definitions/BucketScript\"},{\"$ref\":\"#/definitions/CumulativeSum\"},{\"$ref\":\"#/definitions/Derivative\"},{\"$ref\":\"#/definitions/SerialDiff\"},{\"$ref\":\"#/definitions/RawData\"},{\"$ref\":\"#/definitions/RawDocument\"},{\"$ref\":\"#/definitions/UniqueCount\"},{\"$ref\":\"#/definitions/Percentiles\"},{\"$ref\":\"#/definitions/ExtendedStats\"},{\"$ref\":\"#/definitions/Min\"},{\"$ref\":\"#/definitions/Max\"},{\"$ref\":\"#/definitions/Sum\"},{\"$ref\":\"#/definitions/Average\"},{\"$ref\":\"#/definitions/MovingAverage\"},{\"$ref\":\"#/definitions/MovingFunction\"},{\"$ref\":\"#/definitions/Logs\"},{\"$ref\":\"#/definitions/Rate\"},{\"$ref\":\"#/definitions/TopMetrics\"}]},\"SerialDiff\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"pipelineAgg\":{\"type\":\"string\"},\"field\":{\"type\":\"string\"},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"lag\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"RawData\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"size\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"RawDocument\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"size\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"UniqueCount\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"precision_threshold\":{\"type\":\"string\"},\"missing\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"Percentiles\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"script\":{\"$ref\":\"#/definitions/InlineScript\"},\"missing\":{\"type\":\"string\"},\"percents\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}},\"hide\":{\"type\":\"boolean\"}}},\"ExtendedStats\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"script\":{\"$ref\":\"#/definitions/InlineScript\"},\"missing\":{\"type\":\"string\"},\"sigma\":{\"type\":\"string\"}}},\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"meta\":{\"type\":\"object\",\"additionalProperties\":{}},\"hide\":{\"type\":\"boolean\"}}},\"Min\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"script\":{\"$ref\":\"#/definitions/InlineScript\"},\"missing\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"Max\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"script\":{\"$ref\":\"#/definitions/InlineScript\"},\"missing\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"Sum\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"script\":{\"$ref\":\"#/definitions/InlineScript\"},\"missing\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"Average\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"script\":{\"$ref\":\"#/definitions/InlineScript\"},\"missing\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"MovingFunction\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"pipelineAgg\":{\"type\":\"string\"},\"field\":{\"type\":\"string\"},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"window\":{\"type\":\"string\"},\"script\":{\"$ref\":\"#/definitions/InlineScript\"},\"shift\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"Logs\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"limit\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"Rate\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"unit\":{\"type\":\"string\"},\"mode\":{\"type\":\"string\"}}},\"hide\":{\"type\":\"boolean\"}}},\"TopMetrics\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"order\":{\"type\":\"string\"},\"orderBy\":{\"type\":\"string\"},\"metrics\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}},\"hide\":{\"type\":\"boolean\"}}},\"BaseBucketAggregation\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"type\"],\"properties\":{\"id\":{\"type\":\"string\"},\"type\":{\"$ref\":\"#/definitions/BucketAggregationType\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":{}}}},\"BucketAggregationWithField\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"id\",\"type\"],\"properties\":{\"field\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"type\":{\"$ref\":\"#/definitions/BucketAggregationType\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":{}}}},\"DateHistogramSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"interval\":{\"type\":\"string\"},\"min_doc_count\":{\"type\":\"string\"},\"trimEdges\":{\"type\":\"string\"},\"offset\":{\"type\":\"string\"},\"timeZone\":{\"type\":\"string\"}}},\"HistogramSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"interval\":{\"type\":\"string\"},\"min_doc_count\":{\"type\":\"string\"}}},\"TermsSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"order\":{\"$ref\":\"#/definitions/TermsOrder\"},\"size\":{\"type\":\"string\"},\"min_doc_count\":{\"type\":\"string\"},\"orderBy\":{\"type\":\"string\"},\"missing\":{\"type\":\"string\"}}},\"FiltersSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/Filter\"}}}},\"GeoHashGridSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"precision\":{\"type\":\"string\"}}},\"BaseMetricAggregation\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"hide\":{\"type\":\"boolean\"}}},\"MetricAggregationWithField\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"field\":{\"type\":\"string\"},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"hide\":{\"type\":\"boolean\"}}},\"MetricAggregationWithMissingSupport\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"missing\":{\"type\":\"string\"}}},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"hide\":{\"type\":\"boolean\"}}},\"MetricAggregationWithInlineScript\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"script\":{\"$ref\":\"#/definitions/InlineScript\"}}},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"hide\":{\"type\":\"boolean\"}}},\"ExtendedStatMetaType\":{\"enum\":[\"avg\",\"min\",\"max\",\"sum\",\"count\",\"std_deviation\",\"std_deviation_bounds_upper\",\"std_deviation_bounds_lower\"],\"type\":\"string\"},\"ExtendedStat\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"label\",\"value\"],\"properties\":{\"label\":{\"type\":\"string\"},\"value\":{\"$ref\":\"#/definitions/ExtendedStatMetaType\"}}},\"BasePipelineMetricAggregation\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"pipelineAgg\":{\"type\":\"string\"},\"field\":{\"type\":\"string\"},\"type\":{\"type\":\"string\"},\"id\":{\"type\":\"string\"},\"hide\":{\"type\":\"boolean\"}}},\"PipelineMetricAggregationWithMultipleBucketPaths\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"id\"],\"properties\":{\"pipelineVariables\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/PipelineVariable\"}},\"type\":{\"$ref\":\"#/definitions/MetricAggregationType\"},\"id\":{\"type\":\"string\"},\"hide\":{\"type\":\"boolean\"}}},\"MovingAverageModel\":{\"enum\":[\"simple\",\"linear\",\"ewma\",\"holt\",\"holt_winters\"],\"type\":\"string\"},\"MovingAverageModelOption\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"label\",\"value\"],\"properties\":{\"label\":{\"type\":\"string\"},\"value\":{\"$ref\":\"#/definitions/MovingAverageModel\"}}},\"BaseMovingAverageModelSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"model\",\"window\",\"predict\"],\"properties\":{\"model\":{\"$ref\":\"#/definitions/MovingAverageModel\"},\"window\":{\"type\":\"string\"},\"predict\":{\"type\":\"string\"}}},\"MovingAverageSimpleModelSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"model\",\"window\",\"predict\"],\"properties\":{\"model\":{\"allOf\":[{\"$ref\":\"#/definitions/MovingAverageModel\"}],\"default\":\"simple\"},\"window\":{\"type\":\"string\"},\"predict\":{\"type\":\"string\"}}},\"MovingAverageLinearModelSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"model\",\"window\",\"predict\"],\"properties\":{\"model\":{\"allOf\":[{\"$ref\":\"#/definitions/MovingAverageModel\"}],\"default\":\"linear\"},\"window\":{\"type\":\"string\"},\"predict\":{\"type\":\"string\"}}},\"MovingAverageEWMAModelSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"model\",\"window\",\"minimize\",\"predict\"],\"properties\":{\"model\":{\"allOf\":[{\"$ref\":\"#/definitions/MovingAverageModel\"}],\"default\":\"ewma\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"alpha\":{\"type\":\"string\"}}},\"window\":{\"type\":\"string\"},\"minimize\":{\"type\":\"boolean\"},\"predict\":{\"type\":\"string\"}}},\"MovingAverageHoltModelSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"model\",\"settings\",\"window\",\"minimize\",\"predict\"],\"properties\":{\"model\":{\"allOf\":[{\"$ref\":\"#/definitions/MovingAverageModel\"}],\"default\":\"holt\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"alpha\":{\"type\":\"string\"},\"beta\":{\"type\":\"string\"}}},\"window\":{\"type\":\"string\"},\"minimize\":{\"type\":\"boolean\"},\"predict\":{\"type\":\"string\"}}},\"MovingAverageHoltWintersModelSettings\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"model\",\"settings\",\"window\",\"minimize\",\"predict\"],\"properties\":{\"model\":{\"allOf\":[{\"$ref\":\"#/definitions/MovingAverageModel\"}],\"default\":\"holt_winters\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"alpha\":{\"type\":\"string\"},\"beta\":{\"type\":\"string\"},\"gamma\":{\"type\":\"string\"},\"period\":{\"type\":\"string\"},\"pad\":{\"type\":\"boolean\"}}},\"window\":{\"type\":\"string\"},\"minimize\":{\"type\":\"boolean\"},\"predict\":{\"type\":\"string\"}}},\"dataquery\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"alias\":{\"type\":\"string\",\"description\":\"Alias pattern\"},\"query\":{\"type\":\"string\",\"description\":\"Lucene query\"},\"timeField\":{\"type\":\"string\",\"description\":\"Name of time field\"},\"bucketAggs\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/BucketAggregation\"},\"description\":\"List of bucket aggregations\"},\"metrics\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MetricAggregation\"},\"description\":\"List of metric aggregations\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"}}},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
34
|
+
"cloudwatch": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/Request\",\"definitions\":{\"MetricStat\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"region\",\"namespace\"],\"properties\":{\"region\":{\"type\":\"string\",\"description\":\"AWS region to query for the metric\"},\"namespace\":{\"type\":\"string\",\"description\":\"A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.\"},\"metricName\":{\"type\":\"string\",\"description\":\"Name of the metric\"},\"dimensions\":{\"$ref\":\"#/definitions/Dimensions\",\"description\":\"The dimensions of the metric\"},\"matchExact\":{\"type\":\"boolean\",\"description\":\"Only show metrics that exactly match all defined dimension names.\"},\"period\":{\"type\":\"string\",\"description\":\"The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes\"},\"accountId\":{\"type\":\"string\",\"description\":\"The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.\"},\"statistic\":{\"type\":\"string\",\"description\":\"Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.\"},\"statistics\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"@deprecated use statistic\"}}},\"Dimensions\":{\"type\":\"object\",\"additionalProperties\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"description\":\"A name/value pair that is part of the identity of a metric. For example, you can get statistics for a specific EC2 instance by specifying the InstanceId dimension when you search for metrics.\"},\"MetricsQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"queryMode\",\"id\",\"region\",\"namespace\"],\"properties\":{\"queryMode\":{\"$ref\":\"#/definitions/QueryMode\",\"description\":\"Whether a query is a Metrics, Logs, or Annotations query\",\"default\":\"Metrics\"},\"metricQueryType\":{\"$ref\":\"#/definitions/MetricQueryType\",\"description\":\"Whether to use a metric search or metric insights query\"},\"metricEditorMode\":{\"$ref\":\"#/definitions/MetricEditorMode\",\"description\":\"Whether to use the query builder or code editor to create the query\"},\"id\":{\"type\":\"string\",\"description\":\"ID can be used to reference other queries in math expressions. The ID can include numbers, letters, and underscore, and must start with a lowercase letter.\"},\"alias\":{\"type\":\"string\",\"description\":\"Deprecated: use label\\n@deprecated use label\"},\"label\":{\"type\":\"string\",\"description\":\"Change the time series legend names using dynamic labels. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html for more details.\"},\"expression\":{\"type\":\"string\",\"description\":\"Math expression query\"},\"sqlExpression\":{\"type\":\"string\",\"description\":\"When the metric query type is set to `Insights`, this field is used to specify the query string.\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"region\":{\"type\":\"string\",\"description\":\"AWS region to query for the metric\"},\"namespace\":{\"type\":\"string\",\"description\":\"A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.\"},\"metricName\":{\"type\":\"string\",\"description\":\"Name of the metric\"},\"dimensions\":{\"$ref\":\"#/definitions/Dimensions\",\"description\":\"The dimensions of the metric\"},\"matchExact\":{\"type\":\"boolean\",\"description\":\"Only show metrics that exactly match all defined dimension names.\"},\"period\":{\"type\":\"string\",\"description\":\"The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes\"},\"accountId\":{\"type\":\"string\",\"description\":\"The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.\"},\"statistic\":{\"type\":\"string\",\"description\":\"Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.\"},\"sql\":{\"$ref\":\"#/definitions/SQLExpression\",\"description\":\"When the metric query type is set to `Insights` and the `metricEditorMode` is set to `Builder`, this field is used to build up an object representation of a SQL query.\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"},\"statistics\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"@deprecated use statistic\"}},\"description\":\"Shape of a CloudWatch Metrics query\"},\"QueryMode\":{\"enum\":[\"Metrics\",\"Logs\",\"Annotations\"],\"type\":\"string\"},\"MetricQueryType\":{\"enum\":[0,1],\"type\":\"integer\"},\"MetricEditorMode\":{\"enum\":[0,1],\"type\":\"integer\"},\"SQLExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"select\":{\"$ref\":\"#/definitions/QueryEditorFunctionExpression\",\"description\":\"SELECT part of the SQL expression\"},\"from\":{\"oneOf\":[{\"$ref\":\"#/definitions/QueryEditorPropertyExpression\"},{\"$ref\":\"#/definitions/QueryEditorFunctionExpression\"}],\"description\":\"FROM part of the SQL expression\"},\"where\":{\"$ref\":\"#/definitions/QueryEditorArrayExpression\",\"description\":\"WHERE part of the SQL expression\"},\"groupBy\":{\"$ref\":\"#/definitions/QueryEditorArrayExpression\",\"description\":\"GROUP BY part of the SQL expression\"},\"orderBy\":{\"$ref\":\"#/definitions/QueryEditorFunctionExpression\",\"description\":\"ORDER BY part of the SQL expression\"},\"orderByDirection\":{\"type\":\"string\",\"description\":\"The sort order of the SQL expression, `ASC` or `DESC`\"},\"limit\":{\"type\":\"integer\",\"description\":\"LIMIT part of the SQL expression\"}}},\"QueryEditorFunctionExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"function\"},\"name\":{\"type\":\"string\"},\"parameters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/QueryEditorFunctionParameterExpression\"}}}},\"QueryEditorExpressionType\":{\"enum\":[\"property\",\"operator\",\"or\",\"and\",\"groupBy\",\"function\",\"functionParameter\"],\"type\":\"string\"},\"QueryEditorFunctionParameterExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"functionParameter\"},\"name\":{\"type\":\"string\"}}},\"QueryEditorPropertyExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"property\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"property\"},\"property\":{\"$ref\":\"#/definitions/QueryEditorProperty\"}}},\"QueryEditorProperty\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorPropertyType\"}],\"default\":\"string\"},\"name\":{\"type\":\"string\"}}},\"QueryEditorPropertyType\":{\"enum\":[\"string\"],\"type\":\"string\"},\"QueryEditorArrayExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"expressions\"],\"properties\":{\"type\":{\"enum\":[\"and\",\"or\"],\"type\":\"string\"},\"expressions\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/QueryEditorExpression\"}}}},\"QueryEditorExpression\":{\"oneOf\":[{\"$ref\":\"#/definitions/QueryEditorArrayExpression\"},{\"$ref\":\"#/definitions/QueryEditorPropertyExpression\"},{\"$ref\":\"#/definitions/QueryEditorGroupByExpression\"},{\"$ref\":\"#/definitions/QueryEditorFunctionExpression\"},{\"$ref\":\"#/definitions/QueryEditorFunctionParameterExpression\"},{\"$ref\":\"#/definitions/QueryEditorOperatorExpression\"}]},\"QueryEditorGroupByExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"property\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"groupBy\"},\"property\":{\"$ref\":\"#/definitions/QueryEditorProperty\"}}},\"QueryEditorOperatorExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"property\",\"operator\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"operator\"},\"property\":{\"$ref\":\"#/definitions/QueryEditorProperty\"},\"operator\":{\"$ref\":\"#/definitions/QueryEditorOperator\",\"description\":\"TS type is operator: QueryEditorOperator<QueryEditorOperatorValueType>, extended in veneer\"}}},\"QueryEditorOperator\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"name\":{\"type\":\"string\"},\"value\":{\"oneOf\":[{\"$ref\":\"#/definitions/QueryEditorOperatorType\"},{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/QueryEditorOperatorType\"}}]}},\"description\":\"TS type is QueryEditorOperator<T extends QueryEditorOperatorValueType>, extended in veneer\"},\"QueryEditorOperatorType\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"boolean\"},{\"type\":\"integer\"}]},\"QueryEditorOperatorValueType\":{\"oneOf\":[{\"$ref\":\"#/definitions/QueryEditorOperatorType\"},{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/QueryEditorOperatorType\"}}]},\"LogsQueryLanguage\":{\"enum\":[\"CWLI\",\"SQL\",\"PPL\"],\"type\":\"string\"},\"LogsQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"queryMode\",\"id\",\"region\"],\"properties\":{\"queryMode\":{\"$ref\":\"#/definitions/QueryMode\",\"description\":\"Whether a query is a Metrics, Logs, or Annotations query\",\"default\":\"Logs\"},\"id\":{\"type\":\"string\"},\"region\":{\"type\":\"string\",\"description\":\"AWS region to query for the logs\"},\"expression\":{\"type\":\"string\",\"description\":\"The CloudWatch Logs Insights query to execute\"},\"statsGroups\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Fields to group the results by, this field is automatically populated whenever the query is updated\"},\"logGroups\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/LogGroup\"},\"description\":\"Log groups to query\"},\"logGroupNames\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"@deprecated use logGroups\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"queryLanguage\":{\"$ref\":\"#/definitions/LogsQueryLanguage\",\"description\":\"Language used for querying logs, can be CWLI, SQL, or PPL. If empty, the default language is CWLI.\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"}},\"description\":\"Shape of a CloudWatch Logs query\"},\"LogGroup\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"arn\",\"name\"],\"properties\":{\"arn\":{\"type\":\"string\",\"description\":\"ARN of the log group\"},\"name\":{\"type\":\"string\",\"description\":\"Name of the log group\"},\"accountId\":{\"type\":\"string\",\"description\":\"AccountId of the log group\"},\"accountLabel\":{\"type\":\"string\",\"description\":\"Label of the log group\"}}},\"AnnotationQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"queryMode\",\"region\",\"namespace\"],\"properties\":{\"queryMode\":{\"$ref\":\"#/definitions/QueryMode\",\"description\":\"Whether a query is a Metrics, Logs, or Annotations query\",\"default\":\"Annotations\"},\"prefixMatching\":{\"type\":\"boolean\",\"description\":\"Enable matching on the prefix of the action name or alarm name, specify the prefixes with actionPrefix and/or alarmNamePrefix\"},\"actionPrefix\":{\"type\":\"string\",\"description\":\"Use this parameter to filter the results of the operation to only those alarms\\nthat use a certain alarm action. For example, you could specify the ARN of\\nan SNS topic to find all alarms that send notifications to that topic.\\ne.g. `arn:aws:sns:us-east-1:123456789012:my-app-` would match `arn:aws:sns:us-east-1:123456789012:my-app-action`\\nbut not match `arn:aws:sns:us-east-1:123456789012:your-app-action`\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"region\":{\"type\":\"string\",\"description\":\"AWS region to query for the metric\"},\"namespace\":{\"type\":\"string\",\"description\":\"A namespace is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other, so that metrics from different applications are not mistakenly aggregated into the same statistics. For example, Amazon EC2 uses the AWS/EC2 namespace.\"},\"metricName\":{\"type\":\"string\",\"description\":\"Name of the metric\"},\"dimensions\":{\"$ref\":\"#/definitions/Dimensions\",\"description\":\"The dimensions of the metric\"},\"matchExact\":{\"type\":\"boolean\",\"description\":\"Only show metrics that exactly match all defined dimension names.\"},\"period\":{\"type\":\"string\",\"description\":\"The length of time associated with a specific Amazon CloudWatch statistic. Can be specified by a number of seconds, 'auto', or as a duration string e.g. '15m' being 15 minutes\"},\"accountId\":{\"type\":\"string\",\"description\":\"The ID of the AWS account to query for the metric, specifying `all` will query all accounts that the monitoring account is permitted to query.\"},\"statistic\":{\"type\":\"string\",\"description\":\"Metric data aggregations over specified periods of time. For detailed definitions of the statistics supported by CloudWatch, see https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html.\"},\"alarmNamePrefix\":{\"type\":\"string\",\"description\":\"An alarm name prefix. If you specify this parameter, you receive information\\nabout all alarms that have names that start with this prefix.\\ne.g. `my-team-service-` would match `my-team-service-high-cpu` but not match `your-team-service-high-cpu`\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"},\"statistics\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"@deprecated use statistic\"}},\"description\":\"Shape of a CloudWatch Annotation query\\nTS type is CloudWatchDefaultQuery = Omit<CloudWatchLogsQuery, 'queryMode'> & CloudWatchMetricsQuery, declared in veneer\\n#CloudWatchDefaultQuery: #CloudWatchLogsQuery & #CloudWatchMetricsQuery @cuetsy(kind=\\\"type\\\")\"},\"Request\":{\"oneOf\":[{\"$ref\":\"#/definitions/MetricsQuery\"},{\"$ref\":\"#/definitions/LogsQuery\"},{\"$ref\":\"#/definitions/AnnotationQuery\"}]},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
35
|
+
"azuremonitor": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/MonitorQuery\",\"definitions\":{\"MonitorQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"subscription\":{\"type\":\"string\",\"description\":\"Azure subscription containing the resource(s) to be queried.\\nAlso used for template variable queries\"},\"subscriptions\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Subscriptions to be queried via Azure Resource Graph.\"},\"azureMonitor\":{\"$ref\":\"#/definitions/MetricQuery\",\"description\":\"Azure Monitor Metrics sub-query properties.\"},\"azureLogAnalytics\":{\"$ref\":\"#/definitions/LogsQuery\",\"description\":\"Azure Monitor Logs sub-query properties.\"},\"azureResourceGraph\":{\"$ref\":\"#/definitions/ResourceGraphQuery\",\"description\":\"Azure Resource Graph sub-query properties.\"},\"azureTraces\":{\"$ref\":\"#/definitions/TracesQuery\",\"description\":\"Application Insights Traces sub-query properties.\"},\"grafanaTemplateVariableFn\":{\"$ref\":\"#/definitions/GrafanaTemplateVariableQuery\",\"description\":\"@deprecated Legacy template variable support.\"},\"resourceGroup\":{\"type\":\"string\",\"description\":\"Resource group used in template variable queries\"},\"namespace\":{\"type\":\"string\",\"description\":\"Namespace used in template variable queries\"},\"resource\":{\"type\":\"string\",\"description\":\"Resource used in template variable queries\"},\"region\":{\"type\":\"string\",\"description\":\"Region used in template variable queries\"},\"customNamespace\":{\"type\":\"string\",\"description\":\"Custom namespace used in template variable queries\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"},\"query\":{\"type\":\"string\",\"description\":\"Used only for exemplar queries from Prometheus\"}}},\"MetricQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"resources\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MonitorResource\"},\"description\":\"Array of resource URIs to be queried.\"},\"metricNamespace\":{\"type\":\"string\",\"description\":\"metricNamespace is used as the resource type (or resource namespace).\\nIt's usually equal to the target metric namespace. e.g. microsoft.storage/storageaccounts\\nKept the name of the variable as metricNamespace to avoid backward incompatibility issues.\"},\"customNamespace\":{\"type\":\"string\",\"description\":\"Used as the value for the metricNamespace property when it's different from the resource namespace.\"},\"metricName\":{\"type\":\"string\",\"description\":\"The metric to query data for within the specified metricNamespace. e.g. UsedCapacity\"},\"region\":{\"type\":\"string\",\"description\":\"The Azure region containing the resource(s).\"},\"timeGrain\":{\"type\":\"string\",\"description\":\"The granularity of data points to be queried. Defaults to auto.\"},\"aggregation\":{\"type\":\"string\",\"description\":\"The aggregation to be used within the query. Defaults to the primaryAggregationType defined by the metric.\"},\"dimensionFilters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/MetricDimension\"},\"description\":\"Filters to reduce the set of data returned. Dimensions that can be filtered on are defined by the metric.\"},\"top\":{\"type\":\"string\",\"description\":\"Maximum number of records to return. Defaults to 10.\"},\"allowedTimeGrainsMs\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"Time grains that are supported by the metric.\"},\"alias\":{\"type\":\"string\",\"description\":\"Aliases can be set to modify the legend labels. e.g. {{ resourceGroup }}. See docs for more detail.\"},\"timeGrainUnit\":{\"type\":\"string\",\"description\":\"@deprecated\"},\"dimension\":{\"type\":\"string\",\"description\":\"@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration\"},\"dimensionFilter\":{\"type\":\"string\",\"description\":\"@deprecated This property was migrated to dimensionFilters and should only be accessed in the migration\"},\"metricDefinition\":{\"type\":\"string\",\"description\":\"@deprecated Use metricNamespace instead\"},\"resourceUri\":{\"type\":\"string\",\"description\":\"@deprecated Use resourceGroup, resourceName and metricNamespace instead\"},\"resourceGroup\":{\"type\":\"string\",\"description\":\"@deprecated Use resources instead\"},\"resourceName\":{\"type\":\"string\",\"description\":\"@deprecated Use resources instead\"}}},\"MonitorResource\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"subscription\":{\"type\":\"string\"},\"resourceGroup\":{\"type\":\"string\"},\"resourceName\":{\"type\":\"string\"},\"metricNamespace\":{\"type\":\"string\"},\"region\":{\"type\":\"string\"}}},\"MetricDimension\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"dimension\":{\"type\":\"string\",\"description\":\"Name of Dimension to be filtered on.\"},\"operator\":{\"type\":\"string\",\"description\":\"String denoting the filter operation. Supports 'eq' - equals,'ne' - not equals, 'sw' - starts with. Note that some dimensions may not support all operators.\"},\"filters\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Values to match with the filter.\"},\"filter\":{\"type\":\"string\",\"description\":\"@deprecated filter is deprecated in favour of filters to support multiselect.\"}}},\"LogsQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"query\":{\"type\":\"string\",\"description\":\"KQL query to be executed.\"},\"resultFormat\":{\"$ref\":\"#/definitions/ResultFormat\",\"description\":\"Specifies the format results should be returned as.\"},\"resources\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array of resource URIs to be queried.\"},\"dashboardTime\":{\"type\":\"boolean\",\"description\":\"If set to true the dashboard time range will be used as a filter for the query. Otherwise the query time ranges will be used. Defaults to false.\"},\"timeColumn\":{\"type\":\"string\",\"description\":\"If dashboardTime is set to true this value dictates which column the time filter will be applied to. Defaults to the first tables timeSpan column, the first datetime column found, or TimeGenerated\"},\"basicLogsQuery\":{\"type\":\"boolean\",\"description\":\"If set to true the query will be run as a basic logs query\"},\"workspace\":{\"type\":\"string\",\"description\":\"Workspace ID. This was removed in Grafana 8, but remains for backwards compat.\"},\"resource\":{\"type\":\"string\",\"description\":\"@deprecated Use resources instead\"},\"intersectTime\":{\"type\":\"boolean\",\"description\":\"@deprecated Use dashboardTime instead\"}},\"description\":\"Azure Monitor Logs sub-query properties\"},\"ResultFormat\":{\"enum\":[\"table\",\"time_series\",\"trace\",\"logs\"],\"type\":\"string\"},\"ResourceGraphQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"query\":{\"type\":\"string\",\"description\":\"Azure Resource Graph KQL query to be executed.\"},\"resultFormat\":{\"type\":\"string\",\"description\":\"Specifies the format results should be returned as. Defaults to table.\"}}},\"TracesQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"resultFormat\":{\"$ref\":\"#/definitions/ResultFormat\",\"description\":\"Specifies the format results should be returned as.\"},\"resources\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array of resource URIs to be queried.\"},\"operationId\":{\"type\":\"string\",\"description\":\"Operation ID. Used only for Traces queries.\"},\"traceTypes\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Types of events to filter by.\"},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/TracesFilter\"},\"description\":\"Filters for property values.\"},\"query\":{\"type\":\"string\",\"description\":\"KQL query to be executed.\"}},\"description\":\"Application Insights Traces sub-query properties\"},\"TracesFilter\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"property\",\"operation\",\"filters\"],\"properties\":{\"property\":{\"type\":\"string\",\"description\":\"Property name, auto-populated based on available traces.\"},\"operation\":{\"type\":\"string\",\"description\":\"Comparison operator to use. Either equals or not equals.\"},\"filters\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Values to filter by.\"}}},\"GrafanaTemplateVariableQuery\":{\"oneOf\":[{\"$ref\":\"#/definitions/AppInsightsMetricNameQuery\"},{\"$ref\":\"#/definitions/AppInsightsGroupByQuery\"},{\"$ref\":\"#/definitions/SubscriptionsQuery\"},{\"$ref\":\"#/definitions/ResourceGroupsQuery\"},{\"$ref\":\"#/definitions/ResourceNamesQuery\"},{\"$ref\":\"#/definitions/MetricNamespaceQuery\"},{\"$ref\":\"#/definitions/MetricDefinitionsQuery\"},{\"$ref\":\"#/definitions/MetricNamesQuery\"},{\"$ref\":\"#/definitions/WorkspacesQuery\"},{\"$ref\":\"#/definitions/UnknownQuery\"}]},\"AppInsightsMetricNameQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"AppInsightsMetricNameQuery\"}}},\"AppInsightsGroupByQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\",\"metricName\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"AppInsightsGroupByQuery\"},\"metricName\":{\"type\":\"string\"}}},\"SubscriptionsQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"SubscriptionsQuery\"}}},\"ResourceGroupsQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\",\"subscription\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"ResourceGroupsQuery\"},\"subscription\":{\"type\":\"string\"}}},\"ResourceNamesQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\",\"subscription\",\"resourceGroup\",\"metricNamespace\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"ResourceNamesQuery\"},\"subscription\":{\"type\":\"string\"},\"resourceGroup\":{\"type\":\"string\"},\"metricNamespace\":{\"type\":\"string\"}}},\"MetricNamespaceQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\",\"subscription\",\"resourceGroup\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"MetricNamespaceQuery\"},\"subscription\":{\"type\":\"string\"},\"resourceGroup\":{\"type\":\"string\"},\"metricNamespace\":{\"type\":\"string\"},\"resourceName\":{\"type\":\"string\"}}},\"MetricDefinitionsQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\",\"subscription\",\"resourceGroup\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"MetricDefinitionsQuery\"},\"subscription\":{\"type\":\"string\"},\"resourceGroup\":{\"type\":\"string\"},\"metricNamespace\":{\"type\":\"string\"},\"resourceName\":{\"type\":\"string\"}},\"description\":\"@deprecated Use MetricNamespaceQuery instead\"},\"MetricNamesQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\",\"subscription\",\"resourceGroup\",\"resourceName\",\"metricNamespace\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"MetricNamesQuery\"},\"subscription\":{\"type\":\"string\"},\"resourceGroup\":{\"type\":\"string\"},\"resourceName\":{\"type\":\"string\"},\"metricNamespace\":{\"type\":\"string\"}}},\"WorkspacesQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\",\"subscription\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"WorkspacesQuery\"},\"subscription\":{\"type\":\"string\"}}},\"UnknownQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"kind\"],\"properties\":{\"rawQuery\":{\"type\":\"string\"},\"kind\":{\"type\":\"string\",\"const\":\"UnknownQuery\"}}},\"QueryType\":{\"enum\":[\"Azure Monitor\",\"Azure Log Analytics\",\"Azure Resource Graph\",\"Azure Traces\",\"Azure Subscriptions\",\"Azure Resource Groups\",\"Azure Namespaces\",\"Azure Resource Names\",\"Azure Metric Names\",\"Azure Workspaces\",\"Azure Regions\",\"Grafana Template Variable Function\",\"traceql\",\"Azure Custom Namespaces\",\"Azure Custom Metric Names\"],\"type\":\"string\",\"description\":\"Defines the supported queryTypes. GrafanaTemplateVariableFn is deprecated\"},\"GrafanaTemplateVariableQueryType\":{\"enum\":[\"AppInsightsMetricNameQuery\",\"AppInsightsGroupByQuery\",\"SubscriptionsQuery\",\"ResourceGroupsQuery\",\"ResourceNamesQuery\",\"MetricNamespaceQuery\",\"MetricNamesQuery\",\"WorkspacesQuery\",\"UnknownQuery\"],\"type\":\"string\"},\"BaseGrafanaTemplateVariableQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"rawQuery\":{\"type\":\"string\"}}},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
36
|
+
"googlecloudmonitoring": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/CloudMonitoringQuery\",\"definitions\":{\"CloudMonitoringQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"aliasBy\":{\"type\":\"string\",\"description\":\"Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.\"},\"timeSeriesList\":{\"$ref\":\"#/definitions/TimeSeriesList\",\"description\":\"GCM query type.\\nqueryType: #QueryType\\nTime Series List sub-query properties.\"},\"timeSeriesQuery\":{\"$ref\":\"#/definitions/TimeSeriesQuery\",\"description\":\"Time Series sub-query properties.\"},\"sloQuery\":{\"$ref\":\"#/definitions/SLOQuery\",\"description\":\"SLO sub-query properties.\"},\"promQLQuery\":{\"$ref\":\"#/definitions/PromQLQuery\",\"description\":\"PromQL sub-query properties.\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"},\"intervalMs\":{\"type\":\"number\",\"description\":\"Time interval in milliseconds.\"}}},\"TimeSeriesList\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"projectName\",\"crossSeriesReducer\"],\"properties\":{\"projectName\":{\"type\":\"string\",\"description\":\"GCP project to execute the query against.\"},\"crossSeriesReducer\":{\"type\":\"string\",\"description\":\"Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.\"},\"alignmentPeriod\":{\"type\":\"string\",\"description\":\"Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.\"},\"perSeriesAligner\":{\"type\":\"string\",\"description\":\"Alignment function to be used. Defaults to ALIGN_MEAN.\"},\"groupBys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array of labels to group data by.\"},\"filters\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array of filters to query data by. Labels that can be filtered on are defined by the metric.\"},\"view\":{\"type\":\"string\",\"description\":\"Data view, defaults to FULL.\"},\"title\":{\"type\":\"string\",\"description\":\"Annotation title.\"},\"text\":{\"type\":\"string\",\"description\":\"Annotation text.\"},\"secondaryCrossSeriesReducer\":{\"type\":\"string\",\"description\":\"Only present if a preprocessor is selected. Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.\"},\"secondaryAlignmentPeriod\":{\"type\":\"string\",\"description\":\"Only present if a preprocessor is selected. Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.\"},\"secondaryPerSeriesAligner\":{\"type\":\"string\",\"description\":\"Only present if a preprocessor is selected. Alignment function to be used. Defaults to ALIGN_MEAN.\"},\"secondaryGroupBys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Only present if a preprocessor is selected. Array of labels to group data by.\"},\"preprocessor\":{\"$ref\":\"#/definitions/PreprocessorType\",\"description\":\"Preprocessor is not part of the API, but is used to store the preprocessor and not affect the UI for the rest of parameters\"}},\"description\":\"Time Series List sub-query properties.\"},\"PreprocessorType\":{\"enum\":[\"none\",\"rate\",\"delta\"],\"type\":\"string\",\"description\":\"Types of pre-processor available. Defined by the metric.\"},\"TimeSeriesQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"projectName\",\"query\"],\"properties\":{\"projectName\":{\"type\":\"string\",\"description\":\"GCP project to execute the query against.\"},\"query\":{\"type\":\"string\",\"description\":\"MQL query to be executed.\"},\"graphPeriod\":{\"type\":\"string\",\"description\":\"To disable the graphPeriod, it should explictly be set to 'disabled'.\",\"default\":\"disabled\"}},\"description\":\"Time Series sub-query properties.\"},\"SLOQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"projectName\",\"selectorName\",\"serviceId\",\"serviceName\",\"sloId\",\"sloName\"],\"properties\":{\"projectName\":{\"type\":\"string\",\"description\":\"GCP project to execute the query against.\"},\"perSeriesAligner\":{\"type\":\"string\",\"description\":\"Alignment function to be used. Defaults to ALIGN_MEAN.\"},\"alignmentPeriod\":{\"type\":\"string\",\"description\":\"Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.\"},\"selectorName\":{\"type\":\"string\",\"description\":\"SLO selector.\"},\"serviceId\":{\"type\":\"string\",\"description\":\"ID for the service the SLO is in.\"},\"serviceName\":{\"type\":\"string\",\"description\":\"Name for the service the SLO is in.\"},\"sloId\":{\"type\":\"string\",\"description\":\"ID for the SLO.\"},\"sloName\":{\"type\":\"string\",\"description\":\"Name of the SLO.\"},\"goal\":{\"type\":\"number\",\"description\":\"SLO goal value.\"},\"lookbackPeriod\":{\"type\":\"string\",\"description\":\"Specific lookback period for the SLO.\"}},\"description\":\"SLO sub-query properties.\"},\"PromQLQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"projectName\",\"expr\",\"step\"],\"properties\":{\"projectName\":{\"type\":\"string\",\"description\":\"GCP project to execute the query against.\"},\"expr\":{\"type\":\"string\",\"description\":\"PromQL expression/query to be executed.\"},\"step\":{\"type\":\"string\",\"description\":\"PromQL min step\"}},\"description\":\"PromQL sub-query properties.\"},\"QueryType\":{\"enum\":[\"timeSeriesList\",\"timeSeriesQuery\",\"slo\",\"annotation\",\"promQL\"],\"type\":\"string\",\"description\":\"Defines the supported queryTypes.\"},\"MetricQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"projectName\",\"editorMode\",\"metricType\",\"crossSeriesReducer\",\"query\"],\"properties\":{\"projectName\":{\"type\":\"string\",\"description\":\"GCP project to execute the query against.\"},\"perSeriesAligner\":{\"type\":\"string\",\"description\":\"Alignment function to be used. Defaults to ALIGN_MEAN.\"},\"alignmentPeriod\":{\"type\":\"string\",\"description\":\"Alignment period to use when regularizing data. Defaults to cloud-monitoring-auto.\"},\"aliasBy\":{\"type\":\"string\",\"description\":\"Aliases can be set to modify the legend labels. e.g. {{metric.label.xxx}}. See docs for more detail.\"},\"editorMode\":{\"type\":\"string\"},\"metricType\":{\"type\":\"string\"},\"crossSeriesReducer\":{\"type\":\"string\",\"description\":\"Reducer applied across a set of time-series values. Defaults to REDUCE_NONE.\"},\"groupBys\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array of labels to group data by.\"},\"filters\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array of filters to query data by. Labels that can be filtered on are defined by the metric.\"},\"metricKind\":{\"$ref\":\"#/definitions/MetricKind\"},\"valueType\":{\"type\":\"string\"},\"view\":{\"type\":\"string\"},\"query\":{\"type\":\"string\",\"description\":\"MQL query to be executed.\"},\"preprocessor\":{\"$ref\":\"#/definitions/PreprocessorType\",\"description\":\"Preprocessor is not part of the API, but is used to store the preprocessor and not affect the UI for the rest of parameters\"},\"graphPeriod\":{\"type\":\"string\",\"description\":\"To disable the graphPeriod, it should explictly be set to 'disabled'.\",\"default\":\"disabled\"}},\"description\":\"@deprecated This type is for migration purposes only. Replaced by TimeSeriesList Metric sub-query properties.\"},\"MetricKind\":{\"enum\":[\"METRIC_KIND_UNSPECIFIED\",\"GAUGE\",\"DELTA\",\"CUMULATIVE\"],\"type\":\"string\"},\"ValueTypes\":{\"enum\":[\"VALUE_TYPE_UNSPECIFIED\",\"BOOL\",\"INT64\",\"DOUBLE\",\"STRING\",\"DISTRIBUTION\",\"MONEY\"],\"type\":\"string\"},\"AlignmentTypes\":{\"enum\":[\"ALIGN_DELTA\",\"ALIGN_RATE\",\"ALIGN_INTERPOLATE\",\"ALIGN_NEXT_OLDER\",\"ALIGN_MIN\",\"ALIGN_MAX\",\"ALIGN_MEAN\",\"ALIGN_COUNT\",\"ALIGN_SUM\",\"ALIGN_STDDEV\",\"ALIGN_COUNT_TRUE\",\"ALIGN_COUNT_FALSE\",\"ALIGN_FRACTION_TRUE\",\"ALIGN_PERCENTILE_99\",\"ALIGN_PERCENTILE_95\",\"ALIGN_PERCENTILE_50\",\"ALIGN_PERCENTILE_05\",\"ALIGN_PERCENT_CHANGE\",\"ALIGN_NONE\"],\"type\":\"string\"},\"LegacyCloudMonitoringAnnotationQuery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"projectName\",\"metricType\",\"refId\",\"filters\",\"metricKind\",\"valueType\",\"title\",\"text\"],\"properties\":{\"projectName\":{\"type\":\"string\",\"description\":\"GCP project to execute the query against.\"},\"metricType\":{\"type\":\"string\"},\"refId\":{\"type\":\"string\",\"description\":\"Query refId.\"},\"filters\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Array of filters to query data by. Labels that can be filtered on are defined by the metric.\"},\"metricKind\":{\"$ref\":\"#/definitions/MetricKind\"},\"valueType\":{\"type\":\"string\"},\"title\":{\"type\":\"string\",\"description\":\"Annotation title.\"},\"text\":{\"type\":\"string\",\"description\":\"Annotation text.\"}},\"description\":\"@deprecated Use TimeSeriesList instead. Legacy annotation query properties for migration purposes.\"},\"Filter\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"key\",\"operator\",\"value\"],\"properties\":{\"key\":{\"type\":\"string\",\"description\":\"Filter key.\"},\"operator\":{\"type\":\"string\",\"description\":\"Filter operator.\"},\"value\":{\"type\":\"string\",\"description\":\"Filter value.\"},\"condition\":{\"type\":\"string\",\"description\":\"Filter condition.\"}},\"description\":\"Query filter representation.\"},\"MetricFindQueryTypes\":{\"enum\":[\"projects\",\"services\",\"defaultProject\",\"metricTypes\",\"labelKeys\",\"labelValues\",\"resourceTypes\",\"aggregations\",\"aligners\",\"alignmentPeriods\",\"selectors\",\"sloServices\",\"slo\"],\"type\":\"string\"},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
37
|
+
"bigquery": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/Dataquery\",\"definitions\":{\"Dataquery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"format\",\"rawSql\"],\"properties\":{\"dataset\":{\"type\":\"string\"},\"table\":{\"type\":\"string\"},\"project\":{\"type\":\"string\"},\"format\":{\"$ref\":\"#/definitions/QueryFormat\"},\"rawQuery\":{\"type\":\"boolean\"},\"rawSql\":{\"type\":\"string\"},\"location\":{\"type\":\"string\"},\"partitioned\":{\"type\":\"boolean\"},\"partitionedField\":{\"type\":\"string\"},\"convertToUTC\":{\"type\":\"boolean\"},\"sharded\":{\"type\":\"boolean\"},\"queryPriority\":{\"$ref\":\"#/definitions/QueryPriority\"},\"timeShift\":{\"type\":\"string\"},\"editorMode\":{\"$ref\":\"#/definitions/EditorMode\"},\"sql\":{\"$ref\":\"#/definitions/SQLExpression\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"}},\"description\":\"Manually converted from https://github.com/grafana/google-bigquery-datasource/blob/18680e42ba557791d109c7c540c2c3f2647592f0/src/types.ts#L75\"},\"QueryFormat\":{\"enum\":[0,1],\"type\":\"integer\"},\"QueryPriority\":{\"enum\":[\"INTERACTIVE\",\"BATCH\"],\"type\":\"string\"},\"EditorMode\":{\"enum\":[\"code\",\"builder\"],\"type\":\"string\"},\"SQLExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"columns\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/QueryEditorFunctionExpression\"}},\"from\":{\"type\":\"string\"},\"whereString\":{\"type\":\"string\",\"description\":\"whereJsonTree?: _\"},\"groupBy\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/QueryEditorGroupByExpression\"}},\"orderBy\":{\"$ref\":\"#/definitions/QueryEditorPropertyExpression\"},\"orderByDirection\":{\"$ref\":\"#/definitions/OrderByDirection\"},\"limit\":{\"type\":\"integer\"},\"offset\":{\"type\":\"integer\"}}},\"QueryEditorFunctionExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"function\"},\"name\":{\"type\":\"string\"},\"parameters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/definitions/QueryEditorFunctionParameterExpression\"}}}},\"QueryEditorExpressionType\":{\"enum\":[\"property\",\"operator\",\"or\",\"and\",\"groupBy\",\"function\",\"functionParameter\"],\"type\":\"string\"},\"QueryEditorFunctionParameterExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"functionParameter\"},\"name\":{\"type\":\"string\"}}},\"QueryEditorGroupByExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"property\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"groupBy\"},\"property\":{\"$ref\":\"#/definitions/QueryEditorProperty\"}}},\"QueryEditorProperty\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorPropertyType\"}],\"default\":\"string\"},\"name\":{\"type\":\"string\"}}},\"QueryEditorPropertyType\":{\"enum\":[\"string\"],\"type\":\"string\"},\"QueryEditorPropertyExpression\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\",\"property\"],\"properties\":{\"type\":{\"allOf\":[{\"$ref\":\"#/definitions/QueryEditorExpressionType\"}],\"default\":\"property\"},\"property\":{\"$ref\":\"#/definitions/QueryEditorProperty\"}}},\"OrderByDirection\":{\"enum\":[\"ASC\",\"DESC\"],\"type\":\"string\"},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
38
|
+
"grafanapyroscope": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/dataquery\",\"definitions\":{\"PyroscopeQueryType\":{\"enum\":[\"metrics\",\"profile\",\"both\"],\"type\":\"string\"},\"dataquery\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"labelSelector\",\"profileTypeId\",\"groupBy\"],\"properties\":{\"labelSelector\":{\"type\":\"string\",\"description\":\"Specifies the query label selectors.\",\"default\":\"{}\"},\"spanSelector\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Specifies the query span selectors.\"},\"profileTypeId\":{\"type\":\"string\",\"description\":\"Specifies the type of profile to query.\"},\"groupBy\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Allows to group the results.\"},\"limit\":{\"type\":\"integer\",\"description\":\"Sets the maximum number of time series.\"},\"maxNodes\":{\"type\":\"integer\",\"description\":\"Sets the maximum number of nodes in the flamegraph.\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"A unique identifier for the query within the list of targets.\\nIn server side expressions, the refId is used as a variable name to identify results.\\nBy default, the UI will assign A->Z; however setting meaningful names may be useful.\"},\"hide\":{\"type\":\"boolean\",\"description\":\"If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel.\"},\"queryType\":{\"type\":\"string\",\"description\":\"Specify the query flavor\\nTODO make this required and give it a default\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"For mixed data sources the selected datasource is on the query level.\\nFor non mixed scenarios this is undefined.\\nTODO find a better way to do this ^ that's friendly to schema\\nTODO this shouldn't be unknown but DataSourceRef | null\"}}},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
39
|
+
"expr": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"$ref\":\"#/definitions/expr\",\"definitions\":{\"expr\":{\"oneOf\":[{\"$ref\":\"#/definitions/TypeMath\"},{\"$ref\":\"#/definitions/TypeReduce\"},{\"$ref\":\"#/definitions/TypeResample\"},{\"$ref\":\"#/definitions/TypeClassicConditions\"},{\"$ref\":\"#/definitions/TypeThreshold\"},{\"$ref\":\"#/definitions/TypeSql\"}]},\"TypeMath\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"expression\",\"type\"],\"properties\":{\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"The datasource\"},\"expression\":{\"type\":\"string\",\"minLength\":1,\"description\":\"General math expression\"},\"hide\":{\"type\":\"boolean\",\"description\":\"true if query is disabled (ie should not be returned to the dashboard)\\nNOTE: this does not always imply that the query should not be executed since\\nthe results from a hidden query may be used as the input to other queries (SSE etc)\"},\"intervalMs\":{\"type\":\"number\",\"description\":\"Interval is the suggested duration between time points in a time series query.\\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\\nfrom the interval required to fill a pixels in the visualization\"},\"maxDataPoints\":{\"type\":\"integer\",\"description\":\"MaxDataPoints is the maximum number of data points that should be returned from a time series query.\\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\\nfrom the number of pixels visible in a visualization\"},\"queryType\":{\"type\":\"string\",\"description\":\"QueryType is an optional identifier for the type of query.\\nIt can be used to distinguish different types of queries.\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"RefID is the unique identifier of the query, set by the frontend call.\"},\"resultAssertions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"typeVersion\"],\"properties\":{\"maxFrames\":{\"type\":\"integer\",\"description\":\"Maximum frame count\"},\"type\":{\"enum\":[\"\",\"timeseries-wide\",\"timeseries-long\",\"timeseries-many\",\"timeseries-multi\",\"directory-listing\",\"table\",\"numeric-wide\",\"numeric-multi\",\"numeric-long\",\"log-lines\"],\"type\":\"string\",\"description\":\"Type asserts that the frame matches a known type structure.\\nPossible enum values:\\n - `\\\"\\\"` \\n - `\\\"timeseries-wide\\\"` \\n - `\\\"timeseries-long\\\"` \\n - `\\\"timeseries-many\\\"` \\n - `\\\"timeseries-multi\\\"` \\n - `\\\"directory-listing\\\"` \\n - `\\\"table\\\"` \\n - `\\\"numeric-wide\\\"` \\n - `\\\"numeric-multi\\\"` \\n - `\\\"numeric-long\\\"` \\n - `\\\"log-lines\\\"` \"},\"typeVersion\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\\ncontract documentation https://grafana.github.io/dataplane/contract/.\"}},\"description\":\"Optionally define expected query result behavior\"},\"timeRange\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\"],\"properties\":{\"from\":{\"type\":\"string\",\"description\":\"From is the start time of the query.\",\"default\":\"now-6h\"},\"to\":{\"type\":\"string\",\"description\":\"To is the end time of the query.\",\"default\":\"now\"}},\"description\":\"TimeRange represents the query range\\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly\"},\"type\":{\"type\":\"string\",\"const\":\"math\"}}},\"TypeReduce\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"expression\",\"reducer\",\"type\"],\"properties\":{\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"The datasource\"},\"expression\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Reference to single query result\"},\"hide\":{\"type\":\"boolean\",\"description\":\"true if query is disabled (ie should not be returned to the dashboard)\\nNOTE: this does not always imply that the query should not be executed since\\nthe results from a hidden query may be used as the input to other queries (SSE etc)\"},\"intervalMs\":{\"type\":\"number\",\"description\":\"Interval is the suggested duration between time points in a time series query.\\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\\nfrom the interval required to fill a pixels in the visualization\"},\"maxDataPoints\":{\"type\":\"integer\",\"description\":\"MaxDataPoints is the maximum number of data points that should be returned from a time series query.\\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\\nfrom the number of pixels visible in a visualization\"},\"queryType\":{\"type\":\"string\",\"description\":\"QueryType is an optional identifier for the type of query.\\nIt can be used to distinguish different types of queries.\"},\"reducer\":{\"enum\":[\"sum\",\"mean\",\"min\",\"max\",\"count\",\"last\",\"median\"],\"type\":\"string\",\"description\":\"The reducer\\nPossible enum values:\\n - `\\\"sum\\\"` \\n - `\\\"mean\\\"` \\n - `\\\"min\\\"` \\n - `\\\"max\\\"` \\n - `\\\"count\\\"` \\n - `\\\"last\\\"` \\n - `\\\"median\\\"` \"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"RefID is the unique identifier of the query, set by the frontend call.\"},\"resultAssertions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"typeVersion\"],\"properties\":{\"maxFrames\":{\"type\":\"integer\",\"description\":\"Maximum frame count\"},\"type\":{\"enum\":[\"\",\"timeseries-wide\",\"timeseries-long\",\"timeseries-many\",\"timeseries-multi\",\"directory-listing\",\"table\",\"numeric-wide\",\"numeric-multi\",\"numeric-long\",\"log-lines\"],\"type\":\"string\",\"description\":\"Type asserts that the frame matches a known type structure.\\nPossible enum values:\\n - `\\\"\\\"` \\n - `\\\"timeseries-wide\\\"` \\n - `\\\"timeseries-long\\\"` \\n - `\\\"timeseries-many\\\"` \\n - `\\\"timeseries-multi\\\"` \\n - `\\\"directory-listing\\\"` \\n - `\\\"table\\\"` \\n - `\\\"numeric-wide\\\"` \\n - `\\\"numeric-multi\\\"` \\n - `\\\"numeric-long\\\"` \\n - `\\\"log-lines\\\"` \"},\"typeVersion\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\\ncontract documentation https://grafana.github.io/dataplane/contract/.\"}},\"description\":\"Optionally define expected query result behavior\"},\"settings\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"mode\"],\"properties\":{\"mode\":{\"enum\":[\"dropNN\",\"replaceNN\"],\"type\":\"string\",\"description\":\"Non-number reduce behavior\\nPossible enum values:\\n - `\\\"dropNN\\\"` Drop non-numbers\\n - `\\\"replaceNN\\\"` Replace non-numbers\"},\"replaceWithValue\":{\"type\":\"number\",\"description\":\"Only valid when mode is replace\"}},\"description\":\"Reducer Options\"},\"timeRange\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\"],\"properties\":{\"from\":{\"type\":\"string\",\"description\":\"From is the start time of the query.\",\"default\":\"now-6h\"},\"to\":{\"type\":\"string\",\"description\":\"To is the end time of the query.\",\"default\":\"now\"}},\"description\":\"TimeRange represents the query range\\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly\"},\"type\":{\"type\":\"string\",\"const\":\"reduce\"}}},\"TypeResample\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"downsampler\",\"expression\",\"type\",\"upsampler\",\"window\"],\"properties\":{\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"The datasource\"},\"downsampler\":{\"enum\":[\"sum\",\"mean\",\"min\",\"max\",\"count\",\"last\",\"median\"],\"type\":\"string\",\"description\":\"The downsample function\\nPossible enum values:\\n - `\\\"sum\\\"` \\n - `\\\"mean\\\"` \\n - `\\\"min\\\"` \\n - `\\\"max\\\"` \\n - `\\\"count\\\"` \\n - `\\\"last\\\"` \\n - `\\\"median\\\"` \"},\"expression\":{\"type\":\"string\",\"minLength\":1,\"description\":\"The math expression\"},\"hide\":{\"type\":\"boolean\",\"description\":\"true if query is disabled (ie should not be returned to the dashboard)\\nNOTE: this does not always imply that the query should not be executed since\\nthe results from a hidden query may be used as the input to other queries (SSE etc)\"},\"intervalMs\":{\"type\":\"number\",\"description\":\"Interval is the suggested duration between time points in a time series query.\\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\\nfrom the interval required to fill a pixels in the visualization\"},\"maxDataPoints\":{\"type\":\"integer\",\"description\":\"MaxDataPoints is the maximum number of data points that should be returned from a time series query.\\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\\nfrom the number of pixels visible in a visualization\"},\"queryType\":{\"type\":\"string\",\"description\":\"QueryType is an optional identifier for the type of query.\\nIt can be used to distinguish different types of queries.\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"RefID is the unique identifier of the query, set by the frontend call.\"},\"resultAssertions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"typeVersion\"],\"properties\":{\"maxFrames\":{\"type\":\"integer\",\"description\":\"Maximum frame count\"},\"type\":{\"enum\":[\"\",\"timeseries-wide\",\"timeseries-long\",\"timeseries-many\",\"timeseries-multi\",\"directory-listing\",\"table\",\"numeric-wide\",\"numeric-multi\",\"numeric-long\",\"log-lines\"],\"type\":\"string\",\"description\":\"Type asserts that the frame matches a known type structure.\\nPossible enum values:\\n - `\\\"\\\"` \\n - `\\\"timeseries-wide\\\"` \\n - `\\\"timeseries-long\\\"` \\n - `\\\"timeseries-many\\\"` \\n - `\\\"timeseries-multi\\\"` \\n - `\\\"directory-listing\\\"` \\n - `\\\"table\\\"` \\n - `\\\"numeric-wide\\\"` \\n - `\\\"numeric-multi\\\"` \\n - `\\\"numeric-long\\\"` \\n - `\\\"log-lines\\\"` \"},\"typeVersion\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\\ncontract documentation https://grafana.github.io/dataplane/contract/.\"}},\"description\":\"Optionally define expected query result behavior\"},\"timeRange\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\"],\"properties\":{\"from\":{\"type\":\"string\",\"description\":\"From is the start time of the query.\",\"default\":\"now-6h\"},\"to\":{\"type\":\"string\",\"description\":\"To is the end time of the query.\",\"default\":\"now\"}},\"description\":\"TimeRange represents the query range\\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly\"},\"type\":{\"type\":\"string\",\"const\":\"resample\"},\"upsampler\":{\"enum\":[\"pad\",\"backfilling\",\"fillna\"],\"type\":\"string\",\"description\":\"The upsample function\\nPossible enum values:\\n - `\\\"pad\\\"` Use the last seen value\\n - `\\\"backfilling\\\"` backfill\\n - `\\\"fillna\\\"` Do not fill values (nill)\"},\"window\":{\"type\":\"string\",\"minLength\":1,\"description\":\"The time duration\"}}},\"TypeClassicConditions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"conditions\",\"type\"],\"properties\":{\"conditions\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"evaluator\",\"operator\",\"query\",\"reducer\"],\"properties\":{\"evaluator\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"params\",\"type\"],\"properties\":{\"params\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}},\"type\":{\"type\":\"string\",\"description\":\"e.g. \\\"gt\\\"\"}}},\"operator\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"enum\":[\"and\",\"or\",\"logic-or\"],\"type\":\"string\"}}},\"query\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"params\"],\"properties\":{\"params\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}},\"reducer\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"type\"],\"properties\":{\"type\":{\"type\":\"string\"}}}}}},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"The datasource\"},\"hide\":{\"type\":\"boolean\",\"description\":\"true if query is disabled (ie should not be returned to the dashboard)\\nNOTE: this does not always imply that the query should not be executed since\\nthe results from a hidden query may be used as the input to other queries (SSE etc)\"},\"intervalMs\":{\"type\":\"number\",\"description\":\"Interval is the suggested duration between time points in a time series query.\\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\\nfrom the interval required to fill a pixels in the visualization\"},\"maxDataPoints\":{\"type\":\"integer\",\"description\":\"MaxDataPoints is the maximum number of data points that should be returned from a time series query.\\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\\nfrom the number of pixels visible in a visualization\"},\"queryType\":{\"type\":\"string\",\"description\":\"QueryType is an optional identifier for the type of query.\\nIt can be used to distinguish different types of queries.\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"RefID is the unique identifier of the query, set by the frontend call.\"},\"resultAssertions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"typeVersion\"],\"properties\":{\"maxFrames\":{\"type\":\"integer\",\"description\":\"Maximum frame count\"},\"type\":{\"enum\":[\"\",\"timeseries-wide\",\"timeseries-long\",\"timeseries-many\",\"timeseries-multi\",\"directory-listing\",\"table\",\"numeric-wide\",\"numeric-multi\",\"numeric-long\",\"log-lines\"],\"type\":\"string\",\"description\":\"Type asserts that the frame matches a known type structure.\\nPossible enum values:\\n - `\\\"\\\"` \\n - `\\\"timeseries-wide\\\"` \\n - `\\\"timeseries-long\\\"` \\n - `\\\"timeseries-many\\\"` \\n - `\\\"timeseries-multi\\\"` \\n - `\\\"directory-listing\\\"` \\n - `\\\"table\\\"` \\n - `\\\"numeric-wide\\\"` \\n - `\\\"numeric-multi\\\"` \\n - `\\\"numeric-long\\\"` \\n - `\\\"log-lines\\\"` \"},\"typeVersion\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\\ncontract documentation https://grafana.github.io/dataplane/contract/.\"}},\"description\":\"Optionally define expected query result behavior\"},\"timeRange\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\"],\"properties\":{\"from\":{\"type\":\"string\",\"description\":\"From is the start time of the query.\",\"default\":\"now-6h\"},\"to\":{\"type\":\"string\",\"description\":\"To is the end time of the query.\",\"default\":\"now\"}},\"description\":\"TimeRange represents the query range\\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly\"},\"type\":{\"type\":\"string\",\"const\":\"classic_conditions\"}}},\"TypeThreshold\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"conditions\",\"expression\",\"type\"],\"properties\":{\"conditions\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"evaluator\"],\"properties\":{\"evaluator\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"params\",\"type\"],\"properties\":{\"params\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}},\"type\":{\"enum\":[\"gt\",\"lt\",\"eq\",\"ne\",\"gte\",\"lte\",\"within_range\",\"outside_range\",\"within_range_included\",\"outside_range_included\"],\"type\":\"string\",\"description\":\"e.g. \\\"gt\\\"\"}}},\"loadedDimensions\":{\"type\":\"object\",\"additionalProperties\":{}},\"unloadEvaluator\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"params\",\"type\"],\"properties\":{\"params\":{\"type\":\"array\",\"items\":{\"type\":\"number\"}},\"type\":{\"enum\":[\"gt\",\"lt\",\"eq\",\"ne\",\"gte\",\"lte\",\"within_range\",\"outside_range\",\"within_range_included\",\"outside_range_included\"],\"type\":\"string\",\"description\":\"e.g. \\\"gt\\\"\"}}},\"loadedFingerprints\":{\"type\":\"array\",\"items\":{\"type\":\"string\"},\"description\":\"Fingerprints of the series already firing, written by Grafana while it evaluates a rule with a recovery threshold. Supersedes loadedDimensions. Never set it by hand.\"}}},\"description\":\"Threshold Conditions\"},\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"The datasource\"},\"expression\":{\"type\":\"string\",\"minLength\":1,\"description\":\"Reference to single query result\"},\"hide\":{\"type\":\"boolean\",\"description\":\"true if query is disabled (ie should not be returned to the dashboard)\\nNOTE: this does not always imply that the query should not be executed since\\nthe results from a hidden query may be used as the input to other queries (SSE etc)\"},\"intervalMs\":{\"type\":\"number\",\"description\":\"Interval is the suggested duration between time points in a time series query.\\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\\nfrom the interval required to fill a pixels in the visualization\"},\"maxDataPoints\":{\"type\":\"integer\",\"description\":\"MaxDataPoints is the maximum number of data points that should be returned from a time series query.\\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\\nfrom the number of pixels visible in a visualization\"},\"queryType\":{\"type\":\"string\",\"description\":\"QueryType is an optional identifier for the type of query.\\nIt can be used to distinguish different types of queries.\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"RefID is the unique identifier of the query, set by the frontend call.\"},\"resultAssertions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"typeVersion\"],\"properties\":{\"maxFrames\":{\"type\":\"integer\",\"description\":\"Maximum frame count\"},\"type\":{\"enum\":[\"\",\"timeseries-wide\",\"timeseries-long\",\"timeseries-many\",\"timeseries-multi\",\"directory-listing\",\"table\",\"numeric-wide\",\"numeric-multi\",\"numeric-long\",\"log-lines\"],\"type\":\"string\",\"description\":\"Type asserts that the frame matches a known type structure.\\nPossible enum values:\\n - `\\\"\\\"` \\n - `\\\"timeseries-wide\\\"` \\n - `\\\"timeseries-long\\\"` \\n - `\\\"timeseries-many\\\"` \\n - `\\\"timeseries-multi\\\"` \\n - `\\\"directory-listing\\\"` \\n - `\\\"table\\\"` \\n - `\\\"numeric-wide\\\"` \\n - `\\\"numeric-multi\\\"` \\n - `\\\"numeric-long\\\"` \\n - `\\\"log-lines\\\"` \"},\"typeVersion\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\\ncontract documentation https://grafana.github.io/dataplane/contract/.\"}},\"description\":\"Optionally define expected query result behavior\"},\"timeRange\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\"],\"properties\":{\"from\":{\"type\":\"string\",\"description\":\"From is the start time of the query.\",\"default\":\"now-6h\"},\"to\":{\"type\":\"string\",\"description\":\"To is the end time of the query.\",\"default\":\"now\"}},\"description\":\"TimeRange represents the query range\\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly\"},\"type\":{\"type\":\"string\",\"const\":\"threshold\"}}},\"TypeSql\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"expression\",\"format\",\"type\"],\"properties\":{\"datasource\":{\"$ref\":\"#/definitions/DataSourceRef\",\"description\":\"The datasource\"},\"expression\":{\"type\":\"string\",\"minLength\":1},\"format\":{\"type\":\"string\"},\"hide\":{\"type\":\"boolean\",\"description\":\"true if query is disabled (ie should not be returned to the dashboard)\\nNOTE: this does not always imply that the query should not be executed since\\nthe results from a hidden query may be used as the input to other queries (SSE etc)\"},\"intervalMs\":{\"type\":\"number\",\"description\":\"Interval is the suggested duration between time points in a time series query.\\nNOTE: the values for intervalMs is not saved in the query model. It is typically calculated\\nfrom the interval required to fill a pixels in the visualization\"},\"maxDataPoints\":{\"type\":\"integer\",\"description\":\"MaxDataPoints is the maximum number of data points that should be returned from a time series query.\\nNOTE: the values for maxDataPoints is not saved in the query model. It is typically calculated\\nfrom the number of pixels visible in a visualization\"},\"queryType\":{\"type\":\"string\",\"description\":\"QueryType is an optional identifier for the type of query.\\nIt can be used to distinguish different types of queries.\"},\"refId\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"null\"}],\"description\":\"RefID is the unique identifier of the query, set by the frontend call.\"},\"resultAssertions\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"typeVersion\"],\"properties\":{\"maxFrames\":{\"type\":\"integer\",\"description\":\"Maximum frame count\"},\"type\":{\"enum\":[\"\",\"timeseries-wide\",\"timeseries-long\",\"timeseries-many\",\"timeseries-multi\",\"directory-listing\",\"table\",\"numeric-wide\",\"numeric-multi\",\"numeric-long\",\"log-lines\"],\"type\":\"string\",\"description\":\"Type asserts that the frame matches a known type structure.\\nPossible enum values:\\n - `\\\"\\\"` \\n - `\\\"timeseries-wide\\\"` \\n - `\\\"timeseries-long\\\"` \\n - `\\\"timeseries-many\\\"` \\n - `\\\"timeseries-multi\\\"` \\n - `\\\"directory-listing\\\"` \\n - `\\\"table\\\"` \\n - `\\\"numeric-wide\\\"` \\n - `\\\"numeric-multi\\\"` \\n - `\\\"numeric-long\\\"` \\n - `\\\"log-lines\\\"` \"},\"typeVersion\":{\"type\":\"array\",\"items\":{\"type\":\"integer\"},\"description\":\"TypeVersion is the version of the Type property. Versions greater than 0.0 correspond to the dataplane\\ncontract documentation https://grafana.github.io/dataplane/contract/.\"}},\"description\":\"Optionally define expected query result behavior\"},\"timeRange\":{\"type\":\"object\",\"additionalProperties\":false,\"required\":[\"from\",\"to\"],\"properties\":{\"from\":{\"type\":\"string\",\"description\":\"From is the start time of the query.\",\"default\":\"now-6h\"},\"to\":{\"type\":\"string\",\"description\":\"To is the end time of the query.\",\"default\":\"now\"}},\"description\":\"TimeRange represents the query range\\nNOTE: unlike generic /ds/query, we can now send explicit time values in each query\\nNOTE: the values for timeRange are not saved in a dashboard, they are constructed on the fly\"},\"type\":{\"type\":\"string\",\"const\":\"sql\"}}},\"TypeMathOrTypeReduceOrTypeResampleOrTypeClassicConditionsOrTypeThresholdOrTypeSql\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"TypeMath\":{\"anyOf\":[{\"$ref\":\"#/definitions/TypeMath\"},{\"type\":\"null\"}]},\"TypeReduce\":{\"anyOf\":[{\"$ref\":\"#/definitions/TypeReduce\"},{\"type\":\"null\"}]},\"TypeResample\":{\"anyOf\":[{\"$ref\":\"#/definitions/TypeResample\"},{\"type\":\"null\"}]},\"TypeClassicConditions\":{\"anyOf\":[{\"$ref\":\"#/definitions/TypeClassicConditions\"},{\"type\":\"null\"}]},\"TypeThreshold\":{\"anyOf\":[{\"$ref\":\"#/definitions/TypeThreshold\"},{\"type\":\"null\"}]},\"TypeSql\":{\"anyOf\":[{\"$ref\":\"#/definitions/TypeSql\"},{\"type\":\"null\"}]}}},\"DataSourceRef\":{\"type\":\"object\",\"additionalProperties\":false,\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"The plugin type-id\"},\"uid\":{\"type\":\"string\",\"description\":\"Specific datasource instance\"}}}}}",
|
|
40
|
+
};
|