Skip to content

Commit 42d30bc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 940084d of spec repo
1 parent bb8e5d0 commit 42d30bc

3 files changed

Lines changed: 71 additions & 27 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 42 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86782,8 +86782,14 @@ components:
8678286782
$ref: "#/components/schemas/ProductCatalogSKUOnDemandOption"
8678386783
number_of_units_included_in_price:
8678486784
description: |-
86785-
The number of billable usage units included in the price. `0` for SKUs that are not
86786-
priced per unit of usage, such as those whose `pricing_type` is `percent`.
86785+
The number of billable usage units that one unit of price covers. Divide measured
86786+
usage by this value before multiplying by the price, so a SKU priced at `18.00` with
86787+
`number_of_units_included_in_price` of `1` costs `18.00` per host, while a SKU priced
86788+
at `12.00` with `number_of_units_included_in_price` of `10000` costs `12.00` per
86789+
10,000 requests. It is a scaling factor on the price, not a free allotment; included
86790+
quantities are in `allotments`. The same factor applies to the tier prices in
86791+
`on_demand_tiered`. `0` for SKUs that are not priced per unit of usage, such as those
86792+
whose `pricing_type` is `percent`.
8678786793
example: 1
8678886794
format: int64
8678986795
type: integer
@@ -86802,7 +86808,7 @@ components:
8680286808
$ref: "#/components/schemas/ProductCatalogSKUPricingType"
8680386809
sku_name:
8680486810
description: The human-readable name of the SKU.
86805-
example: Infra Pro
86811+
example: Infra Host (Pro)
8680686812
type: string
8680786813
required:
8680886814
- billing_dimension
@@ -186260,7 +186266,10 @@ paths:
186260186266
this endpoint is not paginated.
186261186267
operationId: ListProductCatalogSKUs
186262186268
parameters:
186263-
- description: The version of the product catalog contract to return. `v1` is the latest.
186269+
- description: |-
186270+
The version of the product catalog response contract to return. `v1` is the latest.
186271+
This is independent of the `/api/v2` path segment, which is the version of the
186272+
Datadog API itself.
186264186273
example: v1
186265186274
in: query
186266186275
name: version
@@ -186270,7 +186279,8 @@ paths:
186270186279
- description: |-
186271186280
The date the returned prices, allotments, and pricing tiers are effective as of, in
186272186281
`YYYY-MM-DD` format. Defaults to the date of the request, and must not be later
186273-
than it.
186282+
than it. Set it to a date in a past billing period to reconcile that period against
186283+
the prices that were in effect then, rather than today's.
186274186284
example: "2026-07-01"
186275186285
in: query
186276186286
name: as_of_date
@@ -186329,15 +186339,11 @@ paths:
186329186339
on_demand_list_price: "18.00"
186330186340
on_demand_tiered:
186331186341
pricing_type: usage
186332-
sku_name: Infra Pro
186342+
sku_name: Infra Host (Pro)
186333186343
id: HOSTS-PRO
186334186344
type: Sku
186335186345
- attributes:
186336-
allotments:
186337-
- child_sku_code: SDS
186338-
hourly_quantity: 1
186339-
monthly_quantity: 1
186340-
parent_sku_code: LLM-OBSERVABILITY-MIN-SPEND
186346+
allotments: []
186341186347
billing_dimension: llm_observability_min_spend
186342186348
billing_units: requests
186343186349
currency: USD
@@ -186364,18 +186370,43 @@ paths:
186364186370
"400":
186365186371
content:
186366186372
application/json:
186373+
examples:
186374+
default:
186375+
value:
186376+
errors:
186377+
- detail: as_of_date must not be later than the date of the request
186378+
source:
186379+
parameter: as_of_date
186380+
status: "400"
186381+
title: Bad Request
186367186382
schema:
186368186383
$ref: "#/components/schemas/JSONAPIErrorResponse"
186369186384
description: Bad Request - version is missing or invalid, or as_of_date is malformed or in the future
186370186385
"403":
186371186386
content:
186372186387
application/json:
186388+
examples:
186389+
default:
186390+
value:
186391+
errors:
186392+
- detail: this endpoint requires the billing_read or usage_read permission
186393+
status: "403"
186394+
title: Forbidden
186373186395
schema:
186374186396
$ref: "#/components/schemas/JSONAPIErrorResponse"
186375186397
description: Forbidden - the caller has neither the billing_read nor the usage_read permission
186376186398
"404":
186377186399
content:
186378186400
application/json:
186401+
examples:
186402+
default:
186403+
value:
186404+
errors:
186405+
- detail: the requested product catalog version is not supported
186406+
source:
186407+
parameter: version
186408+
status: "404"
186409+
title: Not Found
186379186410
schema:
186380186411
$ref: "#/components/schemas/JSONAPIErrorResponse"
186381186412
description: Not Found - the requested catalog version is not supported

