Back to Collection Items
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess
$oQueryParams = ObjCreate("Chilkat.JsonObject")
$oQueryParams.UpdateInt("from_ts",-62147425)
$oQueryParams.UpdateInt("to_ts",-62147425)
$oQueryParams.UpdateString("target","49.34019051965387")
$oQueryParams.UpdateString("apply_correction","true")
$oHttp.SetRequestHeader "Accept","application/json"
Local $oResp = $oHttp.QuickRequestParams("GET","https://api.app.ddog-gov.com/api/v1/slo/:slo_id/history",$oQueryParams)
If ($oHttp.LastMethodSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
$oSbResponseBody = ObjCreate("Chilkat.StringBuilder")
$oResp.GetBodySb($oSbResponseBody)
$oJResp = ObjCreate("Chilkat.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
$oJResp.EmitCompact = False
ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oJResp.Emit() & @CRLF)
Local $iRespStatusCode = $oResp.StatusCode
ConsoleWrite("Response Status Code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode >= 400) Then
ConsoleWrite("Response Header:" & @CRLF)
ConsoleWrite($oResp.Header & @CRLF)
ConsoleWrite("Failed." & @CRLF)
Exit
EndIf
; Sample JSON response:
; (Sample code for parsing the JSON response is shown below)
; {
; "data": {
; "from_ts": 1615323990,
; "group_by": [
; "aliqua pariatur",
; "labor"
; ],
; "groups": [
; {
; "error_budget_remaining": {
; "7d": 100
; },
; "errors": [
; {
; "error_type": "",
; "error_message": ""
; },
; {
; "error_type": "",
; "error_message": ""
; }
; ],
; "group": "name",
; "history": [
; [
; 1579212382,
; 0
; ]
; ],
; "monitor_modified": 1615867200,
; "monitor_type": "string",
; "name": "string",
; "precision": 2,
; "preview": true,
; "sli_value": 99.99,
; "span_precision": 2,
; "uptime": 99.99
; },
; {
; "error_budget_remaining": {
; "7d": 100
; },
; "errors": [
; {
; "error_type": "",
; "error_message": ""
; },
; {
; "error_type": "",
; "error_message": ""
; }
; ],
; "group": "name",
; "history": [
; [
; 1579212382,
; 0
; ]
; ],
; "monitor_modified": 1615867200,
; "monitor_type": "string",
; "name": "string",
; "precision": 2,
; "preview": true,
; "sli_value": 99.99,
; "span_precision": 2,
; "uptime": 99.99
; }
; ],
; "monitors": [
; {
; "error_budget_remaining": {
; "7d": 100
; },
; "errors": [
; {
; "error_type": "",
; "error_message": ""
; },
; {
; "error_type": "",
; "error_message": ""
; }
; ],
; "group": "name",
; "history": [
; [
; 1579212382,
; 0
; ]
; ],
; "monitor_modified": 1615867200,
; "monitor_type": "string",
; "name": "string",
; "precision": 2,
; "preview": true,
; "sli_value": 99.99,
; "span_precision": 2,
; "uptime": 99.99
; },
; {
; "error_budget_remaining": {
; "7d": 100
; },
; "errors": [
; {
; "error_type": "",
; "error_message": ""
; },
; {
; "error_type": "",
; "error_message": ""
; }
; ],
; "group": "name",
; "history": [
; [
; 1579212382,
; 0
; ]
; ],
; "monitor_modified": 1615867200,
; "monitor_type": "string",
; "name": "string",
; "precision": 2,
; "preview": true,
; "sli_value": 99.99,
; "span_precision": 2,
; "uptime": 99.99
; }
; ],
; "overall": {
; "error_budget_remaining": {
; "7d": 100
; },
; "errors": [
; {
; "error_type": "",
; "error_message": ""
; },
; {
; "error_type": "",
; "error_message": ""
; }
; ],
; "group": "name",
; "history": [
; [
; 1579212382,
; 0
; ]
; ],
; "monitor_modified": 1615867200,
; "monitor_type": "string",
; "name": "string",
; "precision": {
; "30d": 1,
; "7d": 2
; },
; "preview": true,
; "sli_value": 99.99,
; "span_precision": 2,
; "uptime": 99.99
; },
; "series": {
; "res_type": "",
; "interval": 0,
; "resp_version": 0,
; "query": "",
; "times": [
; ],
; "numerator": {
; "count": 0,
; "sum": 0,
; "metadata": {}
; },
; "denominator": {
; "count": 0,
; "sum": 0,
; "metadata": {}
; },
; "message": ""
; },
; "thresholds": {
; "my_service": {
; "target": 95,
; "timeframe": "7d"
; }
; },
; "to_ts": 1615928790,
; "type": "metric",
; "type_id": 0
; },
; "errors": [
; {
; "error": "ullamco pariatur"
; },
; {
; "error": "aliquip anim do laborum commodo"
; }
; ]
; }
; Sample code for parsing the JSON response...
; Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
Local $strVal
Local $iError_budget_remaining7d
Local $sGroup
Local $iMonitor_modified
Local $sMonitor_type
Local $sName
Local $iPrecision
Local $bPreview
Local $sli_value
Local $iSpan_precision
Local $sUptime
Local $iJ
Local $iCount_j
Local $sError_type
Local $sError_message
Local $iK
Local $iCount_k
Local $intVal
Local $sError
Local $iFrom_ts = $oJResp.IntOf("data.from_ts")
Local $iV_7d = $oJResp.IntOf("data.overall.error_budget_remaining.7d")
Local $sGroup = $oJResp.StringOf("data.overall.group")
Local $iMonitor_modified = $oJResp.IntOf("data.overall.monitor_modified")
Local $sMonitor_type = $oJResp.StringOf("data.overall.monitor_type")
Local $sName = $oJResp.StringOf("data.overall.name")
Local $iV_30d = $oJResp.IntOf("data.overall.precision.30d")
Local $iPrecision7d = $oJResp.IntOf("data.overall.precision.7d")
Local $bPreview = $oJResp.BoolOf("data.overall.preview")
Local $sSli_value = $oJResp.StringOf("data.overall.sli_value")
Local $iSpan_precision = $oJResp.IntOf("data.overall.span_precision")
Local $sUptime = $oJResp.StringOf("data.overall.uptime")
Local $sRes_type = $oJResp.StringOf("data.series.res_type")
Local $iInterval = $oJResp.IntOf("data.series.interval")
Local $iResp_version = $oJResp.IntOf("data.series.resp_version")
Local $sQuery = $oJResp.StringOf("data.series.query")
Local $iCount = $oJResp.IntOf("data.series.numerator.count")
Local $iSum = $oJResp.IntOf("data.series.numerator.sum")
Local $iDenominatorCount = $oJResp.IntOf("data.series.denominator.count")
Local $iDenominatorSum = $oJResp.IntOf("data.series.denominator.sum")
Local $sMessage = $oJResp.StringOf("data.series.message")
Local $iTarget = $oJResp.IntOf("data.thresholds.my_service.target")
Local $sTimeframe = $oJResp.StringOf("data.thresholds.my_service.timeframe")
Local $iTo_ts = $oJResp.IntOf("data.to_ts")
Local $sV_Type = $oJResp.StringOf("data.type")
Local $iType_id = $oJResp.IntOf("data.type_id")
Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("data.group_by")
While $i < $iCount_i
$oJResp.I = $i
$strVal = $oJResp.StringOf("data.group_by[i]")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("data.groups")
While $i < $iCount_i
$oJResp.I = $i
$iError_budget_remaining7d = $oJResp.IntOf("data.groups[i].error_budget_remaining.7d")
$sGroup = $oJResp.StringOf("data.groups[i].group")
$iMonitor_modified = $oJResp.IntOf("data.groups[i].monitor_modified")
$sMonitor_type = $oJResp.StringOf("data.groups[i].monitor_type")
$sName = $oJResp.StringOf("data.groups[i].name")
$iPrecision = $oJResp.IntOf("data.groups[i].precision")
$bPreview = $oJResp.BoolOf("data.groups[i].preview")
$sli_value = $oJResp.StringOf("data.groups[i].sli_value")
$iSpan_precision = $oJResp.IntOf("data.groups[i].span_precision")
$sUptime = $oJResp.StringOf("data.groups[i].uptime")
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("data.groups[i].errors")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sError_type = $oJResp.StringOf("data.groups[i].errors[j].error_type")
$sError_message = $oJResp.StringOf("data.groups[i].errors[j].error_message")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("data.groups[i].history")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iK = 0
$iCount_k = $oJResp.SizeOfArray("data.groups[i].history[j]")
While $iK < $iCount_k
$oJResp.K = $iK
$intVal = $oJResp.IntOf("data.groups[i].history[j][k]")
$iK = $iK + 1
Wend
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("data.monitors")
While $i < $iCount_i
$oJResp.I = $i
$iError_budget_remaining7d = $oJResp.IntOf("data.monitors[i].error_budget_remaining.7d")
$sGroup = $oJResp.StringOf("data.monitors[i].group")
$iMonitor_modified = $oJResp.IntOf("data.monitors[i].monitor_modified")
$sMonitor_type = $oJResp.StringOf("data.monitors[i].monitor_type")
$sName = $oJResp.StringOf("data.monitors[i].name")
$iPrecision = $oJResp.IntOf("data.monitors[i].precision")
$bPreview = $oJResp.BoolOf("data.monitors[i].preview")
$sli_value = $oJResp.StringOf("data.monitors[i].sli_value")
$iSpan_precision = $oJResp.IntOf("data.monitors[i].span_precision")
$sUptime = $oJResp.StringOf("data.monitors[i].uptime")
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("data.monitors[i].errors")
While $iJ < $iCount_j
$oJResp.J = $iJ
$sError_type = $oJResp.StringOf("data.monitors[i].errors[j].error_type")
$sError_message = $oJResp.StringOf("data.monitors[i].errors[j].error_message")
$iJ = $iJ + 1
Wend
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("data.monitors[i].history")
While $iJ < $iCount_j
$oJResp.J = $iJ
$iK = 0
$iCount_k = $oJResp.SizeOfArray("data.monitors[i].history[j]")
While $iK < $iCount_k
$oJResp.K = $iK
$intVal = $oJResp.IntOf("data.monitors[i].history[j][k]")
$iK = $iK + 1
Wend
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("data.overall.errors")
While $i < $iCount_i
$oJResp.I = $i
$sError_type = $oJResp.StringOf("data.overall.errors[i].error_type")
$sError_message = $oJResp.StringOf("data.overall.errors[i].error_message")
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("data.overall.history")
While $i < $iCount_i
$oJResp.I = $i
$iJ = 0
$iCount_j = $oJResp.SizeOfArray("data.overall.history[i]")
While $iJ < $iCount_j
$oJResp.J = $iJ
$intVal = $oJResp.IntOf("data.overall.history[i][j]")
$iJ = $iJ + 1
Wend
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("data.series.times")
While $i < $iCount_i
$oJResp.I = $i
$i = $i + 1
Wend
$i = 0
$iCount_i = $oJResp.SizeOfArray("errors")
While $i < $iCount_i
$oJResp.I = $i
$sError = $oJResp.StringOf("errors[i].error")
$i = $i + 1
Wend
Curl Command
curl -G -d "from_ts=-62147425"
-d "to_ts=-62147425"
-d "target=49.34019051965387"
-d "apply_correction=true"
-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v1/slo/:slo_id/history
Postman Collection Item JSON
{
"name": "Get an SLO's history",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v1/slo/:slo_id/history?from_ts=-62147425&to_ts=-62147425&target=49.34019051965387&apply_correction=true",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"slo",
":slo_id",
"history"
],
"query": [
{
"key": "from_ts",
"value": "-62147425",
"description": "(Required) The `from` timestamp for the query window in epoch seconds."
},
{
"key": "to_ts",
"value": "-62147425",
"description": "(Required) The `to` timestamp for the query window in epoch seconds."
},
{
"key": "target",
"value": "49.34019051965387",
"description": "The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`."
},
{
"key": "apply_correction",
"value": "true",
"description": "Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`,\nthen the corrections will not be applied and the SLI values will not be affected."
}
],
"variable": [
{
"key": "slo_id",
"value": "tempor Ut sed velit"
}
]
},
"description": "Get a specific SLO’s history, regardless of its SLO type.\n\nThe detailed history data is structured according to the source data type.\nFor example, metric data is included for event SLOs that use\nthe metric source, and monitor SLO types include the monitor transition history.\n\n**Note:** There are different response formats for event based and time based SLOs.\nExamples of both are shown."
},
"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/v1/slo/:slo_id/history?from_ts=-62147425&to_ts=-62147425&target=49.34019051965387&apply_correction=true",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"slo",
":slo_id",
"history"
],
"query": [
{
"key": "from_ts",
"value": "-62147425",
"description": "(Required) The `from` timestamp for the query window in epoch seconds."
},
{
"key": "to_ts",
"value": "-62147425",
"description": "(Required) The `to` timestamp for the query window in epoch seconds."
},
{
"key": "target",
"value": "49.34019051965387",
"description": "The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`."
},
{
"key": "apply_correction",
"value": "true",
"description": "Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`,\nthen the corrections will not be applied and the SLI values will not be affected."
}
],
"variable": [
{
"key": "slo_id"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"data\": {\n \"from_ts\": 1615323990,\n \"group_by\": [\n \"aliqua pariatur\",\n \"labor\"\n ],\n \"groups\": [\n {\n \"error_budget_remaining\": {\n \"7d\": 100\n },\n \"errors\": [\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n },\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n }\n ],\n \"group\": \"name\",\n \"history\": [\n [\n 1579212382,\n 0\n ]\n ],\n \"monitor_modified\": 1615867200,\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"precision\": 2,\n \"preview\": true,\n \"sli_value\": 99.99,\n \"span_precision\": 2,\n \"uptime\": 99.99\n },\n {\n \"error_budget_remaining\": {\n \"7d\": 100\n },\n \"errors\": [\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n },\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n }\n ],\n \"group\": \"name\",\n \"history\": [\n [\n 1579212382,\n 0\n ]\n ],\n \"monitor_modified\": 1615867200,\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"precision\": 2,\n \"preview\": true,\n \"sli_value\": 99.99,\n \"span_precision\": 2,\n \"uptime\": 99.99\n }\n ],\n \"monitors\": [\n {\n \"error_budget_remaining\": {\n \"7d\": 100\n },\n \"errors\": [\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n },\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n }\n ],\n \"group\": \"name\",\n \"history\": [\n [\n 1579212382,\n 0\n ]\n ],\n \"monitor_modified\": 1615867200,\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"precision\": 2,\n \"preview\": true,\n \"sli_value\": 99.99,\n \"span_precision\": 2,\n \"uptime\": 99.99\n },\n {\n \"error_budget_remaining\": {\n \"7d\": 100\n },\n \"errors\": [\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n },\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n }\n ],\n \"group\": \"name\",\n \"history\": [\n [\n 1579212382,\n 0\n ]\n ],\n \"monitor_modified\": 1615867200,\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"precision\": 2,\n \"preview\": true,\n \"sli_value\": 99.99,\n \"span_precision\": 2,\n \"uptime\": 99.99\n }\n ],\n \"overall\": {\n \"error_budget_remaining\": {\n \"7d\": 100\n },\n \"errors\": [\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n },\n {\n \"error_type\": \"\",\n \"error_message\": \"\"\n }\n ],\n \"group\": \"name\",\n \"history\": [\n [\n 1579212382,\n 0\n ]\n ],\n \"monitor_modified\": 1615867200,\n \"monitor_type\": \"string\",\n \"name\": \"string\",\n \"precision\": {\n \"30d\": 1,\n \"7d\": 2\n },\n \"preview\": true,\n \"sli_value\": 99.99,\n \"span_precision\": 2,\n \"uptime\": 99.99\n },\n \"series\": {\n \"res_type\": \"\",\n \"interval\": 0,\n \"resp_version\": 0,\n \"query\": \"\",\n \"times\": [],\n \"numerator\": {\n \"count\": 0,\n \"sum\": 0,\n \"metadata\": {}\n },\n \"denominator\": {\n \"count\": 0,\n \"sum\": 0,\n \"metadata\": {}\n },\n \"message\": \"\"\n },\n \"thresholds\": {\n \"my_service\": {\n \"target\": 95,\n \"timeframe\": \"7d\"\n }\n },\n \"to_ts\": 1615928790,\n \"type\": \"metric\",\n \"type_id\": 0\n },\n \"errors\": [\n {\n \"error\": \"ullamco pariatur\"\n },\n {\n \"error\": \"aliquip anim do laborum commodo\"\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/v1/slo/:slo_id/history?from_ts=-62147425&to_ts=-62147425&target=49.34019051965387&apply_correction=true",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"slo",
":slo_id",
"history"
],
"query": [
{
"key": "from_ts",
"value": "-62147425",
"description": "(Required) The `from` timestamp for the query window in epoch seconds."
},
{
"key": "to_ts",
"value": "-62147425",
"description": "(Required) The `to` timestamp for the query window in epoch seconds."
},
{
"key": "target",
"value": "49.34019051965387",
"description": "The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`."
},
{
"key": "apply_correction",
"value": "true",
"description": "Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`,\nthen the corrections will not be applied and the SLI values will not be affected."
}
],
"variable": [
{
"key": "slo_id"
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\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/v1/slo/:slo_id/history?from_ts=-62147425&to_ts=-62147425&target=49.34019051965387&apply_correction=true",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"slo",
":slo_id",
"history"
],
"query": [
{
"key": "from_ts",
"value": "-62147425",
"description": "(Required) The `from` timestamp for the query window in epoch seconds."
},
{
"key": "to_ts",
"value": "-62147425",
"description": "(Required) The `to` timestamp for the query window in epoch seconds."
},
{
"key": "target",
"value": "49.34019051965387",
"description": "The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`."
},
{
"key": "apply_correction",
"value": "true",
"description": "Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`,\nthen the corrections will not be applied and the SLI values will not be affected."
}
],
"variable": [
{
"key": "slo_id"
}
]
}
},
"status": "Forbidden",
"code": 403,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\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/v1/slo/:slo_id/history?from_ts=-62147425&to_ts=-62147425&target=49.34019051965387&apply_correction=true",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"slo",
":slo_id",
"history"
],
"query": [
{
"key": "from_ts",
"value": "-62147425",
"description": "(Required) The `from` timestamp for the query window in epoch seconds."
},
{
"key": "to_ts",
"value": "-62147425",
"description": "(Required) The `to` timestamp for the query window in epoch seconds."
},
{
"key": "target",
"value": "49.34019051965387",
"description": "The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`."
},
{
"key": "apply_correction",
"value": "true",
"description": "Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`,\nthen the corrections will not be applied and the SLI values will not be affected."
}
],
"variable": [
{
"key": "slo_id"
}
]
}
},
"status": "Not Found",
"code": 404,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\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/v1/slo/:slo_id/history?from_ts=-62147425&to_ts=-62147425&target=49.34019051965387&apply_correction=true",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v1",
"slo",
":slo_id",
"history"
],
"query": [
{
"key": "from_ts",
"value": "-62147425",
"description": "(Required) The `from` timestamp for the query window in epoch seconds."
},
{
"key": "to_ts",
"value": "-62147425",
"description": "(Required) The `to` timestamp for the query window in epoch seconds."
},
{
"key": "target",
"value": "49.34019051965387",
"description": "The SLO target. If `target` is passed in, the response will include the remaining error budget and a timeframe value of `custom`."
},
{
"key": "apply_correction",
"value": "true",
"description": "Defaults to `true`. If any SLO corrections are applied and this parameter is set to `false`,\nthen the corrections will not be applied and the SLI values will not be affected."
}
],
"variable": [
{
"key": "slo_id"
}
]
}
},
"status": "Too Many Requests",
"code": 429,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"Bad Request\",\n \"Bad Request\"\n ]\n}"
}
]
}