Chilkat Online Tools

SQL Server / Datadog API Collection / Get a downtime

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    DECLARE @queryParams int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @queryParams OUT

    EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'include', '<string>'

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'QuickRequestParams', @resp OUT, 'GET', 'https://api.app.ddog-gov.com/api/v2/downtime/:downtime_id', @queryParams
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @queryParams
        RETURN
      END

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @queryParams
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- {
    --   "data": {
    --     "attributes": {
    --       "canceled": "<dateTime>",
    --       "created": "<dateTime>",
    --       "display_timezone": "UTC",
    --       "message": "<string>",
    --       "modified": "<dateTime>",
    --       "monitor_identifier": {
    --         "monitor_id": "<long>"
    --       },
    --       "mute_first_recovery_notification": "<boolean>",
    --       "notify_end_states": [
    --         "alert",
    --         "alert"
    --       ],
    --       "notify_end_types": [
    --         "canceled",
    --         "expired"
    --       ],
    --       "schedule": {
    --         "recurrences": [
    --           {
    --             "duration": "<string>",
    --             "rrule": "<string>",
    --             "start": "<string>"
    --           }
    --         ],
    --         "current_downtime": {
    --           "end": "<dateTime>",
    --           "start": "<dateTime>"
    --         },
    --         "timezone": "UTC"
    --       },
    --       "scope": "<string>",
    --       "status": "scheduled"
    --     },
    --     "id": "<string>",
    --     "relationships": {
    --       "created_by": {
    --         "data": {
    --           "id": "<string>",
    --           "type": "users"
    --         }
    --       },
    --       "monitor": {
    --         "data": {
    --           "id": "<string>",
    --           "type": "monitors"
    --         }
    --       }
    --     },
    --     "type": "downtime"
    --   },
    --   "included": [
    --     {
    --       "attributes": {
    --         "created_at": "<dateTime>",
    --         "disabled": "<boolean>",
    --         "email": "<string>",
    --         "handle": "<string>",
    --         "icon": "<string>",
    --         "modified_at": "<dateTime>",
    --         "name": "<string>",
    --         "service_account": "<boolean>",
    --         "status": "<string>",
    --         "title": "<string>",
    --         "verified": "<boolean>"
    --       },
    --       "id": "<string>",
    --       "relationships": {
    --         "org": {
    --           "data": {
    --             "id": "<string>",
    --             "type": "orgs"
    --           }
    --         },
    --         "other_orgs": {
    --           "data": [
    --             {
    --               "id": "<string>",
    --               "type": "orgs"
    --             },
    --             {
    --               "id": "<string>",
    --               "type": "orgs"
    --             }
    --           ]
    --         },
    --         "other_users": {
    --           "data": [
    --             {
    --               "id": "<string>",
    --               "type": "users"
    --             },
    --             {
    --               "id": "<string>",
    --               "type": "users"
    --             }
    --           ]
    --         },
    --         "roles": {
    --           "data": [
    --             {
    --               "id": "<string>",
    --               "type": "roles"
    --             },
    --             {
    --               "id": "<string>",
    --               "type": "roles"
    --             }
    --           ]
    --         }
    --       },
    --       "type": "users"
    --     },
    --     {
    --       "attributes": {
    --         "created_at": "<dateTime>",
    --         "disabled": "<boolean>",
    --         "email": "<string>",
    --         "handle": "<string>",
    --         "icon": "<string>",
    --         "modified_at": "<dateTime>",
    --         "name": "<string>",
    --         "service_account": "<boolean>",
    --         "status": "<string>",
    --         "title": "<string>",
    --         "verified": "<boolean>"
    --       },
    --       "id": "<string>",
    --       "relationships": {
    --         "org": {
    --           "data": {
    --             "id": "<string>",
    --             "type": "orgs"
    --           }
    --         },
    --         "other_orgs": {
    --           "data": [
    --             {
    --               "id": "<string>",
    --               "type": "orgs"
    --             },
    --             {
    --               "id": "<string>",
    --               "type": "orgs"
    --             }
    --           ]
    --         },
    --         "other_users": {
    --           "data": [
    --             {
    --               "id": "<string>",
    --               "type": "users"
    --             },
    --             {
    --               "id": "<string>",
    --               "type": "users"
    --             }
    --           ]
    --         },
    --         "roles": {
    --           "data": [
    --             {
    --               "id": "<string>",
    --               "type": "roles"
    --             },
    --             {
    --               "id": "<string>",
    --               "type": "roles"
    --             }
    --           ]
    --         }
    --       },
    --       "type": "users"
    --     }
    --   ]
    -- }

    -- Sample code for parsing the JSON response...
    -- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    DECLARE @strVal nvarchar(4000)

    DECLARE @duration nvarchar(4000)

    DECLARE @rrule nvarchar(4000)

    DECLARE @start nvarchar(4000)

    DECLARE @Created_at nvarchar(4000)

    DECLARE @Disabled nvarchar(4000)

    DECLARE @v_Email nvarchar(4000)

    DECLARE @Handle nvarchar(4000)

    DECLARE @Icon nvarchar(4000)

    DECLARE @Modified_at nvarchar(4000)

    DECLARE @Name nvarchar(4000)

    DECLARE @Service_account nvarchar(4000)

    DECLARE @attributesStatus nvarchar(4000)

    DECLARE @Title nvarchar(4000)

    DECLARE @Verified nvarchar(4000)

    DECLARE @id nvarchar(4000)

    DECLARE @v_type nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @Canceled nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Canceled OUT, 'data.attributes.canceled'
    DECLARE @Created nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Created OUT, 'data.attributes.created'
    DECLARE @Display_timezone nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Display_timezone OUT, 'data.attributes.display_timezone'
    DECLARE @Message nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Message OUT, 'data.attributes.message'
    DECLARE @Modified nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Modified OUT, 'data.attributes.modified'
    DECLARE @Monitor_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Monitor_id OUT, 'data.attributes.monitor_identifier.monitor_id'
    DECLARE @Mute_first_recovery_notification nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Mute_first_recovery_notification OUT, 'data.attributes.mute_first_recovery_notification'
    DECLARE @v_End nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_End OUT, 'data.attributes.schedule.current_downtime.end'
    DECLARE @Start nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Start OUT, 'data.attributes.schedule.current_downtime.start'
    DECLARE @Timezone nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Timezone OUT, 'data.attributes.schedule.timezone'
    DECLARE @Scope nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Scope OUT, 'data.attributes.scope'
    DECLARE @Status nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Status OUT, 'data.attributes.status'
    DECLARE @Id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'data.id'
    DECLARE @DataId nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @DataId OUT, 'data.relationships.created_by.data.id'
    DECLARE @v_Type nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'data.relationships.created_by.data.type'
    EXEC sp_OAMethod @jResp, 'StringOf', @DataId OUT, 'data.relationships.monitor.data.id'
    DECLARE @DataType nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @DataType OUT, 'data.relationships.monitor.data.type'
    DECLARE @dataType nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @dataType OUT, 'data.type'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'data.attributes.notify_end_states'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'data.attributes.notify_end_states[i]'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'data.attributes.notify_end_types'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'data.attributes.notify_end_types[i]'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'data.attributes.schedule.recurrences'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @duration OUT, 'data.attributes.schedule.recurrences[i].duration'
        EXEC sp_OAMethod @jResp, 'StringOf', @rrule OUT, 'data.attributes.schedule.recurrences[i].rrule'
        EXEC sp_OAMethod @jResp, 'StringOf', @start OUT, 'data.attributes.schedule.recurrences[i].start'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'included'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @Created_at OUT, 'included[i].attributes.created_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @Disabled OUT, 'included[i].attributes.disabled'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_Email OUT, 'included[i].attributes.email'
        EXEC sp_OAMethod @jResp, 'StringOf', @Handle OUT, 'included[i].attributes.handle'
        EXEC sp_OAMethod @jResp, 'StringOf', @Icon OUT, 'included[i].attributes.icon'
        EXEC sp_OAMethod @jResp, 'StringOf', @Modified_at OUT, 'included[i].attributes.modified_at'
        EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'included[i].attributes.name'
        EXEC sp_OAMethod @jResp, 'StringOf', @Service_account OUT, 'included[i].attributes.service_account'
        EXEC sp_OAMethod @jResp, 'StringOf', @attributesStatus OUT, 'included[i].attributes.status'
        EXEC sp_OAMethod @jResp, 'StringOf', @Title OUT, 'included[i].attributes.title'
        EXEC sp_OAMethod @jResp, 'StringOf', @Verified OUT, 'included[i].attributes.verified'
        EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'included[i].id'
        EXEC sp_OAMethod @jResp, 'StringOf', @DataId OUT, 'included[i].relationships.org.data.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @DataType OUT, 'included[i].relationships.org.data.type'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'included[i].type'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'included[i].relationships.other_orgs.data'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'included[i].relationships.other_orgs.data[j].id'
            EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'included[i].relationships.other_orgs.data[j].type'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'included[i].relationships.other_users.data'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'included[i].relationships.other_users.data[j].id'
            EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'included[i].relationships.other_users.data[j].type'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'included[i].relationships.roles.data'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'included[i].relationships.roles.data[j].id'
            EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'included[i].relationships.roles.data[j].type'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @queryParams
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -G -d "include=%3Cstring%3E"
	-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v2/downtime/:downtime_id

