Skip to content

Commit 1d68380

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a9c0eae of spec repo
1 parent 9078846 commit 1d68380

File tree

9 files changed

+206
-25
lines changed

9 files changed

+206
-25
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.4.1.dev11",
7-
"regenerated": "2021-09-03 13:54:25.660852",
8-
"spec_repo_commit": "e9ac191"
7+
"regenerated": "2021-09-03 16:54:36.762424",
8+
"spec_repo_commit": "a9c0eae"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev11",
12-
"regenerated": "2021-09-03 13:55:16.624933",
13-
"spec_repo_commit": "e9ac191"
12+
"regenerated": "2021-09-03 16:55:25.824256",
13+
"spec_repo_commit": "a9c0eae"
1414
}
1515
}
1616
}

api_docs/v1/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ Class | Method | HTTP request | Description
539539
- [SLOHistoryResponse](SLOHistoryResponse.md)
540540
- [SLOHistoryResponseData](SLOHistoryResponseData.md)
541541
- [SLOHistoryResponseError](SLOHistoryResponseError.md)
542+
- [SLOHistoryResponseErrorWithType](SLOHistoryResponseErrorWithType.md)
542543
- [SLOHistorySLIData](SLOHistorySLIData.md)
543544
- [SLOListResponse](SLOListResponse.md)
544545
- [SLOListResponseMetadata](SLOListResponseMetadata.md)

api_docs/v1/SLOHistoryResponseError.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# SLOHistoryResponseError
44

5-
A service level objective response containing the requested history.
5+
A list of errors while querying the history data for the service level objective.
66

77
## Properties
88

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# SLOHistoryResponseErrorWithType
4+
5+
An object describing the error with error type and error message.
6+
7+
## Properties
8+
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**errorMessage** | **String** | A message with more details about the error. |
12+
**errorType** | **String** | Type of the error. |
13+
14+
15+

api_docs/v1/SLOHistorySLIData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ An object that holds an SLI value and its associated data. It can represent an S
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**errorBudgetRemaining** | **Map<String, Double>** | A mapping of threshold `timeframe` to the remaining error budget. | [optional]
12-
**errors** | [**List<SLOHistoryResponseError>**](SLOHistoryResponseError.md) | A list of errors while querying the history data for the service level objective. | [optional]
12+
**errors** | [**List<SLOHistoryResponseErrorWithType>**](SLOHistoryResponseErrorWithType.md) | An array of error objects returned while querying the history data for the service level objective. | [optional]
1313
**group** | **String** | For groups in a grouped SLO, this is the group name. | [optional]
1414
**history** | **List<List<Double>>** | For `monitor` based SLOs, this includes the aggregated history as arrays that include time series and uptime data where `0=monitor` is in `OK` state and `1=monitor` is in `alert` state. | [optional]
1515
**monitorModified** | **Long** | For `monitor` based SLOs, this is the last modified timestamp in epoch seconds of the monitor. | [optional]

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
import io.swagger.annotations.ApiModelProperty;
1919
import java.util.Objects;
2020

