Class: DatadogAPIClient::V1::FunnelWidgetDefinition
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::FunnelWidgetDefinition
- Defined in:
- lib/datadog_api_client/v1/models/funnel_widget_definition.rb
Overview
The funnel visualization displays a funnel of user sessions that maps a sequence of view navigation and user interaction in your application.
Instance Attribute Summary collapse
-
#requests ⇒ Object
Request payload used to query items.
-
#time ⇒ Object
Returns the value of attribute time.
-
#title ⇒ Object
The title of the widget.
-
#title_align ⇒ Object
Returns the value of attribute title_align.
-
#title_size ⇒ Object
The size of the title.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FunnelWidgetDefinition
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ FunnelWidgetDefinition
Initializes the object
82 83 84 85 86 87 88 89 90 91 92 93 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 |
# File 'lib/datadog_api_client/v1/models/funnel_widget_definition.rb', line 82 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FunnelWidgetDefinition` 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::FunnelWidgetDefinition`. 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?(:'requests') if (value = attributes[:'requests']).is_a?(Array) self.requests = 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 = 'funnel' end end |
Instance Attribute Details
#requests ⇒ Object
Request payload used to query items.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/funnel_widget_definition.rb', line 27 def requests @requests end |
#time ⇒ Object
Returns the value of attribute time.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/funnel_widget_definition.rb', line 29 def time @time end |
#title ⇒ Object
The title of the widget.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/funnel_widget_definition.rb', line 32 def title @title end |
#title_align ⇒ Object
Returns the value of attribute title_align.
34 35 36 |
# File 'lib/datadog_api_client/v1/models/funnel_widget_definition.rb', line 34 def title_align @title_align end |
#title_size ⇒ Object
The size of the title.
37 38 39 |
# File 'lib/datadog_api_client/v1/models/funnel_widget_definition.rb', line 37 def title_size @title_size end |
#type ⇒ Object
Returns the value of attribute type.
39 40 41 |
# File 'lib/datadog_api_client/v1/models/funnel_widget_definition.rb', line 39 def type @type end |