Skip to content

Add classification read-only parameter for monitor object #2253

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
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": "2025-02-14 15:03:43.770632",
"spec_repo_commit": "a739b49f"
"regenerated": "2025-02-18 09:41:19.502703",
"spec_repo_commit": "f9205865"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-14 15:03:43.786179",
"spec_repo_commit": "a739b49f"
"regenerated": "2025-02-18 09:41:19.517641",
"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
Expand Up @@ -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
Expand Down
12 changes: 11 additions & 1 deletion lib/datadog_api_client/v1/models/monitor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V1
class Monitor
include BaseGenericModel

# The classification of the monitor.
attr_accessor :classification

# Timestamp of the monitor creation.
attr_accessor :created

Expand Down Expand Up @@ -78,6 +81,7 @@ class Monitor
# @!visibility private
def self.attribute_map
{
:'classification' => :'classification',
:'created' => :'created',
:'creator' => :'creator',
:'deleted' => :'deleted',
Expand All @@ -102,6 +106,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'classification' => :'String',
:'created' => :'Time',
:'creator' => :'Creator',
:'deleted' => :'Time',
Expand Down Expand Up @@ -150,6 +155,10 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'classification')
self.classification = attributes[:'classification']
end

if attributes.key?(:'created')
self.created = attributes[:'created']
end
Expand Down Expand Up @@ -280,6 +289,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
classification == o.classification &&
created == o.created &&
creator == o.creator &&
deleted == o.deleted &&
Expand All @@ -304,7 +314,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[created, creator, deleted, id, matching_downtimes, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
[classification, created, creator, deleted, id, matching_downtimes, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type, additional_properties].hash
end
end
end
Loading