Hierarchy

Constructors

Methods

  • Create a Dashboard Widget

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetObj: WidgetInfo

    Returns Promise<{
        widget: string;
    }>

  • Delete the Dashboard Widget

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetID: string

      Widget identification

    Returns Promise<string>

  • Delete data by it's id, bucket and variable must be associeted with the widget

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetID: string

      Widget identification

    • ids: string

    Returns Promise<string>

  • Edit the Dashboard Widget

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetID: string

      Widget identification

    • data: Partial<WidgetInfo>

    Returns Promise<string>

  • Update value of variable for the current widget

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetID: string

      Widget identification

    • data: EditDataModel | EditDataModel[]
    • bypassBucket: boolean = false

    Returns Promise<object>

  • Get all data or resource list for the current widget

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetID: string

      Widget identification

    • Optional params: GetDataModel

    Returns Promise<object>

  • Run analysis without inserting data to bucket

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetID: string

      Widget identification

    • data: [object | Data]

    Returns Promise<object>

  • Send value of variable for the current widget

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetID: string

      Widget identification

    • data: PostDataModel | PostDataModel[]
    • bypassBucket: boolean = false

    Returns Promise<object>

  • Generate a new token for the embed widgets It can regenerate the token if call it multi-times

    Parameters

    • dashboardID: string

      Dashboard identification

    • widgetID: string

      Widget identification

    Returns Promise<{
        widget_token: string;
    }>