Class: DatadogAPIClient::V1::SLOCorrectionUpdateRequestAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SLOCorrectionUpdateRequestAttributes
- Defined in:
- lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb
Overview
The attribute object associated with the SLO correction to be updated.
Instance Attribute Summary collapse
-
#_end ⇒ Object
Ending time of the correction in epoch seconds.
-
#category ⇒ Object
Returns the value of attribute category.
-
#description ⇒ Object
Description of the correction being made.
-
#duration ⇒ Object
Length of time (in seconds) for a specified ‘rrule` recurring SLO correction.
-
#rrule ⇒ Object
The recurrence rules as defined in the iCalendar RFC 5545.
-
#start ⇒ Object
Starting time of the correction in epoch seconds.
-
#timezone ⇒ Object
The timezone to display in the UI for the correction times (defaults to "UTC").
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SLOCorrectionUpdateRequestAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SLOCorrectionUpdateRequestAttributes
Initializes the object
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb', line 89 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionUpdateRequestAttributes` 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::SLOCorrectionUpdateRequestAttributes`. 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?(:'category') self.category = attributes[:'category'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'duration') self.duration = attributes[:'duration'] end if attributes.key?(:'_end') self._end = attributes[:'_end'] end if attributes.key?(:'rrule') self.rrule = attributes[:'rrule'] end if attributes.key?(:'start') self.start = attributes[:'start'] end if attributes.key?(:'timezone') self.timezone = attributes[:'timezone'] end end |
Instance Attribute Details
#_end ⇒ Object
Ending time of the correction in epoch seconds.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb', line 35 def _end @_end end |
#category ⇒ Object
Returns the value of attribute category.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb', line 26 def category @category end |
#description ⇒ Object
Description of the correction being made.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb', line 29 def description @description end |
#duration ⇒ Object
Length of time (in seconds) for a specified ‘rrule` recurring SLO correction.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb', line 32 def duration @duration end |
#rrule ⇒ Object
The recurrence rules as defined in the iCalendar RFC 5545. The supported rules for SLO corrections are ‘FREQ`, `INTERVAL`, `COUNT` and `UNTIL`.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb', line 38 def rrule @rrule end |
#start ⇒ Object
Starting time of the correction in epoch seconds.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb', line 41 def start @start end |
#timezone ⇒ Object
The timezone to display in the UI for the correction times (defaults to "UTC").
44 45 46 |
# File 'lib/datadog_api_client/v1/models/slo_correction_update_request_attributes.rb', line 44 def timezone @timezone end |