이미지 위젯

이미지 위젯을 사용하면 대시보드에 이미지를 내장할 수 있습니다. 이미지를 Datadog에 업로드하거나 URL로 호스팅할 수 있습니다. 지원되는 파일 형식은 URL, PNG, JPG, GIF입니다.

설정

Image setup
  1. 이미지를 업로드하거나 URL 이미지를 입력합니다.
  2. 사전 설정 템플릿을 선택하거나 표시 옵션을 맞춤 설정합니다.

API

이 위젯을 **대시보드 API**와 함께 사용할 수 있습니다. 위젯 JSON 스키마 정의에 관해서는 다음 테이블을 참고하세요.

Expand All

항목

유형

설명

has_background

boolean

Whether to display a background or not.

default: true

has_border

boolean

Whether to display a border or not.

default: true

horizontal_align

enum

Horizontal alignment. Allowed enum values: center,left,right

margin

enum

Size of the margins around the image. Note: small and large values are deprecated. Allowed enum values: sm,md,lg,small,large

sizing

enum

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 [required]

enum

Type of the image widget. Allowed enum values: image

default: image

url [required]

string

URL of the image.

url_dark_theme

string

URL of the image in dark mode.

vertical_align

enum

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"
}

참고 자료

추가 유용한 문서, 링크 및 기사:

PREVIEWING: dgreen15/github-error-fix