Skip to content

V2PanelSpec🔗

Definition🔗

class V2PanelSpec:
    id_val: float
    title: str
    # Shown in a info icon tooltip next to panel title
    description: typing.Optional[str]
    # Shown in a sub header below the title.
    subtitle: typing.Optional[str]
    links: list[dashboardv2beta1.DataLink]
    data: dashboardv2beta1.V2QueryGroupKind
    viz_config: dashboardv2beta1.VizConfigKind
    transparent: typing.Optional[bool]

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🔗