Skip to content

Commit d0d27f7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
update hourly usage API docs for partner program (#1706)
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 bc7c28b commit d0d27f7

File tree

5 files changed

+56
-4
lines changed

5 files changed

+56
-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-18 17:22:39.335548",
8-
"spec_repo_commit": "9ab8be35"
7+
"regenerated": "2024-07-18 19:17:59.792103",
8+
"spec_repo_commit": "8f19ff48"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-18 17:22:39.360255",
13-
"spec_repo_commit": "9ab8be35"
12+
"regenerated": "2024-07-18 19:17:59.818187",
13+
"spec_repo_commit": "8f19ff48"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8741,6 +8741,12 @@ components:
87418741
description: Attributes of hourly usage for a product family for an org for
87428742
a time period.
87438743
properties:
8744+
account_name:
8745+
description: The account name.
8746+
type: string
8747+
account_public_id:
8748+
description: The account public ID.
8749+
type: string
87448750
measurements:
87458751
description: List of the measured usage values for the product family for
87468752
the org for the time period.
@@ -36772,6 +36778,15 @@ paths:
3677236778
schema:
3677336779
default: false
3677436780
type: boolean
36781+
- description: Boolean to specify whether to include accounts connected to the
36782+
current account as partner customers in the Datadog partner network program.
36783+
Defaults to false.
36784+
in: query
36785+
name: filter[include_connected_accounts]
36786+
required: false
36787+
schema:
36788+
default: false
36789+
type: boolean
3677536790
- description: Include breakdown of usage by subcategories where applicable
3677636791
(for product family logs only). Defaults to false.
3677736792
in: query

features/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3132,6 +3132,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
31323132
"type": "boolean",
31333133
"format": "",
31343134
},
3135+
"filterIncludeConnectedAccounts": {
3136+
"type": "boolean",
3137+
"format": "",
3138+
},
31353139
"filterIncludeBreakdown": {
31363140
"type": "boolean",
31373141
"format": "",

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
245245
filterProductFamilies: string,
246246
filterTimestampEnd?: Date,
247247
filterIncludeDescendants?: boolean,
248+
filterIncludeConnectedAccounts?: boolean,
248249
filterIncludeBreakdown?: boolean,
249250
filterVersions?: string,
250251
pageLimit?: number,
@@ -301,6 +302,16 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
301302
ObjectSerializer.serialize(filterIncludeDescendants, "boolean", "")
302303
);
303304
}
305+
if (filterIncludeConnectedAccounts !== undefined) {
306+
requestContext.setQueryParam(
307+
"filter[include_connected_accounts]",
308+
ObjectSerializer.serialize(
309+
filterIncludeConnectedAccounts,
310+
"boolean",
311+
""
312+
)
313+
);
314+
}
304315
if (filterIncludeBreakdown !== undefined) {
305316
requestContext.setQueryParam(
306317
"filter[include_breakdown]",
@@ -1354,6 +1365,11 @@ export interface UsageMeteringApiGetHourlyUsageRequest {
13541365
* @type boolean
13551366
*/
13561367
filterIncludeDescendants?: boolean;
1368+
/**
1369+
* Boolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to false.
1370+
* @type boolean
1371+
*/
1372+
filterIncludeConnectedAccounts?: boolean;
13571373
/**
13581374
* Include breakdown of usage by subcategories where applicable (for product family logs only). Defaults to false.
13591375
* @type boolean
@@ -1611,6 +1627,7 @@ export class UsageMeteringApi {
16111627
param.filterProductFamilies,
16121628
param.filterTimestampEnd,
16131629
param.filterIncludeDescendants,
1630+
param.filterIncludeConnectedAccounts,
16141631
param.filterIncludeBreakdown,
16151632
param.filterVersions,
16161633
param.pageLimit,

packages/datadog-api-client-v2/models/HourlyUsageAttributes.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111
* Attributes of hourly usage for a product family for an org for a time period.
1212
*/
1313
export class HourlyUsageAttributes {
14+
/**
15+
* The account name.
16+
*/
17+
"accountName"?: string;
18+
/**
19+
* The account public ID.
20+
*/
21+
"accountPublicId"?: string;
1422
/**
1523
* List of the measured usage values for the product family for the org for the time period.
1624
*/
@@ -52,6 +60,14 @@ export class HourlyUsageAttributes {
5260
* @ignore
5361
*/
5462
static readonly attributeTypeMap: AttributeTypeMap = {
63+
accountName: {
64+
baseName: "account_name",
65+
type: "string",
66+
},
67+
accountPublicId: {
68+
baseName: "account_public_id",
69+
type: "string",
70+
},
5571
measurements: {
5672
baseName: "measurements",
5773
type: "Array<HourlyUsageMeasurement>",

0 commit comments

Comments
 (0)