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

Fix downtimes v2 schema and add missing field canceled #1228

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.5",
"regenerated": "2023-07-10 14:14:43.894933",
"spec_repo_commit": "19d6892e"
"regenerated": "2023-07-10 14:43:43.540365",
"spec_repo_commit": "96fb94b8"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-10 14:14:43.911312",
"spec_repo_commit": "19d6892e"
"regenerated": "2023-07-10 14:43:43.553752",
"spec_repo_commit": "96fb94b8"
}
}
}
10 changes: 8 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3974,7 +3974,13 @@ components:
DowntimeResponseAttributes:
description: Downtime details.
properties:
created_at:
canceled:
description: Time that the downtime was canceled.
example: 2020-01-02T03:04:05.282979+0000
format: date-time
nullable: true
type: string
created:
description: Creation time of the downtime.
example: 2020-01-02T03:04:05.282979+0000
format: date-time
Expand All @@ -3983,7 +3989,7 @@ components:
$ref: '#/components/schemas/DowntimeDisplayTimezone'
message:
$ref: '#/components/schemas/DowntimeMessage'
modified_at:
modified:
description: Time that the downtime was last modified.
example: 2020-01-02T03:04:05.282979+0000
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* Downtime details.
*/
export class DowntimeResponseAttributes {
/**
* Time that the downtime was canceled.
*/
"canceled"?: Date;
/**
* Creation time of the downtime.
*/
"createdAt"?: Date;
"created"?: Date;
/**
* The timezone in which to display the downtime's start and end times in Datadog applications. This is not used
* as an offset for scheduling.
Expand All @@ -32,7 +36,7 @@ export class DowntimeResponseAttributes {
/**
* Time that the downtime was last modified.
*/
"modifiedAt"?: Date;
"modified"?: Date;
/**
* Monitor identifier for the downtime.
*/
Expand Down Expand Up @@ -73,8 +77,13 @@ export class DowntimeResponseAttributes {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
createdAt: {
baseName: "created_at",
canceled: {
baseName: "canceled",
type: "Date",
format: "date-time",
},
created: {
baseName: "created",
type: "Date",
format: "date-time",
},
Expand All @@ -86,8 +95,8 @@ export class DowntimeResponseAttributes {
baseName: "message",
type: "string",
},
modifiedAt: {
baseName: "modified_at",
modified: {
baseName: "modified",
type: "Date",
format: "date-time",
},
Expand Down