Class: DatadogAPIClient::V1::CheckStatusWidgetDefinition
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::CheckStatusWidgetDefinition
- Defined in:
- lib/datadog_api_client/v1/models/check_status_widget_definition.rb
Overview
Check status shows the current status or number of results for any check performed.
Instance Attribute Summary collapse
-
#check ⇒ Object
Name of the check to use in the widget.
-
#group ⇒ Object
Group reporting a single check.
-
#group_by ⇒ Object
List of tag prefixes to group by in the case of a cluster check.
-
#grouping ⇒ Object
Returns the value of attribute grouping.
-
#tags ⇒ Object
List of tags used to filter the groups reporting a cluster check.
-
#time ⇒ Object
Returns the value of attribute time.
-
#title ⇒ Object
Title of the widget.
-
#title_align ⇒ Object
Returns the value of attribute title_align.
-
#title_size ⇒ Object
Size of the title.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CheckStatusWidgetDefinition
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ CheckStatusWidgetDefinition
Initializes the object
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 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 101 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::CheckStatusWidgetDefinition` 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::CheckStatusWidgetDefinition`. 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?(:'check') self.check = attributes[:'check'] end if attributes.key?(:'group') self.group = attributes[:'group'] end if attributes.key?(:'group_by') if (value = attributes[:'group_by']).is_a?(Array) self.group_by = value end end if attributes.key?(:'grouping') self.grouping = attributes[:'grouping'] end if attributes.key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self. = value end end if attributes.key?(:'time') self.time = attributes[:'time'] end if attributes.key?(:'title') self.title = attributes[:'title'] end if attributes.key?(:'title_align') self.title_align = attributes[:'title_align'] end if attributes.key?(:'title_size') self.title_size = attributes[:'title_size'] end if attributes.key?(:'type') self.type = attributes[:'type'] else self.type = 'check_status' end end |
Instance Attribute Details
#check ⇒ Object
Name of the check to use in the widget.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 27 def check @check end |
#group ⇒ Object
Group reporting a single check.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 30 def group @group end |
#group_by ⇒ Object
List of tag prefixes to group by in the case of a cluster check.
33 34 35 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 33 def group_by @group_by end |
#grouping ⇒ Object
Returns the value of attribute grouping.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 35 def grouping @grouping end |
#tags ⇒ Object
List of tags used to filter the groups reporting a cluster check.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 38 def end |
#time ⇒ Object
Returns the value of attribute time.
40 41 42 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 40 def time @time end |
#title ⇒ Object
Title of the widget.
43 44 45 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 43 def title @title end |
#title_align ⇒ Object
Returns the value of attribute title_align.
45 46 47 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 45 def title_align @title_align end |
#title_size ⇒ Object
Size of the title.
48 49 50 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 48 def title_size @title_size end |
#type ⇒ Object
Returns the value of attribute type.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/check_status_widget_definition.rb', line 50 def type @type end |