Skip to content

Commit c044fb5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 155e542 of spec repo
1 parent 8aec44e commit c044fb5

20 files changed

+41
-1643
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8024,25 +8024,13 @@ components:
80248024
- L2NORM
80258025
- PERCENTILE
80268026
- STDDEV
8027-
MonitorFormulaAndFunctionCostDataSource:
8028-
description: Data source for cost queries.
8029-
enum:
8030-
- metrics
8031-
- cloud_cost
8032-
- datadog_usage
8033-
example: cloud_cost
8034-
type: string
8035-
x-enum-varnames:
8036-
- METRICS
8037-
- CLOUD_COST
8038-
- DATADOG_USAGE
80398027
MonitorFormulaAndFunctionCostQueryDefinition:
80408028
description: A formula and functions cost query.
80418029
properties:
80428030
aggregator:
80438031
$ref: '#/components/schemas/MonitorFormulaAndFunctionCostAggregator'
80448032
data_source:
8045-
$ref: '#/components/schemas/MonitorFormulaAndFunctionCostDataSource'
8033+
$ref: '#/components/schemas/MonitorFormulaAndFunctionMetricsDataSource'
80468034
name:
80478035
description: Name of the query for use in formulas.
80488036
example: query1

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -7475,89 +7475,23 @@ components:
74757475
properties:
74767476
data:
74777477
items:
7478-
$ref: '#/components/schemas/TableRowResourceIdentifier'
7478+
$ref: '#/components/schemas/BatchDeleteRowsRequestData'
74797479
maxItems: 200
74807480
type: array
74817481
required:
74827482
- data
74837483
type: object
7484-
BatchRowsQueryDataType:
7485-
default: reference-tables-batch-rows-query
7486-
description: Resource type identifier for batch queries of reference table rows.
7487-
enum:
7488-
- reference-tables-batch-rows-query
7489-
example: reference-tables-batch-rows-query
7490-
type: string
7491-
x-enum-varnames:
7492-
- REFERENCE_TABLES_BATCH_ROWS_QUERY
7493-
BatchRowsQueryRequest:
7494-
properties:
7495-
data:
7496-
$ref: '#/components/schemas/BatchRowsQueryRequestData'
7497-
type: object
7498-
BatchRowsQueryRequestData:
7499-
properties:
7500-
attributes:
7501-
$ref: '#/components/schemas/BatchRowsQueryRequestDataAttributes'
7502-
type:
7503-
$ref: '#/components/schemas/BatchRowsQueryDataType'
7504-
required:
7505-
- type
7506-
type: object
7507-
BatchRowsQueryRequestDataAttributes:
7508-
properties:
7509-
row_ids:
7510-
example:
7511-
- row_id_1
7512-
- row_id_2
7513-
items:
7514-
type: string
7515-
type: array
7516-
table_id:
7517-
example: 00000000-0000-0000-0000-000000000000
7518-
type: string
7519-
required:
7520-
- row_ids
7521-
- table_id
7522-
type: object
7523-
BatchRowsQueryResponse:
7524-
example:
7525-
data:
7526-
id: 00000000-0000-0000-0000-000000000000
7527-
relationships:
7528-
rows:
7529-
data:
7530-
- id: row_id_1
7531-
type: row
7532-
- id: row_id_2
7533-
type: row
7534-
type: reference-tables-batch-rows-query
7535-
properties:
7536-
data:
7537-
$ref: '#/components/schemas/BatchRowsQueryResponseData'
7538-
type: object
7539-
BatchRowsQueryResponseData:
7484+
BatchDeleteRowsRequestData:
7485+
description: Row resource containing a single row identifier for deletion.
75407486
properties:
75417487
id:
7488+
example: primary_key_value
75427489
type: string
7543-
relationships:
7544-
$ref: '#/components/schemas/BatchRowsQueryResponseDataRelationships'
75457490
type:
7546-
$ref: '#/components/schemas/BatchRowsQueryDataType'
7491+
$ref: '#/components/schemas/TableRowResourceDataType'
75477492
required:
75487493
- type
7549-
type: object
7550-
BatchRowsQueryResponseDataRelationships:
7551-
properties:
7552-
rows:
7553-
$ref: '#/components/schemas/BatchRowsQueryResponseDataRelationshipsRows'
7554-
type: object
7555-
BatchRowsQueryResponseDataRelationshipsRows:
7556-
properties:
7557-
data:
7558-
items:
7559-
$ref: '#/components/schemas/TableRowResourceIdentifier'
7560-
type: array
7494+
- id
75617495
type: object
75627496
BatchUpsertRowsRequestArray:
75637497
description: The request body for creating or updating multiple rows into a
@@ -67019,18 +66953,6 @@ components:
6701966953
type: string
6702066954
x-enum-varnames:
6702166955
- ROW
67022-
TableRowResourceIdentifier:
67023-
description: Row resource containing a single row identifier.
67024-
properties:
67025-
id:
67026-
example: primary_key_value
67027-
type: string
67028-
type:
67029-
$ref: '#/components/schemas/TableRowResourceDataType'
67030-
required:
67031-
- type
67032-
- id
67033-
type: object
6703466956
TagsEventAttribute:
6703566957
description: Array of tags associated with your event.
6703666958
example:
@@ -96466,57 +96388,6 @@ paths:
9646696388
operator: OR
9646796389
permissions:
9646896390
- timeseries_query
96469-
/api/v2/reference-tables/queries/batch-rows:
96470-
post:
96471-
description: Batch query reference table rows by their primary key values. Returns
96472-
only found rows in the included array.
96473-
operationId: BatchRowsQuery
96474-
requestBody:
96475-
content:
96476-
application/json:
96477-
examples:
96478-
happy_path:
96479-
summary: Batch query reference table rows by their primary key values.
96480-
value:
96481-
data:
96482-
attributes:
96483-
row_ids:
96484-
- row_id_1
96485-
- row_id_2
96486-
table_id: 00000000-0000-0000-0000-000000000000
96487-
type: reference-tables-batch-rows-query
96488-
schema:
96489-
$ref: '#/components/schemas/BatchRowsQueryRequest'
96490-
required: true
96491-
responses:
96492-
'200':
96493-
content:
96494-
application/json:
96495-
schema:
96496-
$ref: '#/components/schemas/BatchRowsQueryResponse'
96497-
description: Successfully retrieved rows. Some or all requested rows were
96498-
found. Response includes found rows in the included section.
96499-
'400':
96500-
$ref: '#/components/responses/BadRequestResponse'
96501-
'403':
96502-
$ref: '#/components/responses/ForbiddenResponse'
96503-
'404':
96504-
$ref: '#/components/responses/NotFoundResponse'
96505-
'429':
96506-
$ref: '#/components/responses/TooManyRequestsResponse'
96507-
'500':
96508-
content:
96509-
application/json:
96510-
schema:
96511-
$ref: '#/components/schemas/APIErrorResponse'
96512-
description: Internal Server Error
96513-
security:
96514-
- apiKeyAuth: []
96515-
appKeyAuth: []
96516-
- AuthZ: []
96517-
summary: Batch rows query
96518-
tags:
96519-
- Reference Tables
9652096391
/api/v2/reference-tables/tables:
9652196392
get:
9652296393
description: List all reference tables in this organization.

