Class: DatadogAPIClient::V1::DashboardSummaryDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog_api_client/v1/models/dashboard_summary_definition.rb

Overview

Dashboard definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DashboardSummaryDefinition

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    attributes Model attributes in the form of hash



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.author_handle = 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_handleObject

Identifier of the dashboard author.



27
28
29
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 27

def author_handle
  @author_handle
end

#created_atObject

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

#descriptionObject

Description of the dashboard.



33
34
35
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 33

def description
  @description
end

#idObject

Dashboard identifier.



36
37
38
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 36

def id
  @id
end

#is_read_onlyObject

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_typeObject

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_atObject

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

#titleObject

Title of the dashboard.



47
48
49
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 47

def title
  @title
end

#urlObject

URL of the dashboard.



50
51
52
# File 'lib/datadog_api_client/v1/models/dashboard_summary_definition.rb', line 50

def url
  @url
end