Class: DatadogAPIClient::V1::SLOCorrectionCreateRequestAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::SLOCorrectionCreateRequestAttributes
- Defined in:
- lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb
Overview
The attribute object associated with the SLO correction to be created.
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.
-
#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 = {}) ⇒ SLOCorrectionCreateRequestAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ SLOCorrectionCreateRequestAttributes
Initializes the object
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 130 131 132 133 134 135 136 137 138 |
# File 'lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb', line 94 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::SLOCorrectionCreateRequestAttributes` 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::SLOCorrectionCreateRequestAttributes`. 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?(:'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.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/slo_correction_create_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_create_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_create_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_create_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_create_request_attributes.rb', line 38 def rrule @rrule end |
#slo_id ⇒ Object
ID of the SLO that this correction will be applied to.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb', line 41 def slo_id @slo_id end |
#start ⇒ Object
Starting time of the correction in epoch seconds.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb', line 44 def start @start end |
#timezone ⇒ Object
The timezone to display in the UI for the correction times (defaults to "UTC").
47 48 49 |
# File 'lib/datadog_api_client/v1/models/slo_correction_create_request_attributes.rb', line 47 def timezone @timezone end |