Skip to content

Commit

Permalink
Add daily as a valid enum for SLOReportInterval (#2835)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Dec 12, 2024
1 parent 9204403 commit 4cff1fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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.6.6",
"regenerated": "2024-12-12 13:29:33.308740",
"spec_repo_commit": "f0c3c0f4"
"regenerated": "2024-12-12 14:27:10.560083",
"spec_repo_commit": "3ebe762b"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-12 13:29:33.328096",
"spec_repo_commit": "f0c3c0f4"
"regenerated": "2024-12-12 14:27:10.579554",
"spec_repo_commit": "3ebe762b"
}
}
}
2 changes: 2 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21110,11 +21110,13 @@ components:
SLOReportInterval:
description: The frequency at which report data is to be generated.
enum:
- daily
- weekly
- monthly
example: weekly
type: string
x-enum-varnames:
- DAILY
- WEEKLY
- MONTHLY
SLOReportPostResponse:
Expand Down
2 changes: 2 additions & 0 deletions api/datadogV2/model_slo_report_interval.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ type SLOReportInterval string

// List of SLOReportInterval.
const (
SLOREPORTINTERVAL_DAILY SLOReportInterval = "daily"
SLOREPORTINTERVAL_WEEKLY SLOReportInterval = "weekly"
SLOREPORTINTERVAL_MONTHLY SLOReportInterval = "monthly"
)

var allowedSLOReportIntervalEnumValues = []SLOReportInterval{
SLOREPORTINTERVAL_DAILY,
SLOREPORTINTERVAL_WEEKLY,
SLOREPORTINTERVAL_MONTHLY,
}
Expand Down

0 comments on commit 4cff1fc

Please sign in to comment.