examples/v1/monitors/CreateMonitor_1303514967.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import com.datadog.api.client.v1.api.MonitorsApi;
66
import com.datadog.api.client.v1.model.Monitor;
77
import com.datadog.api.client.v1.model.MonitorFormulaAndFunctionCostAggregator;
8-
import com.datadog.api.client.v1.model.MonitorFormulaAndFunctionCostDataSource;
98
import com.datadog.api.client.v1.model.MonitorFormulaAndFunctionCostQueryDefinition;
9+
import com.datadog.api.client.v1.model.MonitorFormulaAndFunctionMetricsDataSource;
1010
import com.datadog.api.client.v1.model.MonitorFormulaAndFunctionQueryDefinition;
1111
import com.datadog.api.client.v1.model.MonitorOptions;
1212
import com.datadog.api.client.v1.model.MonitorThresholds;
@@ -37,7 +37,8 @@ public static void main(String[] args) {
3737
Collections.singletonList(
3838
new MonitorFormulaAndFunctionQueryDefinition(
3939
new MonitorFormulaAndFunctionCostQueryDefinition()
40-
.dataSource(MonitorFormulaAndFunctionCostDataSource.CLOUD_COST)
40+
.dataSource(
41+
MonitorFormulaAndFunctionMetricsDataSource.CLOUD_COST)
4142
.query(
4243
"sum:aws.cost.net.amortized.shared.resources.allocated{aws_product"
4344
+ " IN (amplify ,athena, backup, bedrock ) } by"

examples/v2/reference-tables/BatchRowsQuery.java

Lines changed: 0 additions & 41 deletions
This file was deleted.

examples/v2/reference-tables/DeleteRows.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import com.datadog.api.client.ApiException;
55
import com.datadog.api.client.v2.api.ReferenceTablesApi;
66
import com.datadog.api.client.v2.model.BatchDeleteRowsRequestArray;
7+
import com.datadog.api.client.v2.model.BatchDeleteRowsRequestData;
78
import com.datadog.api.client.v2.model.TableRowResourceDataType;
8-
import com.datadog.api.client.v2.model.TableRowResourceIdentifier;
99
import java.util.Collections;
1010

1111
public class Example {
@@ -17,7 +17,7 @@ public static void main(String[] args) {
1717
new BatchDeleteRowsRequestArray()
1818
.data(
1919
Collections.singletonList(
20-
new TableRowResourceIdentifier()
20+
new BatchDeleteRowsRequestData()
2121
.id("primary_key_value")
2222
.type(TableRowResourceDataType.ROW)));
2323

src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionCostDataSource.java

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionCostQueryDefinition.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class MonitorFormulaAndFunctionCostQueryDefinition {
3232
private MonitorFormulaAndFunctionCostAggregator aggregator;
3333

3434
public static final String JSON_PROPERTY_DATA_SOURCE = "data_source";
35-
private MonitorFormulaAndFunctionCostDataSource dataSource;
35+
private MonitorFormulaAndFunctionMetricsDataSource dataSource;
3636

3737
public static final String JSON_PROPERTY_NAME = "name";
3838
private String name;
@@ -45,7 +45,7 @@ public MonitorFormulaAndFunctionCostQueryDefinition() {}
4545
@JsonCreator
4646
public MonitorFormulaAndFunctionCostQueryDefinition(
4747
@JsonProperty(required = true, value = JSON_PROPERTY_DATA_SOURCE)
48-
MonitorFormulaAndFunctionCostDataSource dataSource,
48+
MonitorFormulaAndFunctionMetricsDataSource dataSource,
4949
@JsonProperty(required = true, value = JSON_PROPERTY_NAME) String name,
5050
@JsonProperty(required = true, value = JSON_PROPERTY_QUERY) String query) {
5151
this.dataSource = dataSource;
@@ -81,24 +81,24 @@ public void setAggregator(MonitorFormulaAndFunctionCostAggregator aggregator) {
8181
}
8282

8383
public MonitorFormulaAndFunctionCostQueryDefinition dataSource(
84-
MonitorFormulaAndFunctionCostDataSource dataSource) {
84+
MonitorFormulaAndFunctionMetricsDataSource dataSource) {
8585
this.dataSource = dataSource;
8686
this.unparsed |= !dataSource.isValid();
8787
return this;
8888
}
8989

9090
/**
91-
* Data source for cost queries.
91+
* Data source for metrics queries.
9292
*
9393
* @return dataSource
9494
*/
9595
@JsonProperty(JSON_PROPERTY_DATA_SOURCE)
9696
@JsonInclude(value = JsonInclude.Include.ALWAYS)
97-
public MonitorFormulaAndFunctionCostDataSource getDataSource() {
97+
public MonitorFormulaAndFunctionMetricsDataSource getDataSource() {
9898
return dataSource;
9999
}
100100

101-
public void setDataSource(MonitorFormulaAndFunctionCostDataSource dataSource) {
101+
public void setDataSource(MonitorFormulaAndFunctionMetricsDataSource dataSource) {
102102
if (!dataSource.isValid()) {
103103
this.unparsed = true;
104104
}

0 commit comments

Comments
 (0)