class Amazonite::CloudWatchLogs::GetQueryResultsResponse

Included Modules

Defined in:

cloudwatch_logs/get_query_results_response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(query_language : QueryLanguage | Nil = nil, results : Array(Array(ResultField)) | Nil = nil, statistics : QueryStatistics | Nil = nil, status : QueryStatus | Nil = nil, encryption_key : String | Nil = nil, next_token : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def encryption_key : String | Nil #

If you associated an KMS key with the CloudWatch Logs Insights query results in this account, this field displays the ARN of the key that's used to encrypt the query results when StartQuery stores them.


[View source]
def encryption_key=(encryption_key : String | Nil) #

If you associated an KMS key with the CloudWatch Logs Insights query results in this account, this field displays the ARN of the key that's used to encrypt the query results when StartQuery stores them.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def next_token : String | Nil #

If there are more log events remaining in the results, the response includes a nextToken. You can use this token in a subsequent GetQueryResults request to get the next set of results. You can retrieve up to 100,000 log event results from a query by paginating with this token. This is only supported for Logs Insights QL and is currently not supported for PPL and SQL query languages.


[View source]
def next_token=(next_token : String | Nil) #

If there are more log events remaining in the results, the response includes a nextToken. You can use this token in a subsequent GetQueryResults request to get the next set of results. You can retrieve up to 100,000 log event results from a query by paginating with this token. This is only supported for Logs Insights QL and is currently not supported for PPL and SQL query languages.


[View source]
def query_language : QueryLanguage | Nil #

The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages.


[View source]
def query_language=(query_language : QueryLanguage | Nil) #

The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages.


[View source]
def results : Array(Array(ResultField)) | Nil #

The log events that matched the query criteria during the most recent time it ran.

The #results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.


[View source]
def results=(results : Array(Array(ResultField)) | Nil) #

The log events that matched the query criteria during the most recent time it ran.

The #results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.


[View source]
def statistics : QueryStatistics | Nil #

Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the scanned log events. These values reflect the full raw results of the query.


[View source]
def statistics=(statistics : QueryStatistics | Nil) #

Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the scanned log events. These values reflect the full raw results of the query.


[View source]
def status : QueryStatus | Nil #

The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.


[View source]
def status=(status : QueryStatus | Nil) #

The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.


[View source]
def validate! : Nil #

[View source]