Widget Graphique des alertes

Les graphiques d’alertes sont des graphiques de séries temporelles affichant l’état actuel de la plupart des monitors définis sur votre système :

Graphique d'alerte

Ce widget fonctionne avec les monitors d’alerte basés sur une requête, tels que les monitors de métrique, d’anomalie, de singularité, de prévision, de métriques d’APM et d’intégration.

Configuration

Configuration

  1. Sélectionnez un monitor existant à représenter graphiquement.
  2. Sélectionnez un intervalle.
  3. Sélectionnez votre visualisation :
    • Série temporelle
    • Top list

API

Ce widget peut être utilisé avec l’API Dashboards. Le tableau ci-dessous définit le schéma JSON du widget :

Expand All

Champ

Type

Description

alert_id [required]

string

ID of the alert to use in the widget.

time

 <oneOf>

Time setting for the widget.

Option 1

object

Wrapper for live span

hide_incomplete_cost_data

boolean

Whether to hide incomplete cost data in the widget.

live_span

enum

The available timeframes depend on the widget you are using. Allowed enum values: 1m,5m,10m,15m,30m,1h,4h,1d,2d,1w

Show 7 more,1mo,3mo,6mo,week_to_date,month_to_date,1y,alert

Option 2

object

Used for arbitrary live span times, such as 17 minutes or 6 hours.

hide_incomplete_cost_data

boolean

Whether to hide incomplete cost data in the widget.

type [required]

enum

Type "live" denotes a live span in the new format. Allowed enum values: live

unit [required]

enum

Unit of the time span. Allowed enum values: minute,hour,day,week,month,year

value [required]

int64

Value of the time span.

Option 3

object

Used for fixed span times, such as 'March 1 to March 7'.

from [required]

int64

Start time in milliseconds since epoch.

hide_incomplete_cost_data

boolean

Whether to hide incomplete cost data in the widget.

to [required]

int64

End time in milliseconds since epoch.

type [required]

enum

Type "fixed" denotes a fixed span. Allowed enum values: fixed

title

string

The title of the widget.

title_align

enum

How to align the text on the widget. Allowed enum values: center,left,right

title_size

string

Size of the title.

type [required]

enum

Type of the alert graph widget. Allowed enum values: alert_graph

default: alert_graph

viz_type [required]

enum

Whether to display the Alert Graph as a timeseries or a top list. Allowed enum values: timeseries,toplist

{
  "alert_id": "",
  "time": {
    "hide_incomplete_cost_data": false,
    "live_span": "5m"
  },
  "title": "string",
  "title_align": "string",
  "title_size": "string",
  "type": "alert_graph",
  "viz_type": "timeseries"
}

Pour aller plus loin

Documentation, liens et articles supplémentaires utiles: