Class: Aws::CloudWatchLogs::Types::PatternToken

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

Overview

A tructures that contains information about one pattern token related to an anomaly.

For more information about patterns and tokens, see CreateLogAnomalyDetector.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#dynamic_token_positionInteger

For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens. The dynamic token that appears first has a value of 1, the one that appears second is 2, and so on.

Returns:

  • (Integer)


3470
3471
3472
3473
3474
3475
3476
3477
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3470

class PatternToken < Struct.new(
  :dynamic_token_position,
  :is_dynamic,
  :token_string,
  :enumerations)
  SENSITIVE = []
  include Aws::Structure
end

#enumerationsHash<String,Integer>

Contains the values found for a dynamic token, and the number of times each value was found.

Returns:

  • (Hash<String,Integer>)


3470
3471
3472
3473
3474
3475
3476
3477
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3470

class PatternToken < Struct.new(
  :dynamic_token_position,
  :is_dynamic,
  :token_string,
  :enumerations)
  SENSITIVE = []
  include Aws::Structure
end

#is_dynamicBoolean

Specifies whether this is a dynamic token.

Returns:

  • (Boolean)


3470
3471
3472
3473
3474
3475
3476
3477
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3470

class PatternToken < Struct.new(
  :dynamic_token_position,
  :is_dynamic,
  :token_string,
  :enumerations)
  SENSITIVE = []
  include Aws::Structure
end

#token_stringString

The string represented by this token. If this is a dynamic token, the value will be <*>

Returns:

  • (String)


3470
3471
3472
3473
3474
3475
3476
3477
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 3470

class PatternToken < Struct.new(
  :dynamic_token_position,
  :is_dynamic,
  :token_string,
  :enumerations)
  SENSITIVE = []
  include Aws::Structure
end