Class: Aws::CloudWatchLogs::Types::PutQueryDefinitionRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

Used as an idempotency token, to avoid returning an exception if the service receives the same request twice because of a network error.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


4356
4357
4358
4359
4360
4361
4362
4363
4364
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4356

class PutQueryDefinitionRequest < Struct.new(
  :name,
  :query_definition_id,
  :log_group_names,
  :query_string,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#log_group_namesArray<String>

Use this parameter to include specific log groups as part of your query definition.

If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.

Returns:

  • (Array<String>)


4356
4357
4358
4359
4360
4361
4362
4363
4364
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4356

class PutQueryDefinitionRequest < Struct.new(
  :name,
  :query_definition_id,
  :log_group_names,
  :query_string,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

A name for the query definition. If you are saving numerous query definitions, we recommend that you name them. This way, you can find the ones you want by using the first part of the name as a filter in the queryDefinitionNamePrefix parameter of DescribeQueryDefinitions.

Returns:

  • (String)


4356
4357
4358
4359
4360
4361
4362
4363
4364
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4356

class PutQueryDefinitionRequest < Struct.new(
  :name,
  :query_definition_id,
  :log_group_names,
  :query_string,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#query_definition_idString

If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.

If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.

Returns:

  • (String)


4356
4357
4358
4359
4360
4361
4362
4363
4364
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4356

class PutQueryDefinitionRequest < Struct.new(
  :name,
  :query_definition_id,
  :log_group_names,
  :query_string,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end

#query_stringString

The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.

Returns:

  • (String)


4356
4357
4358
4359
4360
4361
4362
4363
4364
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 4356

class PutQueryDefinitionRequest < Struct.new(
  :name,
  :query_definition_id,
  :log_group_names,
  :query_string,
  :client_token)
  SENSITIVE = []
  include Aws::Structure
end