Skip to content

Commit 19f0df0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 433d5d54 of spec repo (#987)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 49147e8 commit 19f0df0

11 files changed

+151
-12
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.2",
7-
"regenerated": "2022-05-10 15:39:32.481628",
8-
"spec_repo_commit": "f1e731d3"
7+
"regenerated": "2022-05-10 16:07:22.904453",
8+
"spec_repo_commit": "433d5d54"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-05-10 15:39:32.498242",
13-
"spec_repo_commit": "f1e731d3"
12+
"regenerated": "2022-05-10 16:07:22.917300",
13+
"spec_repo_commit": "433d5d54"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14182,16 +14182,25 @@ components:
1418214182
session_count:
1418314183
description: Contains the number of browser RUM Lite Sessions.
1418414184
format: int64
14185+
nullable: true
1418514186
type: integer
1418614187
session_count_android:
1418714188
description: Contains the number of mobile RUM Sessions on Android (data
1418814189
available beginning December 1, 2020).
1418914190
format: int64
14191+
nullable: true
1419014192
type: integer
1419114193
session_count_ios:
1419214194
description: Contains the number of mobile RUM Sessions on iOS (data available
1419314195
beginning December 1, 2020).
1419414196
format: int64
14197+
nullable: true
14198+
type: integer
14199+
session_count_reactnative:
14200+
description: Contains the number of mobile RUM Sessions on React Native
14201+
(data available beginning May 1, 2022).
14202+
format: int64
14203+
nullable: true
1419514204
type: integer
1419614205
type: object
1419714206
UsageRumSessionsResponse:
@@ -14604,6 +14613,11 @@ components:
1460414613
in the current date for all organizations.
1460514614
format: int64
1460614615
type: integer
14616+
mobile_rum_session_count_reactnative_sum:
14617+
description: Shows the sum of all mobile RUM Sessions on React Native over
14618+
all hours in the current date for all organizations.
14619+
format: int64
14620+
type: integer
1460714621
mobile_rum_session_count_sum:
1460814622
description: Shows the sum of all mobile RUM Sessions over all hours in
1460914623
the current date for all organizations
@@ -14923,6 +14937,11 @@ components:
1492314937
in the current date for the given org.
1492414938
format: int64
1492514939
type: integer
14940+
mobile_rum_session_count_reactnative_sum:
14941+
description: Shows the sum of all mobile RUM Sessions on React Native over
14942+
all hours in the current date for the given org.
14943+
format: int64
14944+
type: integer
1492614945
mobile_rum_session_count_sum:
1492714946
description: Shows the sum of all mobile RUM Sessions over all hours in
1492814947
the current date for the given org.
@@ -15277,6 +15296,11 @@ components:
1527715296
in the current months for all organizations.
1527815297
format: int64
1527915298
type: integer
15299+
mobile_rum_session_count_reactnative_agg_sum:
15300+
description: Shows the sum of all mobile RUM Sessions on React Native over
15301+
all hours in the current months for all organizations.
15302+
format: int64
15303+
type: integer
1528015304
mobile_rum_units_agg_sum:
1528115305
description: Shows the sum of all mobile RUM units over all hours in the
1528215306
current months for all organizations.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""
2+
Get mobile hourly usage for RUM Sessions returns "OK" response
3+
"""
4+
5+
from datetime import datetime
6+
from dateutil.relativedelta import relativedelta
7+
from datadog_api_client.v1 import ApiClient, Configuration
8+
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi
9+
10+
configuration = Configuration()
11+
with ApiClient(configuration) as api_client:
12+
api_instance = UsageMeteringApi(api_client)
13+
response = api_instance.get_usage_rum_sessions(
14+
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"),
15+
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"),
16+
type="mobile",
17+
)
18+
19+
print(response)

src/datadog_api_client/v1/model/usage_rum_sessions_hour.py

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/usage_summary_date.py

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/usage_summary_date_org.py

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/usage_summary_response.py

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2022-05-10T15:31:42.562Z

0 commit comments

Comments
 (0)