Transforms: Fix schema definition (#62619)

This commit is contained in:
Ryan McKinley
2023-01-31 10:03:08 -08:00
committed by GitHub
parent 91221bc436
commit 4186871390
9 changed files with 58 additions and 64 deletions

View File

@@ -283,13 +283,18 @@ lineage: seqs: [
} @cuetsy(kind="interface")
// TODO docs
// FIXME this is extremely underspecfied; wasn't obvious which typescript types corresponded to it
#Transformation: {
id: string
hide: bool | *false
// only apply to some frames
#DataTransformerConfig: {
@grafana(TSVeneer="type")
// Unique identifier of transformer
id: string
// Disabled transformations are skipped
disabled?: bool
// Optional frame matcher. When missing it will be applied to all results
filter?: #MatcherConfig
options: {...}
// Options to be passed to the transformer
// Valid options depend on the transformer id
options: _
} @cuetsy(kind="interface") @grafanamaturity(NeedsExpertReview)
// 0 for no shared crosshair or tooltip (default).
@@ -386,7 +391,7 @@ lineage: seqs: [
// TODO docs
timeRegions?: [...] @grafanamaturity(NeedsExpertReview)
transformations: [...#Transformation] @grafanamaturity(NeedsExpertReview)
transformations: [...#DataTransformerConfig] @grafanamaturity(NeedsExpertReview)
// TODO docs
// TODO tighter constraint