Skip to main content
POST
Create a widget

Authorizations

X-BRONTO-API-KEY
string
header
required

Body

application/json
name
string
required

The widget name

Required string length: 1 - 255
Example:

"5xx errors by service"

description
string

The widget description

Required string length: 1 - 1024
Example:

"This widget shows the 5xx errors by service"

type
string

The widget type

Required string length: 1 - 64
Example:

"treemap"

aux
object

Additional widget configuration

metric_ids
string<uuid>[]

The metric IDs associated with the widget. A widget can include either metrics or widgets, but not both.

Maximum array length: 20
widget_ids
string<uuid>[]

The widget IDs associated with the widget. A widget can include either metrics or widgets, but not both.

Maximum array length: 50

Response

Widget created successfully

id
string<uuid>
name
string

The name of the Widget.

Example:

"5xx errors by service"

description
string

A description of the widget

Example:

"This widget shows the 5xx errors by service"

type
enum<string>

The type of the Widget.

Available options:
line,
bar,
area,
score,
pie,
treemap,
top-list
metric_ids
string<uuid>[]

the metric IDs associated with the widget

widget_ids
string<uuid>[]

the widgets IDs associated with the widget

layout
object

The layout of the widget

Example:
tags
object

A map of key value pairs associated with this log

Example:
template
object
metadata
object

Common metadata attached to all persisted resources.