Skip to content

Commit d212351

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
update usage summary API docs for partner program (#2065)
* Regenerate client from commit ad82c0e5 of spec repo * pre-commit fixes --------- 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 4337a59 commit d212351

File tree

4 files changed

+46
-4
lines changed

4 files changed

+46
-4
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.6",
7-
"regenerated": "2024-07-23 15:33:51.142309",
8-
"spec_repo_commit": "015355f6"
7+
"regenerated": "2024-07-23 17:39:46.554429",
8+
"spec_repo_commit": "ad82c0e5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-23 15:33:51.159414",
13-
"spec_repo_commit": "015355f6"
12+
"regenerated": "2024-07-23 17:39:46.571472",
13+
"spec_repo_commit": "ad82c0e5"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19337,6 +19337,12 @@ components:
1933719337
description: Global hourly report of all data billed by Datadog for a given
1933819338
organization.
1933919339
properties:
19340+
account_name:
19341+
description: The account name.
19342+
type: string
19343+
account_public_id:
19344+
description: The account public id.
19345+
type: string
1934019346
agent_host_top99p:
1934119347
description: Shows the 99th percentile of all agent hosts over all hours
1934219348
in the current date for the given org.
@@ -33211,6 +33217,15 @@ paths:
3321133217
required: false
3321233218
schema:
3321333219
type: boolean
33220+
- description: 'Boolean to specify whether to include accounts connected to
33221+
the current account as partner customers in the Datadog partner network
33222+
program. Defaults to `false`. '
33223+
in: query
33224+
name: include_connected_accounts
33225+
required: false
33226+
schema:
33227+
default: false
33228+
type: boolean
3321433229
responses:
3321533230
'200':
3321633231
content:

src/datadog_api_client/v1/api/usage_metering_api.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,11 @@ def __init__(self, api_client=None):
10411041
"attribute": "include_org_details",
10421042
"location": "query",
10431043
},
1044+
"include_connected_accounts": {
1045+
"openapi_types": (bool,),
1046+
"attribute": "include_connected_accounts",
1047+
"location": "query",
1048+
},
10441049
},
10451050
headers_map={
10461051
"accept": ["application/json;datetime-format=rfc3339"],
@@ -2149,6 +2154,7 @@ def get_usage_summary(
21492154
*,
21502155
end_month: Union[datetime, UnsetType] = unset,
21512156
include_org_details: Union[bool, UnsetType] = unset,
2157+
include_connected_accounts: Union[bool, UnsetType] = unset,
21522158
) -> UsageSummaryResponse:
21532159
"""Get usage across your account.
21542160
@@ -2163,6 +2169,8 @@ def get_usage_summary(
21632169
:type end_month: datetime, optional
21642170
:param include_org_details: Include usage summaries for each sub-org.
21652171
:type include_org_details: bool, optional
2172+
:param include_connected_accounts: Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to ``false``.
2173+
:type include_connected_accounts: bool, optional
21662174
:rtype: UsageSummaryResponse
21672175
"""
21682176
kwargs: Dict[str, Any] = {}
@@ -2174,6 +2182,9 @@ def get_usage_summary(
21742182
if include_org_details is not unset:
21752183
kwargs["include_org_details"] = include_org_details
21762184

2185+
if include_connected_accounts is not unset:
2186+
kwargs["include_connected_accounts"] = include_connected_accounts
2187+
21772188
return self._get_usage_summary_endpoint.call_with_http_info(**kwargs)
21782189

21792190
def get_usage_synthetics(

src/datadog_api_client/v1/model/usage_summary_date_org.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class UsageSummaryDateOrg(ModelNormal):
1717
@cached_property
1818
def openapi_types(_):
1919
return {
20+
"account_name": (str,),
21+
"account_public_id": (str,),
2022
"agent_host_top99p": (int,),
2123
"apm_azure_app_service_host_top99p": (int,),
2224
"apm_devsecops_host_top99p": (int,),
@@ -150,6 +152,8 @@ def openapi_types(_):
150152
}
151153

152154
attribute_map = {
155+
"account_name": "account_name",
156+
"account_public_id": "account_public_id",
153157
"agent_host_top99p": "agent_host_top99p",
154158
"apm_azure_app_service_host_top99p": "apm_azure_app_service_host_top99p",
155159
"apm_devsecops_host_top99p": "apm_devsecops_host_top99p",
@@ -284,6 +288,8 @@ def openapi_types(_):
284288

285289
def __init__(
286290
self_,
291+
account_name: Union[str, UnsetType] = unset,
292+
account_public_id: Union[str, UnsetType] = unset,
287293
agent_host_top99p: Union[int, UnsetType] = unset,
288294
apm_azure_app_service_host_top99p: Union[int, UnsetType] = unset,
289295
apm_devsecops_host_top99p: Union[int, UnsetType] = unset,
@@ -419,6 +425,12 @@ def __init__(
419425
"""
420426
Global hourly report of all data billed by Datadog for a given organization.
421427
428+
:param account_name: The account name.
429+
:type account_name: str, optional
430+
431+
:param account_public_id: The account public id.
432+
:type account_public_id: str, optional
433+
422434
:param agent_host_top99p: Shows the 99th percentile of all agent hosts over all hours in the current date for the given org.
423435
:type agent_host_top99p: int, optional
424436
@@ -809,6 +821,10 @@ def __init__(
809821
:param workflow_executions_usage_sum: Sum of all workflows executed over all hours in the current date for the given org.
810822
:type workflow_executions_usage_sum: int, optional
811823
"""
824+
if account_name is not unset:
825+
kwargs["account_name"] = account_name
826+
if account_public_id is not unset:
827+
kwargs["account_public_id"] = account_public_id
812828
if agent_host_top99p is not unset:
813829
kwargs["agent_host_top99p"] = agent_host_top99p
814830
if apm_azure_app_service_host_top99p is not unset:

0 commit comments

Comments
 (0)