src/main/java/com/datadog/api/client/v2/api/ProductCatalogApi.java

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public static class ListProductCatalogSKUsOptionalParameters {
5555
*
5656
* @param asOfDate The date the returned prices, allotments, and pricing tiers are effective as
5757
* of, in <code>YYYY-MM-DD</code> format. Defaults to the date of the request, and must not
58-
* be later than it. (optional)
58+
* be later than it. Set it to a date in a past billing period to reconcile that period
59+
* against the prices that were in effect then, rather than today's. (optional)
5960
* @return ListProductCatalogSKUsOptionalParameters
6061
*/
6162
public ListProductCatalogSKUsOptionalParameters asOfDate(OffsetDateTime asOfDate) {
@@ -69,8 +70,9 @@ public ListProductCatalogSKUsOptionalParameters asOfDate(OffsetDateTime asOfDate
6970
*
7071
* <p>See {@link #listProductCatalogSKUsWithHttpInfo}.
7172
*
72-
* @param version The version of the product catalog contract to return. <code>v1</code> is the
73-
* latest. (required)
73+
* @param version The version of the product catalog response contract to return. <code>v1</code>
74+
* is the latest. This is independent of the <code>/api/v2</code> path segment, which is the
75+
* version of the Datadog API itself. (required)
7476
* @return ProductCatalogSKUsResponse
7577
* @throws ApiException if fails to make API call
7678
*/
@@ -86,8 +88,9 @@ version, new ListProductCatalogSKUsOptionalParameters())
8688
*
8789
* <p>See {@link #listProductCatalogSKUsWithHttpInfoAsync}.
8890
*
89-
* @param version The version of the product catalog contract to return. <code>v1</code> is the
90-
* latest. (required)
91+
* @param version The version of the product catalog response contract to return. <code>v1</code>
92+
* is the latest. This is independent of the <code>/api/v2</code> path segment, which is the
93+
* version of the Datadog API itself. (required)
9194
* @return CompletableFuture&lt;ProductCatalogSKUsResponse&gt;
9295
*/
9396
public CompletableFuture<ProductCatalogSKUsResponse> listProductCatalogSKUsAsync(
@@ -105,8 +108,9 @@ version, new ListProductCatalogSKUsOptionalParameters())
105108
*
106109
* <p>See {@link #listProductCatalogSKUsWithHttpInfo}.
107110
*
108-
* @param version The version of the product catalog contract to return. <code>v1</code> is the
109-
* latest. (required)
111+
* @param version The version of the product catalog response contract to return. <code>v1</code>
112+
* is the latest. This is independent of the <code>/api/v2</code> path segment, which is the
113+
* version of the Datadog API itself. (required)
110114
* @param parameters Optional parameters for the request.
111115
* @return ProductCatalogSKUsResponse
112116
* @throws ApiException if fails to make API call
@@ -122,8 +126,9 @@ public ProductCatalogSKUsResponse listProductCatalogSKUs(
122126
*
123127
* <p>See {@link #listProductCatalogSKUsWithHttpInfoAsync}.
124128
*
125-
* @param version The version of the product catalog contract to return. <code>v1</code> is the
126-
* latest. (required)
129+
* @param version The version of the product catalog response contract to return. <code>v1</code>
130+
* is the latest. This is independent of the <code>/api/v2</code> path segment, which is the
131+
* version of the Datadog API itself. (required)
127132
* @param parameters Optional parameters for the request.
128133
* @return CompletableFuture&lt;ProductCatalogSKUsResponse&gt;
129134
*/
@@ -150,8 +155,9 @@ public CompletableFuture<ProductCatalogSKUsResponse> listProductCatalogSKUsAsync
150155
* by that code in ascending order. The whole catalog is returned in a single response, so this
151156
* endpoint is not paginated.
152157
*
153-
* @param version The version of the product catalog contract to return. <code>v1</code> is the
154-
* latest. (required)
158+
* @param version The version of the product catalog response contract to return. <code>v1</code>
159+
* is the latest. This is independent of the <code>/api/v2</code> path segment, which is the
160+
* version of the Datadog API itself. (required)
155161
* @param parameters Optional parameters for the request.
156162
* @return ApiResponse&lt;ProductCatalogSKUsResponse&gt;
157163
* @throws ApiException if fails to make API call
@@ -218,8 +224,9 @@ public ApiResponse<ProductCatalogSKUsResponse> listProductCatalogSKUsWithHttpInf
218224
*
219225
* <p>See {@link #listProductCatalogSKUsWithHttpInfo}.
220226
*
221-
* @param version The version of the product catalog contract to return. <code>v1</code> is the
222-
* latest. (required)
227+
* @param version The version of the product catalog response contract to return. <code>v1</code>
228+
* is the latest. This is independent of the <code>/api/v2</code> path segment, which is the
229+
* version of the Datadog API itself. (required)
223230
* @param parameters Optional parameters for the request.
224231
* @return CompletableFuture&lt;ApiResponse&lt;ProductCatalogSKUsResponse&gt;&gt;
225232
*/

src/main/java/com/datadog/api/client/v2/model/ProductCatalogSKUDataAttributesResponse.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,15 @@ public ProductCatalogSKUDataAttributesResponse numberOfUnitsIncludedInPrice(
243243
}
244244

245245
/**
246-
* The number of billable usage units included in the price. <code>0</code> for SKUs that are not
247-
* priced per unit of usage, such as those whose <code>pricing_type</code> is <code>percent</code>
248-
* .
246+
* The number of billable usage units that one unit of price covers. Divide measured usage by this
247+
* value before multiplying by the price, so a SKU priced at <code>18.00</code> with <code>
248+
* number_of_units_included_in_price</code> of <code>1</code> costs <code>18.00</code> per host,
249+
* while a SKU priced at <code>12.00</code> with <code>number_of_units_included_in_price</code> of
250+
* <code>10000</code> costs <code>12.00</code> per 10,000 requests. It is a scaling factor on the
251+
* price, not a free allotment; included quantities are in <code>allotments</code>. The same
252+
* factor applies to the tier prices in <code>on_demand_tiered</code>. <code>0</code> for SKUs
253+
* that are not priced per unit of usage, such as those whose <code>pricing_type</code> is <code>
254+
* percent</code>.
249255
*
250256
* @return numberOfUnitsIncludedInPrice
251257
*/

0 commit comments

Comments
 (0)