Postman Collection Item JSON

{
  "name": "Get a downtime",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/downtime/:downtime_id?include=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "downtime",
        ":downtime_id"
      ],
      "query": [
        {
          "key": "include",
          "value": "<string>",
          "description": "Comma-separated list of resource paths for related resources to include in the response. Supported resource\npaths are `created_by` and `monitor`."
        }
      ],
      "variable": [
        {
          "key": "downtime_id",
          "value": "<string>"
        }
      ]
    },
    "description": "Get downtime detail by `downtime_id`."
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/downtime/:downtime_id?include=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "downtime",
            ":downtime_id"
          ],
          "query": [
            {
              "key": "include",
              "value": "<string>",
              "description": "Comma-separated list of resource paths for related resources to include in the response. Supported resource\npaths are `created_by` and `monitor`."
            }
          ],
          "variable": [
            {
              "key": "downtime_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"data\": {\n    \"attributes\": {\n      \"canceled\": \"<dateTime>\",\n      \"created\": \"<dateTime>\",\n      \"display_timezone\": \"UTC\",\n      \"message\": \"<string>\",\n      \"modified\": \"<dateTime>\",\n      \"monitor_identifier\": {\n        \"monitor_id\": \"<long>\"\n      },\n      \"mute_first_recovery_notification\": \"<boolean>\",\n      \"notify_end_states\": [\n        \"alert\",\n        \"alert\"\n      ],\n      \"notify_end_types\": [\n        \"canceled\",\n        \"expired\"\n      ],\n      \"schedule\": {\n        \"recurrences\": [\n          {\n            \"duration\": \"<string>\",\n            \"rrule\": \"<string>\",\n            \"start\": \"<string>\"\n          }\n        ],\n        \"current_downtime\": {\n          \"end\": \"<dateTime>\",\n          \"start\": \"<dateTime>\"\n        },\n        \"timezone\": \"UTC\"\n      },\n      \"scope\": \"<string>\",\n      \"status\": \"scheduled\"\n    },\n    \"id\": \"<string>\",\n    \"relationships\": {\n      \"created_by\": {\n        \"data\": {\n          \"id\": \"<string>\",\n          \"type\": \"users\"\n        }\n      },\n      \"monitor\": {\n        \"data\": {\n          \"id\": \"<string>\",\n          \"type\": \"monitors\"\n        }\n      }\n    },\n    \"type\": \"downtime\"\n  },\n  \"included\": [\n    {\n      \"attributes\": {\n        \"created_at\": \"<dateTime>\",\n        \"disabled\": \"<boolean>\",\n        \"email\": \"<string>\",\n        \"handle\": \"<string>\",\n        \"icon\": \"<string>\",\n        \"modified_at\": \"<dateTime>\",\n        \"name\": \"<string>\",\n        \"service_account\": \"<boolean>\",\n        \"status\": \"<string>\",\n        \"title\": \"<string>\",\n        \"verified\": \"<boolean>\"\n      },\n      \"id\": \"<string>\",\n      \"relationships\": {\n        \"org\": {\n          \"data\": {\n            \"id\": \"<string>\",\n            \"type\": \"orgs\"\n          }\n        },\n        \"other_orgs\": {\n          \"data\": [\n            {\n              \"id\": \"<string>\",\n              \"type\": \"orgs\"\n            },\n            {\n              \"id\": \"<string>\",\n              \"type\": \"orgs\"\n            }\n          ]\n        },\n        \"other_users\": {\n          \"data\": [\n            {\n              \"id\": \"<string>\",\n              \"type\": \"users\"\n            },\n            {\n              \"id\": \"<string>\",\n              \"type\": \"users\"\n            }\n          ]\n        },\n        \"roles\": {\n          \"data\": [\n            {\n              \"id\": \"<string>\",\n              \"type\": \"roles\"\n            },\n            {\n              \"id\": \"<string>\",\n              \"type\": \"roles\"\n            }\n          ]\n        }\n      },\n      \"type\": \"users\"\n    },\n    {\n      \"attributes\": {\n        \"created_at\": \"<dateTime>\",\n        \"disabled\": \"<boolean>\",\n        \"email\": \"<string>\",\n        \"handle\": \"<string>\",\n        \"icon\": \"<string>\",\n        \"modified_at\": \"<dateTime>\",\n        \"name\": \"<string>\",\n        \"service_account\": \"<boolean>\",\n        \"status\": \"<string>\",\n        \"title\": \"<string>\",\n        \"verified\": \"<boolean>\"\n      },\n      \"id\": \"<string>\",\n      \"relationships\": {\n        \"org\": {\n          \"data\": {\n            \"id\": \"<string>\",\n            \"type\": \"orgs\"\n          }\n        },\n        \"other_orgs\": {\n          \"data\": [\n            {\n              \"id\": \"<string>\",\n              \"type\": \"orgs\"\n            },\n            {\n              \"id\": \"<string>\",\n              \"type\": \"orgs\"\n            }\n          ]\n        },\n        \"other_users\": {\n          \"data\": [\n            {\n              \"id\": \"<string>\",\n              \"type\": \"users\"\n            },\n            {\n              \"id\": \"<string>\",\n              \"type\": \"users\"\n            }\n          ]\n        },\n        \"roles\": {\n          \"data\": [\n            {\n              \"id\": \"<string>\",\n              \"type\": \"roles\"\n            },\n            {\n              \"id\": \"<string>\",\n              \"type\": \"roles\"\n            }\n          ]\n        }\n      },\n      \"type\": \"users\"\n    }\n  ]\n}"
    },
    {
      "name": "Bad Request",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/downtime/:downtime_id?include=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "downtime",
            ":downtime_id"
          ],
          "query": [
            {
              "key": "include",
              "value": "<string>",
              "description": "Comma-separated list of resource paths for related resources to include in the response. Supported resource\npaths are `created_by` and `monitor`."
            }
          ],
          "variable": [
            {
              "key": "downtime_id"
            }
          ]
        }
      },
      "status": "Bad Request",
      "code": 400,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"
    },
    {
      "name": "Forbidden",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/downtime/:downtime_id?include=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "downtime",
            ":downtime_id"
          ],
          "query": [
            {
              "key": "include",
              "value": "<string>",
              "description": "Comma-separated list of resource paths for related resources to include in the response. Supported resource\npaths are `created_by` and `monitor`."
            }
          ],
          "variable": [
            {
              "key": "downtime_id"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"
    },
    {
      "name": "Not Found",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/downtime/:downtime_id?include=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "downtime",
            ":downtime_id"
          ],
          "query": [
            {
              "key": "include",
              "value": "<string>",
              "description": "Comma-separated list of resource paths for related resources to include in the response. Supported resource\npaths are `created_by` and `monitor`."
            }
          ],
          "variable": [
            {
              "key": "downtime_id"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"
    },
    {
      "name": "Too many requests",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/downtime/:downtime_id?include=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "downtime",
            ":downtime_id"
          ],
          "query": [
            {
              "key": "include",
              "value": "<string>",
              "description": "Comma-separated list of resource paths for related resources to include in the response. Supported resource\npaths are `created_by` and `monitor`."
            }
          ],
          "variable": [
            {
              "key": "downtime_id"
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}"
    }
  ]
}