Class: DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition
- Defined in:
- lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb
Overview
APM resource stats query using formulas and functions.
Instance Attribute Summary collapse
-
#data_source ⇒ Object
Returns the value of attribute data_source.
-
#env ⇒ Object
APM environment.
-
#group_by ⇒ Object
Array of fields to group results by.
-
#name ⇒ Object
Name of this query to use in formulas.
-
#operation_name ⇒ Object
Name of operation on service.
-
#primary_tag_name ⇒ Object
Name of the second primary tag used within APM.
-
#primary_tag_value ⇒ Object
Value of the second primary tag by which to filter APM data.
-
#resource_name ⇒ Object
APM resource name.
-
#service ⇒ Object
APM service name.
-
#stat ⇒ Object
Returns the value of attribute stat.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FormulaAndFunctionApmResourceStatsQueryDefinition
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ FormulaAndFunctionApmResourceStatsQueryDefinition
Initializes the object
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 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 103 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::FormulaAndFunctionApmResourceStatsQueryDefinition` 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::FormulaAndFunctionApmResourceStatsQueryDefinition`. 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?(:'data_source') self.data_source = attributes[:'data_source'] end if attributes.key?(:'env') self.env = attributes[:'env'] end if attributes.key?(:'group_by') if (value = attributes[:'group_by']).is_a?(Array) self.group_by = value end end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'operation_name') self.operation_name = attributes[:'operation_name'] end if attributes.key?(:'primary_tag_name') self.primary_tag_name = attributes[:'primary_tag_name'] end if attributes.key?(:'primary_tag_value') self.primary_tag_value = attributes[:'primary_tag_value'] end if attributes.key?(:'resource_name') self.resource_name = attributes[:'resource_name'] end if attributes.key?(:'service') self.service = attributes[:'service'] end if attributes.key?(:'stat') self.stat = attributes[:'stat'] end end |
Instance Attribute Details
#data_source ⇒ Object
Returns the value of attribute data_source.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 26 def data_source @data_source end |
#env ⇒ Object
APM environment.
29 30 31 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 29 def env @env end |
#group_by ⇒ Object
Array of fields to group results by.
32 33 34 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 32 def group_by @group_by end |
#name ⇒ Object
Name of this query to use in formulas.
35 36 37 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 35 def name @name end |
#operation_name ⇒ Object
Name of operation on service.
38 39 40 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 38 def operation_name @operation_name end |
#primary_tag_name ⇒ Object
Name of the second primary tag used within APM. Required when ‘primary_tag_value` is specified. See docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
41 42 43 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 41 def primary_tag_name @primary_tag_name end |
#primary_tag_value ⇒ Object
Value of the second primary tag by which to filter APM data. ‘primary_tag_name` must also be specified.
44 45 46 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 44 def primary_tag_value @primary_tag_value end |
#resource_name ⇒ Object
APM resource name.
47 48 49 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 47 def resource_name @resource_name end |
#service ⇒ Object
APM service name.
50 51 52 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 50 def service @service end |
#stat ⇒ Object
Returns the value of attribute stat.
52 53 54 |
# File 'lib/datadog_api_client/v1/models/formula_and_function_apm_resource_stats_query_definition.rb', line 52 def stat @stat end |