Class: DatadogAPIClient::V1::HostMuteSettings
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::HostMuteSettings
- Defined in:
- lib/datadog_api_client/v1/models/host_mute_settings.rb
Overview
Combination of settings to mute a host.
Instance Attribute Summary collapse
-
#_end ⇒ Object
POSIX timestamp in seconds when the host is unmuted.
-
#message ⇒ Object
Message to associate with the muting of this host.
-
#override ⇒ Object
If true and the host is already muted, replaces existing host mute settings.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ HostMuteSettings
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ HostMuteSettings
Initializes the object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/datadog_api_client/v1/models/host_mute_settings.rb', line 70 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::HostMuteSettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::HostMuteSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'_end') self._end = attributes[:'_end'] end if attributes.key?(:'message') self. = attributes[:'message'] end if attributes.key?(:'override') self.override = attributes[:'override'] end end |
Instance Attribute Details
#_end ⇒ Object
POSIX timestamp in seconds when the host is unmuted. If omitted, the host remains muted until explicitly unmuted.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/host_mute_settings.rb', line 27 def _end @_end end |
#message ⇒ Object
Message to associate with the muting of this host.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/host_mute_settings.rb', line 30 def end |
#override ⇒ Object
If true and the host is already muted, replaces existing host mute settings.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/host_mute_settings.rb', line 33 def override @override end |