For AI agents: A markdown version of this page is available at https://dnd37xeb23o8n.cloudfront.net/stefon.simmons/docs-astro-web-10435/ko/api/latest/annotations/list-annotations.md. A documentation index is available at /llms.txt.
Language
Datadog site

주석 목록 표시

경고Note: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.
GEThttps://api.datadoghq.com/api/v2/annotationhttps://api.us3.datadoghq.com/api/v2/annotationhttps://api.us5.datadoghq.com/api/v2/annotationhttps://api.datadoghq.eu/api/v2/annotationhttps://api.ap1.datadoghq.com/api/v2/annotationhttps://api.ap2.datadoghq.com/api/v2/annotationhttps://api.uk1.datadoghq.com/api/v2/annotationhttps://api.ddog-gov.com/api/v2/annotationhttps://api.us2.ddog-gov.com/api/v2/annotation

개요

주어진 페이지, 기간 및 선택적 위젯 필터와 일치하는 주석의 플랫 목록을 반환합니다.

인수

쿼리 문자열

이름
유형
설명
page_id [required]
string

ID of the page to list annotations for, prefixed with the page type and joined by a colon (for example, dashboard:abc-def-xyz or notebook:1234567890).

start_time [required]
integer

Start of the time window in milliseconds since the Unix epoch.

end_time [required]
integer

End of the time window in milliseconds since the Unix epoch.

widget_id
string

Optional widget ID to restrict results to annotations on a specific widget.

응답

OK

Response containing a list of annotations.

항목
유형
설명
data [required]
[object]

List of annotation resources.

코드 예시

주석 목록 표시
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
# Required query arguments
export page_id="dashboard:abc-def-xyz"
export start_time="1704067200000"
export end_time="1704153600000"

# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/annotation?page_id=${page_id}&start_time=${start_time}&end_time=${end_time}" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"