21-
/** A service level objective response containing the requested history. */
22-
@ApiModel(description = "A service level objective response containing the requested history.")
21+
/** A list of errors while querying the history data for the service level objective. */
22+
@ApiModel(
23+
description =
24+
"A list of errors while querying the history data for the service level objective.")
2325
@JsonPropertyOrder({SLOHistoryResponseError.JSON_PROPERTY_ERROR})
2426
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
2527
public class SLOHistoryResponseError {
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
/*
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2019-Present Datadog, Inc.
5+
*
6+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7+
* https://openapi-generator.tech
8+
* Do not edit the class manually.
9+
*/
10+
11+
package com.datadog.api.v1.client.model;
12+
13+
import com.fasterxml.jackson.annotation.JsonCreator;
14+
import com.fasterxml.jackson.annotation.JsonIgnore;
15+
import com.fasterxml.jackson.annotation.JsonInclude;
16+
import com.fasterxml.jackson.annotation.JsonProperty;
17+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
18+
import io.swagger.annotations.ApiModel;
19+
import io.swagger.annotations.ApiModelProperty;
20+
import java.util.Objects;
21+
22+
/** An object describing the error with error type and error message. */
23+
@ApiModel(description = "An object describing the error with error type and error message.")
24+
@JsonPropertyOrder({
25+
SLOHistoryResponseErrorWithType.JSON_PROPERTY_ERROR_MESSAGE,
26+
SLOHistoryResponseErrorWithType.JSON_PROPERTY_ERROR_TYPE
27+
})
28+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
29+
public class SLOHistoryResponseErrorWithType {
30+
@JsonIgnore public boolean unparsed = false;
31+
public static final String JSON_PROPERTY_ERROR_MESSAGE = "error_message";
32+
private String errorMessage;
33+
34+
public static final String JSON_PROPERTY_ERROR_TYPE = "error_type";
35+
private String errorType;
36+
37+
public SLOHistoryResponseErrorWithType() {}
38+
39+
@JsonCreator
40+
public SLOHistoryResponseErrorWithType(
41+
@JsonProperty(required = true, value = JSON_PROPERTY_ERROR_MESSAGE) String errorMessage,
42+
@JsonProperty(required = true, value = JSON_PROPERTY_ERROR_TYPE) String errorType) {
43+
this.errorMessage = errorMessage;
44+
this.errorType = errorType;
45+
}
46+
47+
public SLOHistoryResponseErrorWithType errorMessage(String errorMessage) {
48+
this.errorMessage = errorMessage;
49+
return this;
50+
}
51+
52+
/**
53+
* A message with more details about the error.
54+
*
55+
* @return errorMessage
56+
*/
57+
@ApiModelProperty(
58+
example = "",
59+
required = true,
60+
value = "A message with more details about the error.")
61+
@JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
62+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
63+
public String getErrorMessage() {
64+
return errorMessage;
65+
}
66+
67+
public void setErrorMessage(String errorMessage) {
68+
this.errorMessage = errorMessage;
69+
}
70+
71+
public SLOHistoryResponseErrorWithType errorType(String errorType) {
72+
this.errorType = errorType;
73+
return this;
74+
}
75+
76+
/**
77+
* Type of the error.
78+
*
79+
* @return errorType
80+
*/
81+
@ApiModelProperty(example = "", required = true, value = "Type of the error.")
82+
@JsonProperty(JSON_PROPERTY_ERROR_TYPE)
83+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
84+
public String getErrorType() {
85+
return errorType;
86+
}
87+
88+
public void setErrorType(String errorType) {
89+
this.errorType = errorType;
90+
}
91+
92+
/** Return true if this SLOHistoryResponseErrorWithType object is equal to o. */
93+
@Override
94+
public boolean equals(Object o) {
95+
if (this == o) {
96+
return true;
97+
}
98+
if (o == null || getClass() != o.getClass()) {
99+
return false;
100+
}
101+
SLOHistoryResponseErrorWithType slOHistoryResponseErrorWithType =
102+
(SLOHistoryResponseErrorWithType) o;
103+
return Objects.equals(this.errorMessage, slOHistoryResponseErrorWithType.errorMessage)
104+
&& Objects.equals(this.errorType, slOHistoryResponseErrorWithType.errorType);
105+
}
106+
107+
@Override
108+
public int hashCode() {
109+
return Objects.hash(errorMessage, errorType);
110+
}
111+
112+
@Override
113+
public String toString() {
114+
StringBuilder sb = new StringBuilder();
115+
sb.append("class SLOHistoryResponseErrorWithType {\n");
116+
sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
117+
sb.append(" errorType: ").append(toIndentedString(errorType)).append("\n");
118+
sb.append("}");
119+
return sb.toString();
120+
}
121+
122+
/**
123+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
124+
*/
125+
private String toIndentedString(Object o) {
126+
if (o == null) {
127+
return "null";
128+
}
129+
return o.toString().replace("\n", "\n ");
130+
}
131+
}

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class SLOHistorySLIData {
5353
private Map<String, Double> errorBudgetRemaining = null;
5454

5555
public static final String JSON_PROPERTY_ERRORS = "errors";
56-
private List<SLOHistoryResponseError> errors = null;
56+
private List<SLOHistoryResponseErrorWithType> errors = null;
5757

5858
public static final String JSON_PROPERTY_GROUP = "group";
5959
private String group;
@@ -118,15 +118,15 @@ public void setErrorBudgetRemaining(Map<String, Double> errorBudgetRemaining) {
118118
this.errorBudgetRemaining = errorBudgetRemaining;
119119
}
120120

121-
public SLOHistorySLIData errors(List<SLOHistoryResponseError> errors) {
121+
public SLOHistorySLIData errors(List<SLOHistoryResponseErrorWithType> errors) {
122122
this.errors = errors;
123-
for (SLOHistoryResponseError item : errors) {
123+
for (SLOHistoryResponseErrorWithType item : errors) {
124124
this.unparsed |= item.unparsed;
125125
}
126126
return this;
127127
}
128128

129-
public SLOHistorySLIData addErrorsItem(SLOHistoryResponseError errorsItem) {
129+
public SLOHistorySLIData addErrorsItem(SLOHistoryResponseErrorWithType errorsItem) {
130130
if (this.errors == null) {
131131
this.errors = new ArrayList<>();
132132
}
@@ -136,21 +136,23 @@ public SLOHistorySLIData addErrorsItem(SLOHistoryResponseError errorsItem) {
136136
}
137137

138138
/**
139-
* A list of errors while querying the history data for the service level objective.
139+
* An array of error objects returned while querying the history data for the service level
140+
* objective.
140141
*
141142
* @return errors
142143
*/
143144
@javax.annotation.Nullable
144145
@ApiModelProperty(
145-
example = "[]",
146-
value = "A list of errors while querying the history data for the service level objective.")
146+
value =
147+
"An array of error objects returned while querying the history data for the service"
148+
+ " level objective.")
147149
@JsonProperty(JSON_PROPERTY_ERRORS)
148150
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
149-
public List<SLOHistoryResponseError> getErrors() {
151+
public List<SLOHistoryResponseErrorWithType> getErrors() {
150152
return errors;
151153
}
152154

153-
public void setErrors(List<SLOHistoryResponseError> errors) {
155+
public void setErrors(List<SLOHistoryResponseErrorWithType> errors) {
154156
this.errors = errors;
155157
}
156158

src/main/java/com/datadog/api/v1/openapi.yaml

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19512,7 +19512,11 @@ components:
1951219512
- - - 1579212382
1951319513
- 0
1951419514
monitor_type: string
19515-
errors: []
19515+
errors:
19516+
- error_message: ""
19517+
error_type: ""
19518+
- error_message: ""
19519+
error_type: ""
1951619520
group: name
1951719521
uptime: 99.99
1951819522
type: metric
@@ -19531,14 +19535,33 @@ components:
1953119535
type: array
1953219536
type: object
1953319537
SLOHistoryResponseError:
19534-
description: A service level objective response containing the requested history.
19538+
description: A list of errors while querying the history data for the service
19539+
level objective.
1953519540
example:
1953619541
error: error
1953719542
properties:
1953819543
error:
1953919544
description: Human readable error.
1954019545
type: string
1954119546
type: object
19547+
SLOHistoryResponseErrorWithType:
19548+
description: An object describing the error with error type and error message.
19549+
example:
19550+
error_message: ""
19551+
error_type: ""
19552+
properties:
19553+
error_message:
19554+
description: A message with more details about the error.
19555+
example: ""
19556+
type: string
19557+
error_type:
19558+
description: Type of the error.
19559+
example: ""
19560+
type: string
19561+
required:
19562+
- error_message
19563+
- error_type
19564+
type: object
1954219565
SLOHistorySLIData:
1954319566
description: |-
1954419567
An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value.
@@ -19560,7 +19583,11 @@ components:
1956019583
- - - 1579212382
1956119584
- 0
1956219585
monitor_type: string
19563-
errors: []
19586+
errors:
19587+
- error_message: ""
19588+
error_type: ""
19589+
- error_message: ""
19590+
error_type: ""
1956419591
group: name
1956519592
uptime: 99.99
1956619593
properties:
@@ -19574,11 +19601,10 @@ components:
1957419601
"7d": 100.0
1957519602
type: object
1957619603
errors:
19577-
description: A list of errors while querying the history data for the service
19578-
level objective.
19579-
example: []
19604+
description: An array of error objects returned while querying the history
19605+
data for the service level objective.
1958019606
items:
19581-
$ref: '#/components/schemas/SLOHistoryResponseError'
19607+
$ref: '#/components/schemas/SLOHistoryResponseErrorWithType'
1958219608
type: array
1958319609
group:
1958419610
description: For groups in a grouped SLO, this is the group name.
@@ -30376,7 +30402,11 @@ components:
3037630402
- - - 1579212382
3037730403
- 0
3037830404
monitor_type: string
30379-
errors: []
30405+
errors:
30406+
- error_message: ""
30407+
error_type: ""
30408+
- error_message: ""
30409+
error_type: ""
3038030410
group: name
3038130411
uptime: 99.99
3038230412
type: metric

0 commit comments

Comments
 (0)