Skip to content

Commit 1587263

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6be449b of spec repo
1 parent 828a55f commit 1587263

3 files changed

Lines changed: 215 additions & 4 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5991,6 +5991,10 @@ components:
59915991
type: array
59925992
data_source:
59935993
$ref: "#/components/schemas/ListStreamSource"
5994+
env:
5995+
description: Filter by APM environment. Usable only with `apm_recommendations_stream`.
5996+
example: "staging"
5997+
type: string
59945998
event_size:
59955999
$ref: "#/components/schemas/WidgetEventSize"
59966000
group_by:
@@ -6011,13 +6015,31 @@ components:
60116015
description: Widget query.
60126016
example: "@service:app"
60136017
type: string
6018+
recommendation_types:
6019+
description: Filter by recommendation types. Usable only with `apm_recommendations_stream`.
6020+
items:
6021+
description: Recommendation type.
6022+
type: string
6023+
type: array
6024+
services:
6025+
description: Filter by service names. Usable only with `apm_recommendations_stream`.
6026+
items:
6027+
description: Service name.
6028+
type: string
6029+
type: array
60146030
sort:
60156031
$ref: "#/components/schemas/WidgetFieldSort"
60166032
states:
60176033
description: Filter by issue states. Usable only with `issue_stream`.
60186034
items:
60196035
$ref: "#/components/schemas/ListStreamIssueState"
60206036
type: array
6037+
statuses:
6038+
description: Filter by recommendation statuses. Usable only with `apm_recommendations_stream`.
6039+
items:
6040+
description: Recommendation status.
6041+
type: string
6042+
type: array
60216043
storage:
60226044
description: Option for storage location. Feature in Private Beta.
60236045
example: "indexes"
@@ -6034,6 +6056,12 @@ components:
60346056
description: Team handle.
60356057
type: string
60366058
type: array
6059+
teams:
6060+
description: Filter by team handles. Usable only with `apm_recommendations_stream`.
6061+
items:
6062+
description: Team handle.
6063+
type: string
6064+
type: array
60376065
version:
60386066
$ref: "#/components/schemas/ListStreamQueryVersion"
60396067
required:
@@ -6059,7 +6087,7 @@ components:
60596087
- EVENT_LIST
60606088
ListStreamSource:
60616089
default: logs_stream
6062-
description: Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead.
6090+
description: Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead. apm_recommendations_stream is used to query APM recommendations, and supports filtering by environment, services, teams, recommendation types, and status.
60636091
enum:
60646092
- logs_stream
60656093
- audit_stream
@@ -6078,6 +6106,7 @@ components:
60786106
- security_runtime_stream
60796107
- security_signals_stream
60806108
- incidents_stream
6109+
- apm_recommendations_stream
60816110
example: logs_stream
60826111
type: string
60836112
x-enum-varnames:
@@ -6098,6 +6127,7 @@ components:
60986127
- SECURITY_RUNTIME_STREAM
60996128
- SECURITY_SIGNALS_STREAM
61006129
- INCIDENTS_STREAM
6130+
- APM_RECOMMENDATIONS_STREAM
61016131
ListStreamWidgetDefinition:
61026132
description: |-
61036133
The list stream visualization displays a table of recent events in your application that

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

