Class: DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributes
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributes
- Defined in:
- lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb
Overview
Timeline cell data for Markdown timeline cells for a create request.
Instance Attribute Summary collapse
-
#cell_type ⇒ Object
Returns the value of attribute cell_type.
-
#content ⇒ Object
Returns the value of attribute content.
-
#important ⇒ Object
A flag indicating whether the timeline cell is important and should be highlighted.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ IncidentTimelineCellMarkdownCreateAttributes
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ IncidentTimelineCellMarkdownCreateAttributes
Initializes the object
68 69 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 95 96 |
# File 'lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb', line 68 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::IncidentTimelineCellMarkdownCreateAttributes` 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::V2::IncidentTimelineCellMarkdownCreateAttributes`. 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?(:'cell_type') self.cell_type = attributes[:'cell_type'] else self.cell_type = 'markdown' end if attributes.key?(:'content') self.content = attributes[:'content'] end if attributes.key?(:'important') self.important = attributes[:'important'] else self.important = false end end |
Instance Attribute Details
#cell_type ⇒ Object
Returns the value of attribute cell_type.
26 27 28 |
# File 'lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb', line 26 def cell_type @cell_type end |
#content ⇒ Object
Returns the value of attribute content.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb', line 28 def content @content end |
#important ⇒ Object
A flag indicating whether the timeline cell is important and should be highlighted.
31 32 33 |
# File 'lib/datadog_api_client/v2/models/incident_timeline_cell_markdown_create_attributes.rb', line 31 def important @important end |