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
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
-- Use this online tool to generate code from sample JSON: Generate Code to Create JSON
-- The following JSON is sent in the request body.
-- {
-- "compute": [
-- {
-- "aggregation": "pc98",
-- "interval": "<string>",
-- "metric": "<string>",
-- "type": "total"
-- },
-- {
-- "aggregation": "cardinality",
-- "interval": "<string>",
-- "metric": "<string>",
-- "type": "total"
-- }
-- ],
-- "filter": {
-- "from": "now-15m",
-- "query": "*",
-- "to": "now"
-- },
-- "group_by": [
-- {
-- "facet": "<string>",
-- "histogram": {
-- "interval": "<double>",
-- "min": "<double>",
-- "max": "<double>"
-- },
-- "limit": 10,
-- "missing": "<string>",
-- "sort": {
-- "aggregation": "sum",
-- "metric": "<string>",
-- "order": "asc",
-- "type": "alphabetical"
-- },
-- "total": "<boolean>"
-- },
-- {
-- "facet": "<string>",
-- "histogram": {
-- "interval": "<double>",
-- "min": "<double>",
-- "max": "<double>"
-- },
-- "limit": 10,
-- "missing": "<string>",
-- "sort": {
-- "aggregation": "pc99",
-- "metric": "<string>",
-- "order": "asc",
-- "type": "alphabetical"
-- },
-- "total": "<boolean>"
-- }
-- ],
-- "options": {
-- "time_offset": "<long>",
-- "timezone": "UTC"
-- },
-- "page": {
-- "cursor": "<string>",
-- "limit": 10
-- }
-- }
DECLARE @json int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @json OUT
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compute[0].aggregation', 'pc98'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compute[0].interval', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compute[0].metric', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compute[0].type', 'total'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compute[1].aggregation', 'cardinality'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compute[1].interval', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compute[1].metric', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'compute[1].type', 'total'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'filter.from', 'now-15m'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'filter.query', '*'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'filter.to', 'now'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].facet', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].histogram.interval', '<double>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].histogram.min', '<double>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].histogram.max', '<double>'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'group_by[0].limit', 10
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].missing', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].sort.aggregation', 'sum'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].sort.metric', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].sort.order', 'asc'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].sort.type', 'alphabetical'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[0].total', '<boolean>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].facet', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].histogram.interval', '<double>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].histogram.min', '<double>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].histogram.max', '<double>'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'group_by[1].limit', 10
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].missing', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].sort.aggregation', 'pc99'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].sort.metric', '<string>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].sort.order', 'asc'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].sort.type', 'alphabetical'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'group_by[1].total', '<boolean>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.time_offset', '<long>'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'options.timezone', 'UTC'
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'page.cursor', '<string>'
EXEC sp_OAMethod @json, 'UpdateInt', @success OUT, 'page.limit', 10
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
DECLARE @resp int
EXEC sp_OAMethod @http, 'PostJson3', @resp OUT, 'https://api.app.ddog-gov.com/api/v2/rum/analytics/aggregate', 'application/json', @json
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 @json
RETURN
END
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody
DECLARE @jResp int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.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 @json
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": {
-- "buckets": [
-- {
-- "by": {
-- "inc4": "<string>"
-- },
-- "computes": {
-- "nostrud_0c_": "<string>"
-- }
-- },
-- {
-- "by": {
-- "dolore__": "<string>",
-- "aliqua_8a4": "<string>",
-- "fugiatd": "<string>",
-- "culpa9_a": "<string>"
-- },
-- "computes": {
-- "aliqua_237": "<string>"
-- }
-- }
-- ]
-- },
-- "links": {
-- "next": "<string>"
-- },
-- "meta": {
-- "elapsed": "<long>",
-- "page": {
-- "after": "<string>"
-- },
-- "request_id": "<string>",
-- "status": "done",
-- "warnings": [
-- {
-- "code": "<string>",
-- "detail": "<string>",
-- "title": "<string>"
-- },
-- {
-- "code": "<string>",
-- "detail": "<string>",
-- "title": "<string>"
-- }
-- ]
-- }
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @Inc4 nvarchar(4000)
DECLARE @Nostrud_0c_ nvarchar(4000)
DECLARE @Dolore__ nvarchar(4000)
DECLARE @Aliqua_8a4 nvarchar(4000)
DECLARE @Fugiatd nvarchar(4000)
DECLARE @Culpa9_a nvarchar(4000)
DECLARE @Aliqua_237 nvarchar(4000)
DECLARE @code nvarchar(4000)
DECLARE @detail nvarchar(4000)
DECLARE @title nvarchar(4000)
DECLARE @v_Next nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Next OUT, 'links.next'
DECLARE @Elapsed nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Elapsed OUT, 'meta.elapsed'
DECLARE @After nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @After OUT, 'meta.page.after'
DECLARE @Request_id nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Request_id OUT, 'meta.request_id'
DECLARE @Status nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Status OUT, 'meta.status'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'data.buckets'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Inc4 OUT, 'data.buckets[i].by.inc4'
EXEC sp_OAMethod @jResp, 'StringOf', @Nostrud_0c_ OUT, 'data.buckets[i].computes.nostrud_0c_'
EXEC sp_OAMethod @jResp, 'StringOf', @Dolore__ OUT, 'data.buckets[i].by.dolore__'
EXEC sp_OAMethod @jResp, 'StringOf', @Aliqua_8a4 OUT, 'data.buckets[i].by.aliqua_8a4'
EXEC sp_OAMethod @jResp, 'StringOf', @Fugiatd OUT, 'data.buckets[i].by.fugiatd'
EXEC sp_OAMethod @jResp, 'StringOf', @Culpa9_a OUT, 'data.buckets[i].by.culpa9_a'
EXEC sp_OAMethod @jResp, 'StringOf', @Aliqua_237 OUT, 'data.buckets[i].computes.aliqua_237'
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'meta.warnings'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @code OUT, 'meta.warnings[i].code'
EXEC sp_OAMethod @jResp, 'StringOf', @detail OUT, 'meta.warnings[i].detail'
EXEC sp_OAMethod @jResp, 'StringOf', @title OUT, 'meta.warnings[i].title'
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
Curl Command
curl -X POST
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '{
"compute": [
{
"aggregation": "pc98",
"interval": "<string>",
"metric": "<string>",
"type": "total"
},
{
"aggregation": "cardinality",
"interval": "<string>",
"metric": "<string>",
"type": "total"
}
],
"filter": {
"from": "now-15m",
"query": "*",
"to": "now"
},
"group_by": [
{
"facet": "<string>",
"histogram": {
"interval": "<double>",
"min": "<double>",
"max": "<double>"
},
"limit": 10,
"missing": "<string>",
"sort": {
"aggregation": "sum",
"metric": "<string>",
"order": "asc",
"type": "alphabetical"
},
"total": "<boolean>"
},
{
"facet": "<string>",
"histogram": {
"interval": "<double>",
"min": "<double>",
"max": "<double>"
},
"limit": 10,
"missing": "<string>",
"sort": {
"aggregation": "pc99",
"metric": "<string>",
"order": "asc",
"type": "alphabetical"
},
"total": "<boolean>"
}
],
"options": {
"time_offset": "<long>",
"timezone": "UTC"
},
"page": {
"cursor": "<string>",
"limit": 10
}
}'
https://api.app.ddog-gov.com/api/v2/rum/analytics/aggregate
Postman Collection Item JSON
{
"name": "Aggregate RUM events",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"compute\": [\n {\n \"aggregation\": \"pc98\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n },\n {\n \"aggregation\": \"cardinality\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n }\n ],\n \"filter\": {\n \"from\": \"now-15m\",\n \"query\": \"*\",\n \"to\": \"now\"\n },\n \"group_by\": [\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"sum\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n },\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"pc99\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n }\n ],\n \"options\": {\n \"time_offset\": \"<long>\",\n \"timezone\": \"UTC\"\n },\n \"page\": {\n \"cursor\": \"<string>\",\n \"limit\": 10\n }\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/rum/analytics/aggregate",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"rum",
"analytics",
"aggregate"
]
},
"description": "The API endpoint to aggregate RUM events into buckets of computed metrics and timeseries."
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"compute\": [\n {\n \"aggregation\": \"pc98\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n },\n {\n \"aggregation\": \"cardinality\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n }\n ],\n \"filter\": {\n \"from\": \"now-15m\",\n \"query\": \"*\",\n \"to\": \"now\"\n },\n \"group_by\": [\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"sum\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n },\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"pc99\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n }\n ],\n \"options\": {\n \"time_offset\": \"<long>\",\n \"timezone\": \"UTC\"\n },\n \"page\": {\n \"cursor\": \"<string>\",\n \"limit\": 10\n }\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/rum/analytics/aggregate",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"rum",
"analytics",
"aggregate"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"data\": {\n \"buckets\": [\n {\n \"by\": {\n \"inc4\": \"<string>\"\n },\n \"computes\": {\n \"nostrud_0c_\": \"<string>\"\n }\n },\n {\n \"by\": {\n \"dolore__\": \"<string>\",\n \"aliqua_8a4\": \"<string>\",\n \"fugiatd\": \"<string>\",\n \"culpa9_a\": \"<string>\"\n },\n \"computes\": {\n \"aliqua_237\": \"<string>\"\n }\n }\n ]\n },\n \"links\": {\n \"next\": \"<string>\"\n },\n \"meta\": {\n \"elapsed\": \"<long>\",\n \"page\": {\n \"after\": \"<string>\"\n },\n \"request_id\": \"<string>\",\n \"status\": \"done\",\n \"warnings\": [\n {\n \"code\": \"<string>\",\n \"detail\": \"<string>\",\n \"title\": \"<string>\"\n },\n {\n \"code\": \"<string>\",\n \"detail\": \"<string>\",\n \"title\": \"<string>\"\n }\n ]\n }\n}"
},
{
"name": "Bad Request",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"compute\": [\n {\n \"aggregation\": \"pc98\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n },\n {\n \"aggregation\": \"cardinality\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n }\n ],\n \"filter\": {\n \"from\": \"now-15m\",\n \"query\": \"*\",\n \"to\": \"now\"\n },\n \"group_by\": [\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"sum\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n },\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"pc99\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n }\n ],\n \"options\": {\n \"time_offset\": \"<long>\",\n \"timezone\": \"UTC\"\n },\n \"page\": {\n \"cursor\": \"<string>\",\n \"limit\": 10\n }\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/rum/analytics/aggregate",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"rum",
"analytics",
"aggregate"
]
}
},
"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": "Not Authorized",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"compute\": [\n {\n \"aggregation\": \"pc98\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n },\n {\n \"aggregation\": \"cardinality\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n }\n ],\n \"filter\": {\n \"from\": \"now-15m\",\n \"query\": \"*\",\n \"to\": \"now\"\n },\n \"group_by\": [\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"sum\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n },\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"pc99\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n }\n ],\n \"options\": {\n \"time_offset\": \"<long>\",\n \"timezone\": \"UTC\"\n },\n \"page\": {\n \"cursor\": \"<string>\",\n \"limit\": 10\n }\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/rum/analytics/aggregate",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"rum",
"analytics",
"aggregate"
]
}
},
"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": "Too many requests",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"compute\": [\n {\n \"aggregation\": \"pc98\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n },\n {\n \"aggregation\": \"cardinality\",\n \"interval\": \"<string>\",\n \"metric\": \"<string>\",\n \"type\": \"total\"\n }\n ],\n \"filter\": {\n \"from\": \"now-15m\",\n \"query\": \"*\",\n \"to\": \"now\"\n },\n \"group_by\": [\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"sum\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n },\n {\n \"facet\": \"<string>\",\n \"histogram\": {\n \"interval\": \"<double>\",\n \"min\": \"<double>\",\n \"max\": \"<double>\"\n },\n \"limit\": 10,\n \"missing\": \"<string>\",\n \"sort\": {\n \"aggregation\": \"pc99\",\n \"metric\": \"<string>\",\n \"order\": \"asc\",\n \"type\": \"alphabetical\"\n },\n \"total\": \"<boolean>\"\n }\n ],\n \"options\": {\n \"time_offset\": \"<long>\",\n \"timezone\": \"UTC\"\n },\n \"page\": {\n \"cursor\": \"<string>\",\n \"limit\": 10\n }\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/rum/analytics/aggregate",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"rum",
"analytics",
"aggregate"
]
}
},
"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}"
}
]
}