Skip to content

V2TransformationSpec🔗

Dashboard v2 shape: no id, it is carried by the parent's group.

Definition🔗

class V2TransformationSpec:
    """
    Dashboard v2 shape: no `id`, it is carried by the parent's `group`.
    """

    # Disabled transformations are skipped
    disabled: typing.Optional[bool]
    # Optional frame matcher. When missing it will be applied to all results
    filter_val: typing.Optional[dashboardv2beta1.MatcherConfig]
    # Where to pull DataFrames from as input to transformation
    topic: typing.Optional[dashboardv2beta1.DataTopic]
    # Options to be passed to the transformer
    # Valid options depend on the transformer id
    options: object

Methods🔗

to_json🔗

Converts this object into a representation that can easily be encoded to JSON.

def to_json() -> dict[str, object]

from_json🔗

Builds this object from a JSON-decoded dict.

@classmethod
def from_json(data: dict[str, typing.Any]) -> typing.Self

See also🔗