인시던트 타임스탬프 재정의 업데이트
https://api.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}https://api.us3.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}https://api.us5.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}https://api.datadoghq.eu/api/v2/incidents/{incident_id}/timestamp-overrides/{id}https://api.ap1.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}https://api.ap2.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}https://api.uk1.datadoghq.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}https://api.ddog-gov.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}https://api.us2.ddog-gov.com/api/v2/incidents/{incident_id}/timestamp-overrides/{id}개요
인시던트의 타임스탬프 재정의를 업데이트합니다.
OAuth apps require the incident_write authorization scope to access this endpoint.
인수
경로 파라미터
incident_id [required]The UUID of the incident.
id [required]The UUID of the timestamp override.
요청
Body Data (required)
타임스탬프 재정의 패치 페이로드입니다.
data [required]타임스탬프 재정의 패치를 위한 요청 페이로드입니다.
attributesAttributes for patching a timestamp override.
timestamp_value [required]The overridden timestamp value.
id [required]The timestamp override identifier.
type [required]Incident timestamp override resource type.
incidents_timestamp_overrides{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T10:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000000",
"type": "incidents_timestamp_overrides"
}
}응답
OK
Response with a single timestamp override.
data [required]Timestamp override data in a response.
attributes [required]Attributes of a timestamp override in a response.
created_at [required]Timestamp when the override was created.
deleted_atTimestamp when the override was deleted.
incident_id [required]The incident identifier.
modified_at [required]Timestamp when the override was last modified.
timestamp_type [required]The type of timestamp to override.
detected, resolved, declaredtimestamp_value [required]The overridden timestamp value.
id [required]The timestamp override identifier.
relationshipsRelationships for a timestamp override.
created_by_userRelationship to user.
data [required]Relationship to user object.
id [required]A unique identifier that represents the user.
type [required]Users resource type.
usersuserslast_modified_by_userRelationship to user.
data [required]Relationship to user object.
id [required]A unique identifier that represents the user.
type [required]Users resource type.
usersuserstype [required]Incident timestamp override resource type.
incidents_timestamp_overridesincludedIncluded related resources.
attributesAttributes of user object returned by the API.
emailEmail of the user.
handleHandle of the user.
iconURL of the user's icon.
nameName of the user.
uuidUUID of the user.
idID of the user.
typeUsers resource type.
usersusers{
"data": {
"attributes": {
"created_at": "2024-01-01T00:00:00.000Z",
"deleted_at": null,
"incident_id": "00000000-0000-0000-0000-000000000000",
"modified_at": "2024-01-01T00:00:00.000Z",
"timestamp_type": "detected",
"timestamp_value": "2024-01-01T10:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000000",
"relationships": {
"created_by_user": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
},
"last_modified_by_user": {
"data": {
"id": "00000000-0000-0000-2345-000000000000",
"type": "users"
}
}
},
"type": "incidents_timestamp_overrides"
},
"included": [
{
"attributes": {
"email": "string",
"handle": "string",
"icon": "string",
"name": "string",
"uuid": "string"
},
"id": "string",
"type": "users"
}
]
}Bad Request
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Unauthorized
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Forbidden
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Not Found
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}코드 예시
# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF# Path parameters
export incident_id="CHANGE_ME"
export id="CHANGE_ME"
# 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 PATCH "https://api.${DD_SITE}/api/v2/incidents/${incident_id}/timestamp-overrides/${id}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"attributes": {
"timestamp_value": "2024-01-01T11:00:00.000Z"
},
"id": "00000000-0000-0000-0000-000000000001",
"type": "incidents_timestamp_overrides"
}
}
EOF