Error Tracking
Snooze an issue
Changed onSnooze an issue by issue_id: move it to IGNORED until a condition is met, then back to OPEN. The condition can be a number of occurrences, a number of distinct values of an attribute such as @usr.id, an elapsed time, or any or all of several conditions. Snoozing an issue that is already snoozed replaces its snooze. Updating the state of the issue with UpdateIssueState cancels the snooze. The response includes the watch that reopens the issue.
post/api/v2/error-tracking/issues/{issue_id}/snooze
Request
- Base URLhttps://api.datadoghq.com
- Auth
- API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
- or OAuth 2Authorization code/oauth2/v1/authorizeToken URL/oauth2/v1/tokenScopeserror_tracking_read, error_tracking_write
Path parameters
issue_idstring required
The identifier of the issue.
Request body
Example request
{
"data": {
"attributes": {
"condition": {
"duration": "168h0m0s",
"kind": "OCCURRENCES",
"operands": [
{
"duration": "168h",
"kind": "ELAPSED_TIME"
},
{
"kind": "OCCURRENCES",
"threshold": 100
}
],
"projection": [
"@usr.id"
],
"threshold": 100
}
},
"id": "c1726a66-1f64-11ee-b338-da7ad0900002",
"type": "error_tracking_issue"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"error_message": "object of type 'NoneType' has no len()",
"error_type": "builtins.TypeError",
"file_path": "/django-email/conduit/apps/core/utils.py",
"first_seen": 1671612804001,
"first_seen_version": "aaf65cd0",
"function_name": "filter_forbidden_tags",
"languages": [
"PYTHON",
"GO"
],
"last_seen": 1671620003100,
"last_seen_version": "b6199f80",
"platform": "BACKEND",
"regression": {
"regressed_at": "2024-01-03T08:00:00Z",
"regressed_at_version": "v2.5.2",
"resolved_at": "2024-01-01T10:00:00Z"
},
"service": "email-api-py",
"state": "RESOLVED"
},
"id": "c1726a66-1f64-11ee-b338-da7ad0900002",
"relationships": {
"assignee": {
"data": {
"id": "87cb11a0-278c-440a-99fe-701223c80296",
"type": "user"
}
},
"bits_investigation": {
"data": {
"id": "6c2b3c2e-6b8f-4c3a-9a7e-1d2f3a4b5c6d",
"type": "bits_investigation"
}
},
"case": {
"data": {
"id": "2841440d-e780-4fe2-96cd-6a8c1d194da5",
"type": "case"
}
},
"pull_requests": {
"data": [
{
"id": "b3c1d2e4-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
"type": "error_tracking_pull_request"
}
]
},
"samples": {
"data": [
{
"id": "AwAAAZPHnBVMDCSmFgAAABhBWlBIbkJWTUFBRDVnUkhKTmY0WmhRQUEAAAAkMDE5M2M3OWMtMTg1OC00ZTE1LWFhMmItOTQ1N2ZkOGVlMzQyAAAAAA",
"type": "error_tracking_issue_sample"
}
]
},
"team_owners": {
"data": [
{
"id": "221b0179-6447-4d03-91c3-3ca98bf60e8a",
"type": "team"
}
]
},
"watches": {
"data": [
{
"id": "e7a1c3b5-2d4f-4a6b-8c9d-0e1f2a3b4c5d",
"type": "error_tracking_issue_watch"
}
]
}
},
"type": "issue"
},
"included": [
{
"attributes": {
"archived_at": "2025-01-01T00:00:00Z",
"closed_at": "2025-01-01T00:00:00Z",
"created_at": "2025-01-01T00:00:00Z",
"creation_source": "ERROR_TRACKING",
"due_date": "2025-01-01",
"insights": [
{
"ref": "/error-tracking?issueId=2841440d-e780-4fe2-96cd-6a8c1d194da5",
"resource_id": "2841440d-e780-4fe2-96cd-6a8c1d194da5",
"type": "ERROR_TRACKING"
}
],
"jira_issue": {
"result": {
"account_id": "abcd1234-5678-90ab-cdef-1234567890ab",
"issue_id": "1904866",
"issue_key": "ET-123",
"issue_url": "https://your-jira-instance.atlassian.net/browse/ET-123",
"project_id": "10001",
"project_key": "ET"
},
"status": "COMPLETED"
},
"key": "ET-123",
"linear_issue": {
"result": {
"account_id": "abcd1234-5678-90ab-cdef-1234567890ab",
"issue_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"issue_key": "ENG-123",
"issue_url": "https://linear.app/your-workspace/issue/ENG-123",
"team_id": "f1e2d3c4-5678-90ab-cdef-1234567890ab"
},
"status": "COMPLETED"
},
"modified_at": "2025-01-01T00:00:00Z",
"priority": "NOT_DEFINED",
"status": "OPEN",
"status_group": "SG_OPEN",
"status_name": "Open",
"title": "Error: HTTP error",
"type": "ERROR_TRACKING_ISSUE"
},
"id": "2841440d-e780-4fe2-96cd-6a8c1d194da5",
"relationships": {
"assignee": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"created_by": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"modified_by": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "user"
}
},
"project": {
"data": {
"id": "e555e290-ed65-49bd-ae18-8acbfcf18db7",
"type": "project"
}
}
},
"type": "case"
}
]
}Changes
- info
endpoint added
- info