Skip to content

Create a widget

POST
/v1/widget/

Create a new widget.

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

object
format
string
nullable <= 20 characters
custom_min_step
integer
nullable >= -2147483648 <= 2147483647
dashboard
required
string format: uuid
default_min_step
required
string
hideable
boolean
hidden
required
string
graph
  • 0 - Line Chart
  • 1 - Stacked Area Chart
  • 2 - Pie Chart
  • 3 - Gauge
  • 4 - Status History Chart
  • 5 - Metric Value
  • 6 - Status
  • 8 - Text
  • 9 - Image
  • 10 - Heatmap Status
  • 11 - Bar Chart
integer
>= -2147483648 <= 2147483647
Allowed values: 0 1 2 3 4 5 6 8 9 10 11
graph_subtype
  • 0 - Status Round
  • 1 - Status Smiley
  • 2 - Status Image
  • 100 - Heatmap with Value
  • 101 - Heatmap with Status
integer
nullable >= -2147483648 <= 2147483647
Allowed values: 0 1 2 100 101
grid_height
integer
>= -2147483648 <= 2147483647
grid_width
integer
>= -2147483648 <= 2147483647
grid_x
integer
>= -2147483648 <= 2147483647
grid_y
integer
>= -2147483648 <= 2147483647
id
required
string format: uuid
image
string format: uri
nullable
interval
  • 0 - 1h
  • 2 - 6h
  • 3 - 1d
  • 4 - 1w
  • 5 - 1m
  • 6 - 1y
integer
>= -2147483648 <= 2147483647
Allowed values: 0 2 3 4 5 6
max_value
number format: double
nullable
metrics
Array<object>

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

object
color
string
<= 6 characters
id
string format: uuid
nullable
metric
string format: uuid
nullable
metric_agent
required
string format: uuid
metric_description
required
string
metric_display_name
required
string
metric_item
required
string
metric_label
required
string
metric_labels
required
object
key
additional properties
string
metric_name
string
nullable <= 100 characters
metric_name_item
string
nullable <= 100 characters
metric_simple_mode_labels
string
nullable <= 1000 characters
metric_period
required
string
metric_service
required
string format: uuid
operation
string format: uuid
nullable
operation_argument1_value
string
<= 20 characters
order
integer
>= -2147483648 <= 2147483647
promql_query
string
legend_template
string
<= 100 characters
min_value
number format: double
nullable
min_step
required
string
order
integer
>= -2147483648 <= 2147483647
title
string
<= 50 characters
unit
  • 0 - No unit
  • 1 - %
  • 2 - byte
  • 3 - bit
  • 4 - io/s
  • 5 - /s
  • 6 - second
  • 7 - Custom
  • 8 - day
  • 9 - °C
  • 10 - byte/s
  • 11 - bit/s
  • 12 - Hz
  • 13 - W
integer
>= -2147483648 <= 2147483647
Allowed values: 0 1 2 3 4 5 6 7 8 9 10 11 12 13
widgetannotations
Array<object>

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

object
account
required
string format: uuid
agent
string format: uuid
nullable
description
string
end_time
required
string format: date-time
id
required
string format: uuid
outage
boolean
start_time
required
string format: date-time
title
required
string
<= 100 characters
widget
required
string format: uuid
metricannotations
required
string

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

object
format
string
nullable <= 20 characters
custom_min_step
integer
nullable >= -2147483648 <= 2147483647
dashboard
required
string format: uuid
default_min_step
required
string
hideable
boolean
hidden
required
string
graph
  • 0 - Line Chart
  • 1 - Stacked Area Chart
  • 2 - Pie Chart
  • 3 - Gauge
  • 4 - Status History Chart
  • 5 - Metric Value
  • 6 - Status
  • 8 - Text
  • 9 - Image
  • 10 - Heatmap Status
  • 11 - Bar Chart
integer
>= -2147483648 <= 2147483647
Allowed values: 0 1 2 3 4 5 6 8 9 10 11
graph_subtype
  • 0 - Status Round
  • 1 - Status Smiley
  • 2 - Status Image
  • 100 - Heatmap with Value
  • 101 - Heatmap with Status
integer
nullable >= -2147483648 <= 2147483647
Allowed values: 0 1 2 100 101
grid_height
integer
>= -2147483648 <= 2147483647
grid_width
integer
>= -2147483648 <= 2147483647
grid_x
integer
>= -2147483648 <= 2147483647
grid_y
integer
>= -2147483648 <= 2147483647
id
required
string format: uuid
image
string format: uri
nullable
interval
  • 0 - 1h
  • 2 - 6h
  • 3 - 1d
  • 4 - 1w
  • 5 - 1m
  • 6 - 1y
integer
>= -2147483648 <= 2147483647
Allowed values: 0 2 3 4 5 6
max_value
number format: double
nullable
metrics
Array<object>

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

object
color
string
<= 6 characters
id
string format: uuid
nullable
metric
string format: uuid
nullable
metric_agent
required
string format: uuid
metric_description
required
string
metric_display_name
required
string
metric_item
required
string
metric_label
required
string
metric_labels
required
object
key
additional properties
string
metric_name
string
nullable <= 100 characters
metric_name_item
string
nullable <= 100 characters
metric_simple_mode_labels
string
nullable <= 1000 characters
metric_period
required
string
metric_service
required
string format: uuid
operation
string format: uuid
nullable
operation_argument1_value
string
<= 20 characters
order
integer
>= -2147483648 <= 2147483647
promql_query
string
legend_template
string
<= 100 characters
min_value
number format: double
nullable
min_step
required
string
order
integer
>= -2147483648 <= 2147483647
title
string
<= 50 characters
unit
  • 0 - No unit
  • 1 - %
  • 2 - byte
  • 3 - bit
  • 4 - io/s
  • 5 - /s
  • 6 - second
  • 7 - Custom
  • 8 - day
  • 9 - °C
  • 10 - byte/s
  • 11 - bit/s
  • 12 - Hz
  • 13 - W
integer
>= -2147483648 <= 2147483647
Allowed values: 0 1 2 3 4 5 6 7 8 9 10 11 12 13
widgetannotations
Array<object>

A ModelSerializer that takes an additional fields argument that controls which fields should be displayed.

object
account
required
string format: uuid
agent
string format: uuid
nullable
description
string
end_time
required
string format: date-time
id
required
string format: uuid
outage
boolean
start_time
required
string format: date-time
title
required
string
<= 100 characters
widget
required
string format: uuid
metricannotations
required
string