Skip to main content
Adds a widget to the top of a dashboard. Its name must be unique on the dashboard.
Calls POST /v1/dashboard/{dashboardId}/widget

Arguments

string
required
The dashboard ID.

Options

array
required
What to aggregate: 1 to 10 measures.
array
Applied to every measure, on top of each measure’s own filters.
string
Bucket size. Defaults from the window’s length and steps coarser when the window would exceed 500 buckets. One of HOUR, DAY, WEEK, MONTH
string
PREVIOUS_PERIOD adds the preceding window of the same length to every series. One of NONE, PREVIOUS_PERIOD
array
Run every measure once per named filter set, e.g. one group per agent.
string
required
Unique on the dashboard: how the widget is matched on update.
string
string
Chart type. Defaults to LINE. One of LINE, NUMBER, RADAR, STACKED_BAR, TABLE
string
Grid width. Defaults to MEDIUM. One of SMALL, MEDIUM, LARGE, EXTRA_LARGE

Example

Every command also takes the global options and sets one of the exit codes.