Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add organization metadata to additional Usage API responses #504

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-27 16:01:49.282357",
"spec_repo_commit": "c738c50"
"regenerated": "2022-01-31 10:15:52.528410",
"spec_repo_commit": "28778f1"
},
"v2": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-27 16:01:49.300266",
"spec_repo_commit": "c738c50"
"regenerated": "2022-01-31 10:15:52.545103",
"spec_repo_commit": "28778f1"
}
}
}
42 changes: 42 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12428,6 +12428,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageAnalyzedLogsResponse:
description: A response containing the number of analyzed logs for each hour
Expand Down Expand Up @@ -13347,6 +13353,12 @@ components:
of the given hour's month until the given hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIncidentManagementResponse:
description: Response containing the incident management usage for each hour
Expand All @@ -13369,6 +13381,12 @@ components:
description: Contains the number of spans indexed.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIndexedSpansResponse:
description: A response containing indexed spans usage.
Expand All @@ -13392,6 +13410,12 @@ components:
hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIngestedSpansResponse:
description: Response containing the ingested spans usage for each hour for
Expand All @@ -13414,6 +13438,12 @@ components:
description: The total number of IoT devices during a given hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIoTResponse:
description: Response containing the IoT usage for each hour for a given organization.
Expand Down Expand Up @@ -13641,6 +13671,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageProfilingResponse:
description: Response containing the number of profiled hosts for each hour
Expand Down Expand Up @@ -13782,6 +13818,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
snmp_devices:
description: Contains the number of SNMP devices.
format: int64
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2022-01-31T09:34:27.865Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"log": {
"_recordingName": "Usage Metering/Get hourly usage for IoT returns \"Bad Request\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.4"
},
"entries": [
{
"_id": "503729ea9981d4f515aa98293efed595",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json;datetime-format=rfc3339"
}
],
"headersSize": 612,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
{
"name": "start_hr",
"value": "2022-01-28T09:34:27.865Z"
},
{
"name": "end_hr",
"value": "2022-01-26T09:34:27.865Z"
}
],
"url": "https://api.datadoghq.com/api/v1/usage/iot?start_hr=2022-01-28T09%3A34%3A27.865Z&end_hr=2022-01-26T09%3A34%3A27.865Z"
},
"response": {
"bodySize": 78,
"content": {
"mimeType": "application/json",
"size": 78,
"text": "{\"errors\": [\"start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]\"]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 519,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 400,
"statusText": "Bad Request"
},
"startedDateTime": "2022-01-31T09:34:27.880Z",
"time": 466
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2022-01-31T09:34:28.357Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"log": {
"_recordingName": "Usage Metering/Get hourly usage for IoT returns \"OK\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.4"
},
"entries": [
{
"_id": "bd67b8df49232c1444304716c4d749c1",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json;datetime-format=rfc3339"
}
],
"headersSize": 612,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
{
"name": "start_hr",
"value": "2022-01-26T09:34:28.357Z"
},
{
"name": "end_hr",
"value": "2022-01-28T09:34:28.357Z"
}
],
"url": "https://api.datadoghq.com/api/v1/usage/iot?start_hr=2022-01-26T09%3A34%3A28.357Z&end_hr=2022-01-28T09%3A34%3A28.357Z"
},
"response": {
"bodySize": 7403,
"content": {
"mimeType": "application/json",
"size": 7403,
"text": "{\"usage\":[{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T09:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T10:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T11:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T12:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T13:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T14:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T15:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T16:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T17:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T18:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T19:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T20:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T21:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T22:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-26T23:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T00:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T01:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T02:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T03:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T04:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T05:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T06:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T07:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T08:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T09:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T10:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T11:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T12:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T13:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T14:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T15:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T16:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T17:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T18:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T19:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T20:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T21:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T22:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-27T23:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T00:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T01:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T02:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T03:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T04:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T05:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T06:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T07:00:00+00:00\"},{\"org_name\":\"DD Integration Tests (321813)\",\"iot_device_count\":0,\"iot_device_tag\":null,\"public_id\":\"fasjyydbcgwwc2uc\",\"hour\":\"2022-01-28T08:00:00+00:00\"}]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 521,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-01-31T09:34:28.362Z",
"time": 833
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2022-01-31T09:34:29.203Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"log": {
"_recordingName": "Usage Metering/Get hourly usage for SNMP devices returns \"Bad Request\" response",
"creator": {
"comment": "persister:fs",
"name": "Polly.JS",
"version": "6.0.4"
},
"entries": [
{
"_id": "912be5abb0dcdf852187c6caaa2afd56",
"_order": 0,
"cache": {},
"request": {
"bodySize": 0,
"cookies": [],
"headers": [
{
"_fromType": "array",
"name": "accept",
"value": "application/json;datetime-format=rfc3339"
}
],
"headersSize": 601,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [
{
"name": "start_hr",
"value": "2022-01-28T09:34:29.203Z"
},
{
"name": "end_hr",
"value": "2022-01-26T09:34:29.203Z"
}
],
"url": "https://api.datadoghq.com/api/v1/usage/snmp?start_hr=2022-01-28T09%3A34%3A29.203Z&end_hr=2022-01-26T09%3A34%3A29.203Z"
},
"response": {
"bodySize": 78,
"content": {
"mimeType": "application/json",
"size": 78,
"text": "{\"errors\": [\"start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]\"]}"
},
"cookies": [],
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"headersSize": 519,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 400,
"statusText": "Bad Request"
},
"startedDateTime": "2022-01-31T09:34:29.206Z",
"time": 417
}
],
"pages": [],
"version": "1.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"2022-01-31T09:34:29.627Z"
Loading