이미지 위젯을 사용하면 대시보드에 이미지를 내장할 수 있습니다. 이미지를 Datadog에 업로드하거나 URL로 호스팅할 수 있습니다. 지원되는 파일 형식은 URL, PNG, JPG, GIF입니다.
설정
- 이미지를 업로드하거나 URL 이미지를 입력합니다.
- 사전 설정 템플릿을 선택하거나 표시 옵션을 맞춤 설정합니다.
API
이 위젯을 **대시보드 API**와 함께 사용할 수 있습니다. 위젯 JSON 스키마 정의에 관해서는 다음 테이블을 참고하세요.
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"
}
참고 자료