Skip to content

Action🔗

Dashboard action

Definition🔗

class Action:
    """
    Dashboard action
    """

    type_val: dashboard.ActionType
    title: str
    fetch: typing.Optional[dashboard.FetchOptions]
    infinity: typing.Optional[dashboard.InfinityOptions]
    confirmation: typing.Optional[str]
    one_click: typing.Optional[bool]
    variables: typing.Optional[list[dashboard.ActionVariable]]
    style: typing.Optional[dashboard.DashboardActionStyle]

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🔗