Class: DatadogAPIClient::V1::SLOCorrectionResponseAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SLOCorrectionResponseAttributes
- Defined in:
- lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb
Overview
The attribute object associated with the SLO correction.
Instance Attribute Summary collapse
-
#_end ⇒ Object
Ending time of the correction in epoch seconds.
-
#category ⇒ Object
Returns the value of attribute category.
-
#created_at ⇒ Object
The epoch timestamp of when the correction was created at.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#description ⇒ Object
Description of the correction being made.
-
#duration ⇒ Object
Length of time (in seconds) for a specified ‘rrule` recurring SLO correction.
-
#modified_at ⇒ Object
The epoch timestamp of when the correction was modified at.
-
#modifier ⇒ Object
Returns the value of attribute modifier.
-
#rrule ⇒ Object
The recurrence rules as defined in the iCalendar RFC 5545.
-
#slo_id ⇒ Object
ID of the SLO that this correction will be applied to.
-
#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 = {}) ⇒ SLOCorrectionResponseAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SLOCorrectionResponseAttributes
Initializes the object
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 115 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionResponseAttributes` 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::SLOCorrectionResponseAttributes`. 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?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'creator') self.creator = attributes[:'creator'] 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?(:'modified_at') self.modified_at = attributes[:'modified_at'] end if attributes.key?(:'modifier') self.modifier = attributes[:'modifier'] end if attributes.key?(:'rrule') self.rrule = attributes[:'rrule'] end if attributes.key?(:'slo_id') self.slo_id = attributes[:'slo_id'] 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.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 40 def _end @_end end |
#category ⇒ Object
Returns the value of attribute category.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 26 def category @category end |
#created_at ⇒ Object
The epoch timestamp of when the correction was created at
29 30 31 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 29 def created_at @created_at end |
#creator ⇒ Object
Returns the value of attribute creator.
31 32 33 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 31 def creator @creator end |
#description ⇒ Object
Description of the correction being made.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 34 def description @description end |
#duration ⇒ Object
Length of time (in seconds) for a specified ‘rrule` recurring SLO correction.
37 38 39 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 37 def duration @duration end |
#modified_at ⇒ Object
The epoch timestamp of when the correction was modified at
43 44 45 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 43 def modified_at @modified_at end |
#modifier ⇒ Object
Returns the value of attribute modifier.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 45 def modifier @modifier 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`.
48 49 50 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 48 def rrule @rrule end |
#slo_id ⇒ Object
ID of the SLO that this correction will be applied to.
51 52 53 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 51 def slo_id @slo_id end |
#start ⇒ Object
Starting time of the correction in epoch seconds.
54 55 56 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 54 def start @start end |
#timezone ⇒ Object
The timezone to display in the UI for the correction times (defaults to "UTC").
57 58 59 |
# File 'lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb', line 57 def timezone @timezone end |