Class: DatadogAPIClient::V2::HistoricalJobQuery

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

Overview

Query for selecting logs analyzed by the historical job.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

Returns the value of attribute additional_properties.



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

def additional_properties
  @additional_properties
end

#aggregationObject

The aggregation type.



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

def aggregation
  @aggregation
end

#distinct_fieldsObject

Field for which the cardinality is measured. Sent as an array.



28
29
30
# File 'lib/datadog_api_client/v2/models/historical_job_query.rb', line 28

def distinct_fields
  @distinct_fields
end

#group_by_fieldsObject

Fields to group by.



31
32
33
# File 'lib/datadog_api_client/v2/models/historical_job_query.rb', line 31

def group_by_fields
  @group_by_fields
end

#has_optional_group_by_fieldsObject

When false, events without a group-by value are ignored by the query. When true, events with missing group-by fields are processed with N/A, replacing the missing values.



34
35
36
# File 'lib/datadog_api_client/v2/models/historical_job_query.rb', line 34

def has_optional_group_by_fields
  @has_optional_group_by_fields
end

#metricsObject

Group of target fields to aggregate over when using the sum, max, geo data, or new value aggregations. The sum, max, and geo data aggregations only accept one value in this list, whereas the new value aggregation accepts up to five values.



37
38
39
# File 'lib/datadog_api_client/v2/models/historical_job_query.rb', line 37

def metrics
  @metrics
end

#nameObject

Name of the query.



40
41
42
# File 'lib/datadog_api_client/v2/models/historical_job_query.rb', line 40

def name
  @name
end

#queryObject

Query to run on logs.



43
44
45
# File 'lib/datadog_api_client/v2/models/historical_job_query.rb', line 43

def query
  @query
end