Lines changed: 177 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,21 @@
2525
ListStreamQuery.JSON_PROPERTY_CLUSTERING_PATTERN_FIELD_PATH,
2626
ListStreamQuery.JSON_PROPERTY_COMPUTE,
2727
ListStreamQuery.JSON_PROPERTY_DATA_SOURCE,
28+
ListStreamQuery.JSON_PROPERTY_ENV,
2829
ListStreamQuery.JSON_PROPERTY_EVENT_SIZE,
2930
ListStreamQuery.JSON_PROPERTY_GROUP_BY,
3031
ListStreamQuery.JSON_PROPERTY_INDEXES,
3132
ListStreamQuery.JSON_PROPERTY_PERSONA,
3233
ListStreamQuery.JSON_PROPERTY_QUERY_STRING,
34+
ListStreamQuery.JSON_PROPERTY_RECOMMENDATION_TYPES,
35+
ListStreamQuery.JSON_PROPERTY_SERVICES,
3336
ListStreamQuery.JSON_PROPERTY_SORT,
3437
ListStreamQuery.JSON_PROPERTY_STATES,
38+
ListStreamQuery.JSON_PROPERTY_STATUSES,
3539
ListStreamQuery.JSON_PROPERTY_STORAGE,
3640
ListStreamQuery.JSON_PROPERTY_SUSPECTED_CAUSES,
3741
ListStreamQuery.JSON_PROPERTY_TEAM_HANDLES,
42+
ListStreamQuery.JSON_PROPERTY_TEAMS,
3843
ListStreamQuery.JSON_PROPERTY_VERSION
3944
})
4045
@jakarta.annotation.Generated(
@@ -54,6 +59,9 @@ public class ListStreamQuery {
5459
public static final String JSON_PROPERTY_DATA_SOURCE = "data_source";
5560
private ListStreamSource dataSource = ListStreamSource.LOGS_STREAM;
5661

62+
public static final String JSON_PROPERTY_ENV = "env";
63+
private String env;
64+
5765
public static final String JSON_PROPERTY_EVENT_SIZE = "event_size";
5866
private WidgetEventSize eventSize;
5967

@@ -69,12 +77,21 @@ public class ListStreamQuery {
6977
public static final String JSON_PROPERTY_QUERY_STRING = "query_string";
7078
private String queryString;
7179

80+
public static final String JSON_PROPERTY_RECOMMENDATION_TYPES = "recommendation_types";
81+
private List<String> recommendationTypes = null;
82+
83+
public static final String JSON_PROPERTY_SERVICES = "services";
84+
private List<String> services = null;
85+
7286
public static final String JSON_PROPERTY_SORT = "sort";
7387
private WidgetFieldSort sort;
7488

7589
public static final String JSON_PROPERTY_STATES = "states";
7690
private List<ListStreamIssueState> states = null;
7791

92+
public static final String JSON_PROPERTY_STATUSES = "statuses";
93+
private List<String> statuses = null;
94+
7895
public static final String JSON_PROPERTY_STORAGE = "storage";
7996
private String storage;
8097

@@ -84,6 +101,9 @@ public class ListStreamQuery {
84101
public static final String JSON_PROPERTY_TEAM_HANDLES = "team_handles";
85102
private List<String> teamHandles = null;
86103

104+
public static final String JSON_PROPERTY_TEAMS = "teams";
105+
private List<String> teams = null;
106+
87107
public static final String JSON_PROPERTY_VERSION = "version";
88108
private ListStreamQueryVersion version;
89109

@@ -197,7 +217,9 @@ public ListStreamQuery dataSource(ListStreamSource dataSource) {
197217

198218
/**
199219
* Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream,
200-
* and logs_issue_stream are deprecated. Use issue_stream instead.
220+
* and logs_issue_stream are deprecated. Use issue_stream instead. apm_recommendations_stream is
221+
* used to query APM recommendations, and supports filtering by environment, services, teams,
222+
* recommendation types, and status.
201223
*
202224
* @return dataSource
203225
*/
@@ -214,6 +236,27 @@ public void setDataSource(ListStreamSource dataSource) {
214236
this.dataSource = dataSource;
215237
}
216238

239+
public ListStreamQuery env(String env) {
240+
this.env = env;
241+
return this;
242+
}
243+
244+
/**
245+
* Filter by APM environment. Usable only with <code>apm_recommendations_stream</code>.
246+
*
247+
* @return env
248+
*/
249+
@jakarta.annotation.Nullable
250+
@JsonProperty(JSON_PROPERTY_ENV)
251+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
252+
public String getEnv() {
253+
return env;
254+
}
255+
256+
public void setEnv(String env) {
257+
this.env = env;
258+
}
259+
217260
public ListStreamQuery eventSize(WidgetEventSize eventSize) {
218261
this.eventSize = eventSize;
219262
this.unparsed |= !eventSize.isValid();
@@ -355,6 +398,64 @@ public void setQueryString(String queryString) {
355398
this.queryString = queryString;
356399
}
357400

401+
public ListStreamQuery recommendationTypes(List<String> recommendationTypes) {
402+
this.recommendationTypes = recommendationTypes;
403+
return this;
404+
}
405+
406+
public ListStreamQuery addRecommendationTypesItem(String recommendationTypesItem) {
407+
if (this.recommendationTypes == null) {
408+
this.recommendationTypes = new ArrayList<>();
409+
}
410+
this.recommendationTypes.add(recommendationTypesItem);
411+
return this;
412+
}
413+
414+
/**
415+
* Filter by recommendation types. Usable only with <code>apm_recommendations_stream</code>.
416+
*
417+
* @return recommendationTypes
418+
*/
419+
@jakarta.annotation.Nullable
420+
@JsonProperty(JSON_PROPERTY_RECOMMENDATION_TYPES)
421+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
422+
public List<String> getRecommendationTypes() {
423+
return recommendationTypes;
424+
}
425+
426+
public void setRecommendationTypes(List<String> recommendationTypes) {
427+
this.recommendationTypes = recommendationTypes;
428+
}
429+
430+
public ListStreamQuery services(List<String> services) {
431+
this.services = services;
432+
return this;
433+
}
434+
435+
public ListStreamQuery addServicesItem(String servicesItem) {
436+
if (this.services == null) {
437+
this.services = new ArrayList<>();
438+
}
439+
this.services.add(servicesItem);
440+
return this;
441+
}
442+
443+
/**
444+
* Filter by service names. Usable only with <code>apm_recommendations_stream</code>.
445+
*
446+
* @return services
447+
*/
448+
@jakarta.annotation.Nullable
449+
@JsonProperty(JSON_PROPERTY_SERVICES)
450+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
451+
public List<String> getServices() {
452+
return services;
453+
}
454+
455+
public void setServices(List<String> services) {
456+
this.services = services;
457+
}
458+
358459
public ListStreamQuery sort(WidgetFieldSort sort) {
359460
this.sort = sort;
360461
this.unparsed |= sort.unparsed;
@@ -410,6 +511,35 @@ public void setStates(List<ListStreamIssueState> states) {
410511
this.states = states;
411512
}
412513

514+
public ListStreamQuery statuses(List<String> statuses) {
515+
this.statuses = statuses;
516+
return this;
517+
}
518+
519+
public ListStreamQuery addStatusesItem(String statusesItem) {
520+
if (this.statuses == null) {
521+
this.statuses = new ArrayList<>();
522+
}
523+
this.statuses.add(statusesItem);
524+
return this;
525+
}
526+
527+
/**
528+
* Filter by recommendation statuses. Usable only with <code>apm_recommendations_stream</code>.
529+
*
530+
* @return statuses
531+
*/
532+
@jakarta.annotation.Nullable
533+
@JsonProperty(JSON_PROPERTY_STATUSES)
534+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
535+
public List<String> getStatuses() {
536+
return statuses;
537+
}
538+
539+
public void setStatuses(List<String> statuses) {
540+
this.statuses = statuses;
541+
}
542+
413543
public ListStreamQuery storage(String storage) {
414544
this.storage = storage;
415545
return this;
@@ -489,6 +619,35 @@ public void setTeamHandles(List<String> teamHandles) {
489619
this.teamHandles = teamHandles;
490620
}
491621

622+
public ListStreamQuery teams(List<String> teams) {
623+
this.teams = teams;
624+
return this;
625+
}
626+
627+
public ListStreamQuery addTeamsItem(String teamsItem) {
628+
if (this.teams == null) {
629+
this.teams = new ArrayList<>();
630+
}
631+
this.teams.add(teamsItem);
632+
return this;
633+
}
634+
635+
/**
636+
* Filter by team handles. Usable only with <code>apm_recommendations_stream</code>.
637+
*
638+
* @return teams
639+
*/
640+
@jakarta.annotation.Nullable
641+
@JsonProperty(JSON_PROPERTY_TEAMS)
642+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
643+
public List<String> getTeams() {
644+
return teams;
645+
}
646+
647+
public void setTeams(List<String> teams) {
648+
this.teams = teams;
649+
}
650+
492651
public ListStreamQuery version(ListStreamQueryVersion version) {
493652
this.version = version;
494653
this.unparsed |= !version.isValid();
@@ -577,16 +736,21 @@ public boolean equals(Object o) {
577736
this.clusteringPatternFieldPath, listStreamQuery.clusteringPatternFieldPath)
578737
&& Objects.equals(this.compute, listStreamQuery.compute)
579738
&& Objects.equals(this.dataSource, listStreamQuery.dataSource)
739+
&& Objects.equals(this.env, listStreamQuery.env)
580740
&& Objects.equals(this.eventSize, listStreamQuery.eventSize)
581741
&& Objects.equals(this.groupBy, listStreamQuery.groupBy)
582742
&& Objects.equals(this.indexes, listStreamQuery.indexes)
583743
&& Objects.equals(this.persona, listStreamQuery.persona)
584744
&& Objects.equals(this.queryString, listStreamQuery.queryString)
745+
&& Objects.equals(this.recommendationTypes, listStreamQuery.recommendationTypes)
746+
&& Objects.equals(this.services, listStreamQuery.services)
585747
&& Objects.equals(this.sort, listStreamQuery.sort)
586748
&& Objects.equals(this.states, listStreamQuery.states)
749+
&& Objects.equals(this.statuses, listStreamQuery.statuses)
587750
&& Objects.equals(this.storage, listStreamQuery.storage)
588751
&& Objects.equals(this.suspectedCauses, listStreamQuery.suspectedCauses)
589752
&& Objects.equals(this.teamHandles, listStreamQuery.teamHandles)
753+
&& Objects.equals(this.teams, listStreamQuery.teams)
590754
&& Objects.equals(this.version, listStreamQuery.version)
591755
&& Objects.equals(this.additionalProperties, listStreamQuery.additionalProperties);
592756
}
@@ -598,16 +762,21 @@ public int hashCode() {
598762
clusteringPatternFieldPath,
599763
compute,
600764
dataSource,
765+
env,
601766
eventSize,
602767
groupBy,
603768
indexes,
604769
persona,
605770
queryString,
771+
recommendationTypes,
772+
services,
606773
sort,
607774
states,
775+
statuses,
608776
storage,
609777
suspectedCauses,
610778
teamHandles,
779+
teams,
611780
version,
612781
additionalProperties);
613782
}
@@ -622,16 +791,23 @@ public String toString() {
622791
.append("\n");
623792
sb.append(" compute: ").append(toIndentedString(compute)).append("\n");
624793
sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n");
794+
sb.append(" env: ").append(toIndentedString(env)).append("\n");
625795
sb.append(" eventSize: ").append(toIndentedString(eventSize)).append("\n");
626796
sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n");
627797
sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n");
628798
sb.append(" persona: ").append(toIndentedString(persona)).append("\n");
629799
sb.append(" queryString: ").append(toIndentedString(queryString)).append("\n");
800+
sb.append(" recommendationTypes: ")
801+
.append(toIndentedString(recommendationTypes))
802+
.append("\n");
803+
sb.append(" services: ").append(toIndentedString(services)).append("\n");
630804
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
631805
sb.append(" states: ").append(toIndentedString(states)).append("\n");
806+
sb.append(" statuses: ").append(toIndentedString(statuses)).append("\n");
632807
sb.append(" storage: ").append(toIndentedString(storage)).append("\n");
633808
sb.append(" suspectedCauses: ").append(toIndentedString(suspectedCauses)).append("\n");
634809
sb.append(" teamHandles: ").append(toIndentedString(teamHandles)).append("\n");
810+
sb.append(" teams: ").append(toIndentedString(teams)).append("\n");
635811
sb.append(" version: ").append(toIndentedString(version)).append("\n");
636812
sb.append(" additionalProperties: ")
637813
.append(toIndentedString(additionalProperties))

0 commit comments

Comments
 (0)