Skip to content

Commit 2ef5617

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
update usage summary API docs for partner program (#1717)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9c57938 commit 2ef5617

File tree

5 files changed

+52
-4
lines changed

5 files changed

+52
-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:50.395018",
8-
"spec_repo_commit": "015355f6"
7+
"regenerated": "2024-07-23 17:39:34.694923",
8+
"spec_repo_commit": "ad82c0e5"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-23 15:33:50.413026",
13-
"spec_repo_commit": "015355f6"
12+
"regenerated": "2024-07-23 17:39:34.712937",
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:

features/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
489489
"type": "boolean",
490490
"format": "",
491491
},
492+
"includeConnectedAccounts": {
493+
"type": "boolean",
494+
"format": "",
495+
},
492496
"operationResponseType": "UsageSummaryResponse",
493497
},
494498
"v1.GetUsageSynthetics": {

packages/datadog-api-client-v1/apis/UsageMeteringApi.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,7 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
16751675
startMonth: Date,
16761676
endMonth?: Date,
16771677
includeOrgDetails?: boolean,
1678+
includeConnectedAccounts?: boolean,
16781679
_options?: Configuration
16791680
): Promise<RequestContext> {
16801681
const _config = _options || this.configuration;
@@ -1716,6 +1717,12 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
17161717
ObjectSerializer.serialize(includeOrgDetails, "boolean", "")
17171718
);
17181719
}
1720+
if (includeConnectedAccounts !== undefined) {
1721+
requestContext.setQueryParam(
1722+
"include_connected_accounts",
1723+
ObjectSerializer.serialize(includeConnectedAccounts, "boolean", "")
1724+
);
1725+
}
17191726

17201727
// Apply auth methods
17211728
applySecurityAuthentication(_config, requestContext, [
@@ -4791,6 +4798,11 @@ export interface UsageMeteringApiGetUsageSummaryRequest {
47914798
* @type boolean
47924799
*/
47934800
includeOrgDetails?: boolean;
4801+
/**
4802+
* Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to `false`.
4803+
* @type boolean
4804+
*/
4805+
includeConnectedAccounts?: boolean;
47944806
}
47954807

47964808
export interface UsageMeteringApiGetUsageSyntheticsRequest {
@@ -5683,6 +5695,7 @@ export class UsageMeteringApi {
56835695
param.startMonth,
56845696
param.endMonth,
56855697
param.includeOrgDetails,
5698+
param.includeConnectedAccounts,
56865699
options
56875700
);
56885701
return requestContextPromise.then((requestContext) => {

packages/datadog-api-client-v1/models/UsageSummaryDateOrg.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1010
* Global hourly report of all data billed by Datadog for a given organization.
1111
*/
1212
export class UsageSummaryDateOrg {
13+
/**
14+
* The account name.
15+
*/
16+
"accountName"?: string;
17+
/**
18+
* The account public id.
19+
*/
20+
"accountPublicId"?: string;
1321
/**
1422
* Shows the 99th percentile of all agent hosts over all hours in the current date for the given org.
1523
*/
@@ -547,6 +555,14 @@ export class UsageSummaryDateOrg {
547555
* @ignore
548556
*/
549557
static readonly attributeTypeMap: AttributeTypeMap = {
558+
accountName: {
559+
baseName: "account_name",
560+
type: "string",
561+
},
562+
accountPublicId: {
563+
baseName: "account_public_id",
564+
type: "string",
565+
},
550566
agentHostTop99p: {
551567
baseName: "agent_host_top99p",
552568
type: "number",

0 commit comments

Comments
 (0)