Skip to content

Commit

Permalink
Add daily as a valid enum for SLOReportInterval (#1957)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Dec 12, 2024
1 parent 4b4a8ae commit 26c191b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 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: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
2 changes: 1 addition & 1 deletion packages/datadog-api-client-v2/models/ObjectSerializer.ts
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
7 changes: 6 additions & 1 deletion packages/datadog-api-client-v2/models/SLOReportInterval.ts
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";

0 comments on commit 26c191b

Please sign in to comment.