Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MA-1666][slo correction]update required fields in create and update requests #618

Merged
merged 1 commit into from
Jan 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-01-21 15:40:33.581054",
"spec_repo_commit": "a46429c"
"regenerated": "2021-01-22 07:54:32.148370",
"spec_repo_commit": "e264b45"
},
"v2": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-01-21 15:40:42.666088",
"spec_repo_commit": "a46429c"
"regenerated": "2021-01-22 07:54:42.990296",
"spec_repo_commit": "e264b45"
}
}
}
2 changes: 1 addition & 1 deletion api_docs/v1/SLOCorrectionCreateRequestAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**end** | **Long** | Ending time of the correction in epoch seconds |
**sloId** | **String** | ID of the SLO that this correction will be applied to |
**start** | **Long** | Starting time of the correction in epoch seconds |
**timezone** | **String** | Timezone of the timestamps provided |
**timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\") | [optional]



2 changes: 1 addition & 1 deletion api_docs/v1/SLOCorrectionResponseAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**end** | **Long** | Ending time of the correction in epoch seconds | [optional]
**sloId** | **String** | ID of the SLO that this correction will be applied to | [optional]
**start** | **Long** | Starting time of the correction in epoch seconds | [optional]
**timezone** | **String** | Timezone of the timestamps provided | [optional]
**timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\") | [optional]



8 changes: 4 additions & 4 deletions api_docs/v1/SLOCorrectionUpdateRequestAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ The attribute object associated with the SLO correction to be updated

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**category** | **SLOCorrectionCategory** | |
**category** | **SLOCorrectionCategory** | | [optional]
**description** | **String** | Description of the correction being made. | [optional]
**end** | **Long** | Ending time of the correction in epoch seconds |
**start** | **Long** | Starting time of the correction in epoch seconds |
**timezone** | **String** | Timezone of the timestamps provided |
**end** | **Long** | Ending time of the correction in epoch seconds | [optional]
**start** | **Long** | Starting time of the correction in epoch seconds | [optional]
**timezone** | **String** | The timezone to display in the UI for the correction times (defaults to \"UTC\") | [optional]



Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,13 @@ public SLOCorrectionCreateRequestAttributes timezone(String timezone) {
}

/**
* Timezone of the timestamps provided
* The timezone to display in the UI for the correction times (defaults to \"UTC\")
* @return timezone
**/
@ApiModelProperty(example = "UTC", required = true, value = "Timezone of the timestamps provided")
@javax.annotation.Nullable
@ApiModelProperty(example = "UTC", value = "The timezone to display in the UI for the correction times (defaults to \"UTC\")")
@JsonProperty(JSON_PROPERTY_TIMEZONE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getTimezone() {
return timezone;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ public SLOCorrectionResponseAttributes timezone(String timezone) {
}

/**
* Timezone of the timestamps provided
* The timezone to display in the UI for the correction times (defaults to \"UTC\")
* @return timezone
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Timezone of the timestamps provided")
@ApiModelProperty(value = "The timezone to display in the UI for the correction times (defaults to \"UTC\")")
@JsonProperty(JSON_PROPERTY_TIMEZONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ public SLOCorrectionUpdateRequestAttributes category(SLOCorrectionCategory categ
* Get category
* @return category
**/
@ApiModelProperty(required = true, value = "")
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public SLOCorrectionCategory getCategory() {
return category;
Expand Down Expand Up @@ -112,9 +113,10 @@ public SLOCorrectionUpdateRequestAttributes end(Long end) {
* Ending time of the correction in epoch seconds
* @return end
**/
@ApiModelProperty(example = "1600000000", required = true, value = "Ending time of the correction in epoch seconds")
@javax.annotation.Nullable
@ApiModelProperty(example = "1600000000", value = "Ending time of the correction in epoch seconds")
@JsonProperty(JSON_PROPERTY_END)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Long getEnd() {
return end;
Expand All @@ -135,9 +137,10 @@ public SLOCorrectionUpdateRequestAttributes start(Long start) {
* Starting time of the correction in epoch seconds
* @return start
**/
@ApiModelProperty(example = "1600000000", required = true, value = "Starting time of the correction in epoch seconds")
@javax.annotation.Nullable
@ApiModelProperty(example = "1600000000", value = "Starting time of the correction in epoch seconds")
@JsonProperty(JSON_PROPERTY_START)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Long getStart() {
return start;
Expand All @@ -155,12 +158,13 @@ public SLOCorrectionUpdateRequestAttributes timezone(String timezone) {
}

/**
* Timezone of the timestamps provided
* The timezone to display in the UI for the correction times (defaults to \"UTC\")
* @return timezone
**/
@ApiModelProperty(example = "UTC", required = true, value = "Timezone of the timestamps provided")
@javax.annotation.Nullable
@ApiModelProperty(example = "UTC", value = "The timezone to display in the UI for the correction times (defaults to \"UTC\")")
@JsonProperty(JSON_PROPERTY_TIMEZONE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getTimezone() {
return timezone;
Expand Down
15 changes: 6 additions & 9 deletions src/main/java/com/datadog/api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4842,15 +4842,15 @@ components:
format: int64
type: integer
timezone:
description: Timezone of the timestamps provided
description: The timezone to display in the UI for the correction times
(defaults to "UTC")
example: UTC
type: string
required:
- slo_id
- start
- end
- category
- timezone
type: object
SLOCorrectionListResponse:
description: A list of SLO correction objects
Expand Down Expand Up @@ -4910,7 +4910,8 @@ components:
format: int64
type: integer
timezone:
description: Timezone of the timestamps provided
description: The timezone to display in the UI for the correction times
(defaults to "UTC")
type: string
type: object
SLOCorrectionUpdateRequest:
Expand Down Expand Up @@ -4946,14 +4947,10 @@ components:
format: int64
type: integer
timezone:
description: Timezone of the timestamps provided
description: The timezone to display in the UI for the correction times
(defaults to "UTC")
example: UTC
type: string
required:
- start
- end
- category
- timezone
type: object
SLODeleteResponse:
description: A response list of all service level objective deleted.
Expand Down