Le widget Image vous permet d’intégrer une image dans votre dashboard. Une image peut être importée dans Datadog ou hébergée à un emplacement accessible par URL. Les formats de fichiers PNG, JPG et GIF sont pris en charge.
Configuration
- Importez votre image ou saisissez l’URL de votre image.
- Sélectionnez un modèle prédéfini ou personnalisez les options d’affichage.
API
Ce widget peut être utilisé avec l’API Dashboards. Le tableau ci-dessous définit le schéma JSON du widget :
Expand All
Whether to display a background or not.
default: true
Whether to display a border or not.
default: true
Horizontal alignment.
Allowed enum values: center,left,right
Size of the margins around the image.
Note: small and large values are deprecated.
Allowed enum values: sm,md,lg,small,large
How to size the image on the widget. The values are based on the image object-fit CSS properties.
Note: zoom, fit and center values are deprecated.
Allowed enum values: fill,contain,cover,none,scale-down,zoom,fit,center
Type of the image widget.
Allowed enum values: image
default: image
URL of the image in dark mode.
Vertical alignment.
Allowed enum values: center,top,bottom
{
"has_background": true,
"has_border": true,
"horizontal_align": "string",
"margin": "string",
"sizing": "string",
"type": "image",
"url": "https://example.com/image.png",
"url_dark_theme": "https://example.com/image-dark-mode.png",
"vertical_align": "string"
}
Pour aller plus loin
Documentation, liens et articles supplémentaires utiles: