@@ -11287,6 +11287,12 @@ components:
1128711287 type: string
1128811288 status:
1128911289 $ref: "#/components/schemas/NotebookStatus"
11290+ template_variables:
11291+ description: List of template variables for this notebook.
11292+ items:
11293+ $ref: "#/components/schemas/NotebookTemplateVariable"
11294+ nullable: true
11295+ type: array
1129011296 time:
1129111297 $ref: "#/components/schemas/NotebookGlobalTime"
1129211298 required:
@@ -11506,6 +11512,12 @@ components:
1150611512 type: string
1150711513 status:
1150811514 $ref: "#/components/schemas/NotebookStatus"
11515+ template_variables:
11516+ description: List of template variables for this notebook.
11517+ items:
11518+ $ref: "#/components/schemas/NotebookTemplateVariable"
11519+ nullable: true
11520+ type: array
1150911521 time:
1151011522 $ref: "#/components/schemas/NotebookGlobalTime"
1151111523 required:
@@ -11548,6 +11560,128 @@ components:
1154811560 type: string
1154911561 x-enum-varnames:
1155011562 - PUBLISHED
11563+ NotebookTemplateVariable:
11564+ additionalProperties: false
11565+ description: Notebook template variable.
11566+ properties:
11567+ available_values:
11568+ description: The list of values that the template variable drop-down is limited to.
11569+ example: ["my-host", "host1", "host2"]
11570+ items:
11571+ description: Template variable value.
11572+ minLength: 1
11573+ type: string
11574+ nullable: true
11575+ type: array
11576+ uniqueItems: true
11577+ available_values_query:
11578+ $ref: "#/components/schemas/NotebookTemplateVariableAvailableValuesQuery"
11579+ data_source_mappings:
11580+ additionalProperties:
11581+ description: The value for the given data source.
11582+ type: string
11583+ description: Mapping of data source names to template variable values.
11584+ type: object
11585+ default:
11586+ deprecated: true
11587+ description: |-
11588+ (deprecated) The default value for the template variable on notebook load.
11589+ Cannot be used in conjunction with `defaults`.
11590+ example: my-host
11591+ nullable: true
11592+ type: string
11593+ defaults:
11594+ description: One or many default values for the template variable. Cannot be used in conjunction with `default`.
11595+ example: ["my-host-1", "my-host-2"]
11596+ items:
11597+ description: A default value for the template variable.
11598+ minLength: 1
11599+ type: string
11600+ type: array
11601+ uniqueItems: true
11602+ name:
11603+ description: The name of the variable.
11604+ example: host1
11605+ type: string
11606+ placement:
11607+ description: The placement of the template variable in the notebook.
11608+ example: global
11609+ type: string
11610+ prefix:
11611+ description: The tag prefix associated with the variable. Only tags with this prefix appear in the variable drop-down.
11612+ example: host
11613+ nullable: true
11614+ type: string
11615+ type:
11616+ description: The type of the template variable.
11617+ example: tag
11618+ type: string
11619+ required:
11620+ - name
11621+ type: object
11622+ NotebookTemplateVariableAvailableValuesQuery:
11623+ description: Query used to dynamically populate the list of available values for the template variable.
11624+ oneOf:
11625+ - $ref: "#/components/schemas/NotebookTemplateVariableAvailableValuesQueryLogRumSpans"
11626+ - $ref: "#/components/schemas/NotebookTemplateVariableAvailableValuesQueryMetrics"
11627+ NotebookTemplateVariableAvailableValuesQueryGroupBy:
11628+ additionalProperties: false
11629+ description: A group-by facet for an available values query.
11630+ properties:
11631+ facet:
11632+ description: The facet name to group by.
11633+ example: host
11634+ type: string
11635+ required:
11636+ - facet
11637+ type: object
11638+ NotebookTemplateVariableAvailableValuesQueryLogRumSpans:
11639+ additionalProperties: false
11640+ description: Available values query for logs, RUM, or spans data sources.
11641+ properties:
11642+ data_source:
11643+ description: The data source for the query. Must be one of `logs`, `rum`, or `spans`.
11644+ example: logs
11645+ type: string
11646+ group_by:
11647+ description: Group-by fields for the query.
11648+ items:
11649+ $ref: "#/components/schemas/NotebookTemplateVariableAvailableValuesQueryGroupBy"
11650+ type: array
11651+ search:
11652+ $ref: "#/components/schemas/NotebookTemplateVariableAvailableValuesQuerySearch"
11653+ required:
11654+ - data_source
11655+ - search
11656+ - group_by
11657+ type: object
11658+ NotebookTemplateVariableAvailableValuesQueryMetrics:
11659+ additionalProperties: false
11660+ description: Available values query for the metrics data source.
11661+ properties:
11662+ data_source:
11663+ description: The data source for the query. Must be `metrics`.
11664+ example: metrics
11665+ type: string
11666+ query:
11667+ description: The metrics query string.
11668+ example: "avg:system.cpu.user{*} by {host}"
11669+ type: string
11670+ required:
11671+ - data_source
11672+ - query
11673+ type: object
11674+ NotebookTemplateVariableAvailableValuesQuerySearch:
11675+ additionalProperties: false
11676+ description: Search parameters for an available values query.
11677+ properties:
11678+ query:
11679+ description: The search query string.
11680+ example: "service:web"
11681+ type: string
11682+ required:
11683+ - query
11684+ type: object
1155111685 NotebookTimeseriesCellAttributes:
1155211686 description: The attributes of a notebook `timeseries` cell.
1155311687 properties:
@@ -11613,6 +11747,12 @@ components:
1161311747 type: string
1161411748 status:
1161511749 $ref: "#/components/schemas/NotebookStatus"
11750+ template_variables:
11751+ description: List of template variables for this notebook.
11752+ items:
11753+ $ref: "#/components/schemas/NotebookTemplateVariable"
11754+ nullable: true
11755+ type: array
1161611756 time:
1161711757 $ref: "#/components/schemas/NotebookGlobalTime"
1161811758 required:
@@ -11689,6 +11829,12 @@ components:
1168911829 type: string
1169011830 status:
1169111831 $ref: "#/components/schemas/NotebookStatus"
11832+ template_variables:
11833+ description: List of template variables for this notebook.
11834+ items:
11835+ $ref: "#/components/schemas/NotebookTemplateVariable"
11836+ nullable: true
11837+ type: array
1169211838 time:
1169311839 $ref: "#/components/schemas/NotebookGlobalTime"
1169411840 required:
0 commit comments