Class: DatadogAPIClient::V2::DdsqlTabularQueryColumn

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/ddsql_tabular_query_column.rb

Overview

A single column of a DDSQL tabular query result.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



47
48
49
# File 'lib/datadog_api_client/v2/models/ddsql_tabular_query_column.rb', line 47

def additional_properties
  @additional_properties
end

#nameObject

Name of the column as projected by the SQL statement.



25
26
27
# File 'lib/datadog_api_client/v2/models/ddsql_tabular_query_column.rb', line 25

def name
  @name
end

#typeObject

DDSQL data type of the column's values, for example VARCHAR, BIGINT, DECIMAL, BOOLEAN, TIMESTAMP, JSON, or an array variant such as VARCHAR[]. See the DDSQL data-types reference for the full, up-to-date list.



32
33
34
# File 'lib/datadog_api_client/v2/models/ddsql_tabular_query_column.rb', line 32

def type
  @type
end

#valuesObject

Column values in row order, one entry per result row. The element type follows the column's type. The following serialization rules should be taken into account:

  • BIGINT values are encoded as JSON numbers in the signed 64-bit integer range.
  • DECIMAL values are encoded as JSON numbers with 64-bit double precision.
  • TIMESTAMP and DATE values are encoded as Unix-millisecond integers; a DATE resolves to midnight UTC.
  • JSON values are returned as a JSON-encoded string.

null is allowed for any column type where a value is missing.



45
46
47
# File 'lib/datadog_api_client/v2/models/ddsql_tabular_query_column.rb', line 45

def values
  @values
end