Skip to content

Commit 490ca5c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 96ad4d7 of spec repo
1 parent b481b06 commit 490ca5c

12 files changed

+48
-101
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2782,6 +2782,7 @@ components:
27822782
peer_tags:
27832783
description: Tags to query for a specific downstream entity (peer.service, peer.db_instance, peer.s3, peer.s3.bucket, etc.).
27842784
items:
2785+
description: A tag identifying a specific downstream entity (e.g. peer.service, peer.db_instance).
27852786
example: "peer.service:my-service"
27862787
type: string
27872788
type: array
@@ -6647,6 +6648,7 @@ components:
66476648
sources:
66486649
additionalProperties:
66496650
items:
6651+
description: A fallback source attribute name.
66506652
type: string
66516653
type: array
66526654
description: Fallback sources used to populate value of field.
@@ -6695,6 +6697,7 @@ components:
66956697
description: Optional list of profiles to modify the schema.
66966698
example: ["security_control", "host"]
66976699
items:
6700+
description: A profile name that modifies the schema behavior.
66986701
type: string
66996702
type: array
67006703
schema_type:
@@ -7730,25 +7733,13 @@ components:
77307733
- L2NORM
77317734
- PERCENTILE
77327735
- STDDEV
7733-
MonitorFormulaAndFunctionCostDataSource:
7734-
description: Data source for cost queries.
7735-
enum:
7736-
- metrics
7737-
- cloud_cost
7738-
- datadog_usage
7739-
example: "cloud_cost"
7740-
type: string
7741-
x-enum-varnames:
7742-
- METRICS
7743-
- CLOUD_COST
7744-
- DATADOG_USAGE
77457736
MonitorFormulaAndFunctionCostQueryDefinition:
77467737
description: A formula and functions cost query.
77477738
properties:
77487739
aggregator:
77497740
$ref: "#/components/schemas/MonitorFormulaAndFunctionCostAggregator"
77507741
data_source:
7751-
$ref: "#/components/schemas/MonitorFormulaAndFunctionCostDataSource"
7742+
$ref: "#/components/schemas/MonitorFormulaAndFunctionMetricsDataSource"
77527743
name:
77537744
description: Name of the query for use in formulas.
77547745
example: "query1"
@@ -7808,6 +7799,7 @@ components:
78087799
description: Columns to group results by.
78097800
example: ["col1", "col2"]
78107801
items:
7802+
description: A column name to group results by.
78117803
type: string
78127804
type: array
78137805
model_type_override:
@@ -7827,6 +7819,7 @@ components:
78277819
description: Optional grouping fields for aggregation.
78287820
example: ["entity_id"]
78297821
items:
7822+
description: A field name to group results by.
78307823
type: string
78317824
type: array
78327825
measure:
@@ -11161,8 +11154,10 @@ components:
1116111154
description: Product Analytics audience account subquery.
1116211155
properties:
1116311156
name:
11157+
description: The name of the account subquery.
1116411158
type: string
1116511159
query:
11160+
description: The query string for the account subquery.
1116611161
type: string
1116711162
type: object
1116811163
ProductAnalyticsAudienceFilters:
@@ -11173,6 +11168,7 @@ components:
1117311168
$ref: "#/components/schemas/ProductAnalyticsAudienceAccountSubquery"
1117411169
type: array
1117511170
filter_condition:
11171+
description: An optional filter condition applied to the audience subquery.
1117611172
type: string
1117711173
segments:
1117811174
items:
@@ -11184,26 +11180,33 @@ components:
1118411180
type: array
1118511181
type: object
1118611182
ProductAnalyticsAudienceOccurrenceFilter:
11183+
description: Filter applied to occurrence counts when building a Product Analytics audience.
1118711184
properties:
1118811185
operator:
11186+
description: The comparison operator used for the occurrence filter (e.g. `gt`, `lt`, `eq`).
1118911187
type: string
1119011188
value:
11189+
description: The threshold value to compare occurrence counts against.
1119111190
type: string
1119211191
type: object
1119311192
ProductAnalyticsAudienceSegmentSubquery:
1119411193
description: Product Analytics audience segment subquery.
1119511194
properties:
1119611195
name:
11196+
description: The name of the segment subquery.
1119711197
type: string
1119811198
segment_id:
11199+
description: The unique identifier of the segment.
1119911200
type: string
1120011201
type: object
1120111202
ProductAnalyticsAudienceUserSubquery:
1120211203
description: Product Analytics audience user subquery.
1120311204
properties:
1120411205
name:
11206+
description: The name of the user subquery.
1120511207
type: string
1120611208
query:
11209+
description: The query string for the user subquery.
1120711210
type: string
1120811211
type: object
1120911212
QuerySortOrder:
@@ -11772,6 +11775,7 @@ components:
1177211775
- $ref: "#/components/schemas/SLOCountDefinitionWithBadEventsFormula"
1177311776
SLOCountDefinitionWithBadEventsFormula:
1177411777
additionalProperties: false
11778+
description: SLO count definition using a bad events formula alongside a good events formula.
1177511779
properties:
1177611780
bad_events_formula:
1177711781
$ref: "#/components/schemas/SLOFormula"
@@ -11798,6 +11802,7 @@ components:
1179811802
type: object
1179911803
SLOCountDefinitionWithTotalEventsFormula:
1180011804
additionalProperties: false
11805+
description: SLO count definition using a total events formula alongside a good events formula.
1180111806
properties:
1180211807
good_events_formula:
1180311808
$ref: "#/components/schemas/SLOFormula"
@@ -13004,6 +13009,7 @@ components:
1300413009
description: Fields to group by.
1300513010
example: ["source", "destination"]
1300613011
items:
13012+
description: A field name to group by.
1300713013
type: string
1300813014
type: array
1300913015
limit:
@@ -13626,6 +13632,7 @@ components:
1362613632
Always included in service level objective responses (but may be empty).
1362713633
example: ["env:prod", "app:core"]
1362813634
items:
13635+
description: A tag associated with the service level objective.
1362913636
type: string
1363013637
type: array
1363113638
created_at:
@@ -13649,6 +13656,7 @@ components:
1364913656
env_tags:
1365013657
description: Tags with the `env` tag key.
1365113658
items:
13659+
description: A tag with the `env` tag key.
1365213660
type: string
1365313661
type: array
1365413662
groups:
@@ -13693,6 +13701,7 @@ components:
1369313701
service_tags:
1369413702
description: Tags with the `service` tag key.
1369513703
items:
13704+
description: A tag with the `service` tag key.
1369613705
type: string
1369713706
type: array
1369813707
slo_type:
@@ -13702,6 +13711,7 @@ components:
1370213711
team_tags:
1370313712
description: Tags with the `team` tag key.
1370413713
items:
13714+
description: A tag with the `team` tag key.
1370513715
type: string
1370613716
type: array
1370713717
thresholds:
@@ -14712,6 +14722,7 @@ components:
1471214722
description: The tag values.
1471314723
example: ["env"]
1471414724
items:
14725+
description: A tag value string.
1471514726
minLength: 1
1471614727
type: string
1471714728
type: array
@@ -17989,6 +18000,7 @@ components:
1798918000
blockedRequestPatterns:
1799018001
description: Array of URL patterns to block.
1799118002
items:
18003+
description: A URL pattern to block during the Synthetic test.
1799218004
type: string
1799318005
type: array
1799418006
checkCertificateRevocation:

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"

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
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public ProductAnalyticsAudienceAccountSubquery name(String name) {
3737
}
3838

