Skip to content

Add daily as a valid enum for SLOReportInterval #1957

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

Merged
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.6.6",
"regenerated": "2024-12-12 13:29:32.071714",
"spec_repo_commit": "f0c3c0f4"
"regenerated": "2024-12-12 14:27:07.718319",
"spec_repo_commit": "3ebe762b"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-12 13:29:32.090710",
"spec_repo_commit": "f0c3c0f4"
"regenerated": "2024-12-12 14:27:07.738249",
"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
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ const enumsMap: { [key: string]: any[] } = {
RumMetricUniquenessWhen: ["match", "end"],
RunHistoricalJobRequestDataType: ["historicalDetectionsJobCreate"],
SAMLAssertionAttributesType: ["saml_assertion_attributes"],
SLOReportInterval: ["weekly", "monthly"],
SLOReportInterval: ["daily", "weekly", "monthly"],
SLOReportStatus: [
"in_progress",
"completed",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
* The frequency at which report data is to be generated.
*/

export type SLOReportInterval = typeof WEEKLY | typeof MONTHLY | UnparsedObject;
export type SLOReportInterval =
| typeof DAILY
| typeof WEEKLY
| typeof MONTHLY
| UnparsedObject;
export const DAILY = "daily";
export const WEEKLY = "weekly";
export const MONTHLY = "monthly";
Loading