Class: DatadogAPIClient::V1::DashboardSummaryDefinition
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::DashboardSummaryDefinition
- Defined in:
- lib/datadog_api_client/v1/models/dashboard_summary_definition.rb
Overview
Dashboard definition.
Instance Attribute Summary collapse
-
#author_handle ⇒ Object
Identifier of the dashboard author.
-
#created_at ⇒ Object
Creation date of the dashboard.
-
#description ⇒ Object
Description of the dashboard.
-
#id ⇒ Object
Dashboard identifier.
-
#is_read_only ⇒ Object
Whether this dashboard is read-only.
-
#layout_type ⇒ Object
Returns the value of attribute layout_type.
-
#modified_at ⇒ Object
Modification date of the dashboard.
-
#title ⇒ Object
Title of the dashboard.
-
#url ⇒ Object
URL of the dashboard.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DashboardSummaryDefinition
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ DashboardSummaryDefinition
Initializes the object
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 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 100 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::DashboardSummaryDefinition` 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::DashboardSummaryDefinition`. 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?(:'author_handle') self. = attributes[:'author_handle'] end if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'description') self.description = attributes[:'description'] end if attributes.key?(:'id') self.id = attributes[:'id'] end if attributes.key?(:'is_read_only') self.is_read_only = attributes[:'is_read_only'] end if attributes.key?(:'layout_type') self.layout_type = attributes[:'layout_type'] end if attributes.key?(:'modified_at') self.modified_at = attributes[:'modified_at'] end if attributes.key?(:'title') self.title = attributes[:'title'] end if attributes.key?(:'url') self.url = attributes[:'url'] end end |
Instance Attribute Details
#author_handle ⇒ Object
Identifier of the dashboard author.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 27 def end |
#created_at ⇒ Object
Creation date of the dashboard.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 30 def created_at @created_at end |
#description ⇒ Object
Description of the dashboard.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 33 def description @description end |
#id ⇒ Object
Dashboard identifier.
36 37 38 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 36 def id @id end |
#is_read_only ⇒ Object
Whether this dashboard is read-only. If True, only the author and admins can make changes to it.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 39 def is_read_only @is_read_only end |
#layout_type ⇒ Object
Returns the value of attribute layout_type.
41 42 43 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 41 def layout_type @layout_type end |
#modified_at ⇒ Object
Modification date of the dashboard.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 44 def modified_at @modified_at end |
#title ⇒ Object
Title of the dashboard.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 47 def title @title end |
#url ⇒ Object
URL of the dashboard.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 50 def url @url end |