3939
/**
40-
* Getname
40+
* The name of the account subquery.
4141
*
4242
* @return name
4343
*/
@@ -58,7 +58,7 @@ public ProductAnalyticsAudienceAccountSubquery query(String query) {
5858
}
5959

6060
/**
61-
* Getquery
61+
* The query string for the account subquery.
6262
*
6363
* @return query
6464
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public ProductAnalyticsAudienceFilters filterCondition(String filterCondition) {
8282
}
8383

8484
/**
85-
* GetfilterCondition
85+
* An optional filter condition applied to the audience subquery.
8686
*
8787
* @return filterCondition
8888
*/

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.Objects;
1818

19-
/** */
19+
/** Filter applied to occurrence counts when building a Product Analytics audience. */
2020
@JsonPropertyOrder({
2121
ProductAnalyticsAudienceOccurrenceFilter.JSON_PROPERTY_OPERATOR,
2222
ProductAnalyticsAudienceOccurrenceFilter.JSON_PROPERTY_VALUE
@@ -37,7 +37,8 @@ public ProductAnalyticsAudienceOccurrenceFilter operator(String operator) {
3737
}
3838

3939
/**
40-
* Getoperator
40+
* The comparison operator used for the occurrence filter (e.g. <code>gt</code>, <code>lt</code>,
41+
* <code>eq</code>).
4142
*
4243
* @return operator
4344
*/
@@ -58,7 +59,7 @@ public ProductAnalyticsAudienceOccurrenceFilter value(String value) {
5859
}
5960

6061
/**
61-
* Getvalue
62+
* The threshold value to compare occurrence counts against.
6263
*
6364
* @return value
6465
*/

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public ProductAnalyticsAudienceSegmentSubquery name(String name) {
3737
}
3838

3939
/**
40-
* Getname
40+
* The name of the segment subquery.
4141
*
4242
* @return name
4343
*/
@@ -58,7 +58,7 @@ public ProductAnalyticsAudienceSegmentSubquery segmentId(String segmentId) {
5858
}
5959

6060
/**
61-
* GetsegmentId
61+
* The unique identifier of the segment.
6262
*
6363
* @return segmentId
6464
*/

0 commit comments

Comments
 (0)