Skip to content

Add classification read-only parameter for monitor object #2061

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
@@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-14 15:03:44.521676",
"spec_repo_commit": "a739b49f"
"regenerated": "2025-02-18 09:41:19.292491",
"spec_repo_commit": "f9205865"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-14 15:03:44.537023",
"spec_repo_commit": "a739b49f"
"regenerated": "2025-02-18 09:41:19.310327",
"spec_repo_commit": "f9205865"
}
}
}
5 changes: 5 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
@@ -6688,6 +6688,11 @@ components:
Monitor:
description: Object describing a monitor.
properties:
classification:
description: The classification of the monitor.
example: log
readOnly: true
type: string
created:
description: Timestamp of the monitor creation.
format: date-time
8 changes: 8 additions & 0 deletions packages/datadog-api-client-v1/models/Monitor.ts
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* Object describing a monitor.
*/
export class Monitor {
/**
* The classification of the monitor.
*/
"classification"?: string;
/**
* Timestamp of the monitor creation.
*/
@@ -101,6 +105,10 @@ export class Monitor {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
classification: {
baseName: "classification",
type: "string",
},
created: {
baseName: "created",
type: "Date",