Skip to content

Commit c5b78e2

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f9205865 of spec repo
1 parent 5b2df0b commit c5b78e2

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-02-14 15:03:35.352599",
8-
"spec_repo_commit": "a739b49f"
7+
"regenerated": "2025-02-18 09:41:15.756893",
8+
"spec_repo_commit": "f9205865"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-14 15:03:35.368038",
13-
"spec_repo_commit": "a739b49f"
12+
"regenerated": "2025-02-18 09:41:15.773028",
13+
"spec_repo_commit": "f9205865"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6688,6 +6688,11 @@ components:
66886688
Monitor:
66896689
description: Object describing a monitor.
66906690
properties:
6691+
classification:
6692+
description: The classification of the monitor.
6693+
example: log
6694+
readOnly: true
6695+
type: string
66916696
created:
66926697
description: Timestamp of the monitor creation.
66936698
format: date-time

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
/** Object describing a monitor. */
2525
@JsonPropertyOrder({
26+
Monitor.JSON_PROPERTY_CLASSIFICATION,
2627
Monitor.JSON_PROPERTY_CREATED,
2728
Monitor.JSON_PROPERTY_CREATOR,
2829
Monitor.JSON_PROPERTY_DELETED,
@@ -45,6 +46,9 @@
4546
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
4647
public class Monitor {
4748
@JsonIgnore public boolean unparsed = false;
49+
public static final String JSON_PROPERTY_CLASSIFICATION = "classification";
50+
private String classification;
51+
4852
public static final String JSON_PROPERTY_CREATED = "created";
4953
private OffsetDateTime created;
5054

@@ -107,6 +111,18 @@ public Monitor(
107111
this.unparsed |= !type.isValid();
108112
}
109113

114+
/**
115+
* The classification of the monitor.
116+
*
117+
* @return classification
118+
*/
119+
@jakarta.annotation.Nullable
120+
@JsonProperty(JSON_PROPERTY_CLASSIFICATION)
121+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122+
public String getClassification() {
123+
return classification;
124+
}
125+
110126
/**
111127
* Timestamp of the monitor creation.
112128
*
@@ -525,7 +541,8 @@ public boolean equals(Object o) {
525541
return false;
526542
}
527543
Monitor monitor = (Monitor) o;
528-
return Objects.equals(this.created, monitor.created)
544+
return Objects.equals(this.classification, monitor.classification)
545+
&& Objects.equals(this.created, monitor.created)
529546
&& Objects.equals(this.creator, monitor.creator)
530547
&& Objects.equals(this.deleted, monitor.deleted)
531548
&& Objects.equals(this.id, monitor.id)
@@ -548,6 +565,7 @@ public boolean equals(Object o) {
548565
@Override
549566
public int hashCode() {
550567
return Objects.hash(
568+
classification,
551569
created,
552570
creator,
553571
deleted,
@@ -572,6 +590,7 @@ public int hashCode() {
572590
public String toString() {
573591
StringBuilder sb = new StringBuilder();
574592
sb.append("class Monitor {\n");
593+
sb.append(" classification: ").append(toIndentedString(classification)).append("\n");
575594
sb.append(" created: ").append(toIndentedString(created)).append("\n");
576595
sb.append(" creator: ").append(toIndentedString(creator)).append("\n");
577596
sb.append(" deleted: ").append(toIndentedString(deleted)).append("\n");

0 commit comments

Comments
 (0)