Skip to content

Commit

Permalink
Add region field and note about multiregion start (#1071)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Apr 10, 2023
1 parent 708d77d commit aa3a052
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 14 deletions.
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.4",
"regenerated": "2023-04-10 11:13:56.873442",
"spec_repo_commit": "04eeb6ee"
"regenerated": "2023-04-10 15:00:16.484096",
"spec_repo_commit": "615bff17"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-10 11:13:56.891137",
"spec_repo_commit": "04eeb6ee"
"regenerated": "2023-04-10 15:00:16.496350",
"spec_repo_commit": "615bff17"
}
}
}
26 changes: 18 additions & 8 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3606,6 +3606,10 @@ components:
public_id:
description: The organization public ID.
type: string
region:
description: The region of the Datadog instance that the organization belongs
to.
type: string
tag_config_source:
description: The source of the usage attribution tag configuration and the
selected tags in the format of `<source_org_name>:::<selected tag 1>///<selected
Expand Down Expand Up @@ -7068,6 +7072,10 @@ components:
public_id:
description: The organization public ID.
type: string
region:
description: The region of the Datadog instance that the organization belongs
to.
type: string
tag_config_source:
description: The source of the usage attribution tag configuration and the
selected tags in the format `<source_org_name>:::<selected tag 1>///<selected
Expand Down Expand Up @@ -28591,10 +28599,11 @@ paths:
- Usage Metering
/api/v1/usage/hourly-attribution:
get:
description: "Get hourly usage attribution.\n\nThis API endpoint is paginated.
To make sure you receive all records, check if the value of `next_record_id`
is\nset in the response. If it is, make another request and pass `next_record_id`
as a parameter.\nPseudo code example:\n\n```\nresponse := GetHourlyUsageAttribution(start_month)\ncursor
description: "Get hourly usage attribution. Multi-region data is available starting
March 1, 2023.\n\nThis API endpoint is paginated. To make sure you receive
all records, check if the value of `next_record_id` is\nset in the response.
If it is, make another request and pass `next_record_id` as a parameter.\nPseudo
code example:\n\n```\nresponse := GetHourlyUsageAttribution(start_month)\ncursor
:= response.metadata.pagination.next_record_id\nWHILE cursor != null BEGIN\n
\ sleep(5 seconds) # Avoid running into rate limit\n response := GetHourlyUsageAttribution(start_month,
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```"
Expand Down Expand Up @@ -29102,10 +29111,11 @@ paths:
- Usage Metering
/api/v1/usage/monthly-attribution:
get:
description: "Get monthly usage attribution.\n\nThis API endpoint is paginated.
To make sure you receive all records, check if the value of `next_record_id`
is\nset in the response. If it is, make another request and pass `next_record_id`
as a parameter.\nPseudo code example:\n\n```\nresponse := GetMonthlyUsageAttribution(start_month)\ncursor
description: "Get monthly usage attribution. Multi-region data is available
starting March 1, 2023.\n\nThis API endpoint is paginated. To make sure you
receive all records, check if the value of `next_record_id` is\nset in the
response. If it is, make another request and pass `next_record_id` as a parameter.\nPseudo
code example:\n\n```\nresponse := GetMonthlyUsageAttribution(start_month)\ncursor
:= response.metadata.pagination.next_record_id\nWHILE cursor != null BEGIN\n
\ sleep(5 seconds) # Avoid running into rate limit\n response := GetMonthlyUsageAttribution(start_month,
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```"
Expand Down
4 changes: 2 additions & 2 deletions packages/datadog-api-client-v1/apis/UsageMeteringApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5153,7 +5153,7 @@ export class UsageMeteringApi {
}

/**
* Get hourly usage attribution.
* Get hourly usage attribution. Multi-region data is available starting March 1, 2023.
*
* This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is
* set in the response. If it is, make another request and pass `next_record_id` as a parameter.
Expand Down Expand Up @@ -5269,7 +5269,7 @@ export class UsageMeteringApi {
}

/**
* Get monthly usage attribution.
* Get monthly usage attribution. Multi-region data is available starting March 1, 2023.
*
* This API endpoint is paginated. To make sure you receive all records, check if the value of `next_record_id` is
* set in the response. If it is, make another request and pass `next_record_id` as a parameter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export class HourlyUsageAttributionBody {
* The organization public ID.
*/
"publicId"?: string;
/**
* The region of the Datadog instance that the organization belongs to.
*/
"region"?: string;
/**
* The source of the usage attribution tag configuration and the selected tags in the format of `<source_org_name>:::<selected tag 1>///<selected tag 2>///<selected tag 3>`.
*/
Expand Down Expand Up @@ -70,6 +74,10 @@ export class HourlyUsageAttributionBody {
baseName: "public_id",
type: "string",
},
region: {
baseName: "region",
type: "string",
},
tagConfigSource: {
baseName: "tag_config_source",
type: "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export class MonthlyUsageAttributionBody {
* The organization public ID.
*/
"publicId"?: string;
/**
* The region of the Datadog instance that the organization belongs to.
*/
"region"?: string;
/**
* The source of the usage attribution tag configuration and the selected tags in the format `<source_org_name>:::<selected tag 1>///<selected tag 2>///<selected tag 3>`.
*/
Expand Down Expand Up @@ -66,6 +70,10 @@ export class MonthlyUsageAttributionBody {
baseName: "public_id",
type: "string",
},
region: {
baseName: "region",
type: "string",
},
tagConfigSource: {
baseName: "tag_config_source",
type: "string",
Expand Down

0 comments on commit aa3a052

Please sign in to comment.