Class: Aws::CloudWatchLogs::Types::PatternToken
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::PatternToken
- Defined in:
- gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb
Overview
A structure 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
-
#dynamic_token_position ⇒ Integer
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens.
-
#enumerations ⇒ Hash<String,Integer>
Contains the values found for a dynamic token, and the number of times each value was found.
-
#inferred_token_name ⇒ String
A name that CloudWatch Logs assigned to this dynamic token to make the pattern more readable.
-
#is_dynamic ⇒ Boolean
Specifies whether this is a dynamic token.
-
#token_string ⇒ String
The string represented by this token.
Instance Attribute Details
#dynamic_token_position ⇒ Integer
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.
7263 7264 7265 7266 7267 7268 7269 7270 7271 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 7263 class PatternToken < Struct.new( :dynamic_token_position, :is_dynamic, :token_string, :enumerations, :inferred_token_name) SENSITIVE = [] include Aws::Structure end |
#enumerations ⇒ Hash<String,Integer>
Contains the values found for a dynamic token, and the number of times each value was found.
7263 7264 7265 7266 7267 7268 7269 7270 7271 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 7263 class PatternToken < Struct.new( :dynamic_token_position, :is_dynamic, :token_string, :enumerations, :inferred_token_name) SENSITIVE = [] include Aws::Structure end |
#inferred_token_name ⇒ String
A name that CloudWatch Logs assigned to this dynamic token to make
the pattern more readable. The string part of the
inferredTokenName gives you a clearer idea of the content of this
token. The number part of the inferredTokenName shows where in the
pattern this token appears, compared to other dynamic tokens.
CloudWatch Logs assigns the string part of the name based on
analyzing the content of the log events that contain it.
For example, an inferred token name of IPAddress-3 means that the
token represents an IP address, and this token is the third dynamic
token in the pattern.
7263 7264 7265 7266 7267 7268 7269 7270 7271 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 7263 class PatternToken < Struct.new( :dynamic_token_position, :is_dynamic, :token_string, :enumerations, :inferred_token_name) SENSITIVE = [] include Aws::Structure end |
#is_dynamic ⇒ Boolean
Specifies whether this is a dynamic token.
7263 7264 7265 7266 7267 7268 7269 7270 7271 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 7263 class PatternToken < Struct.new( :dynamic_token_position, :is_dynamic, :token_string, :enumerations, :inferred_token_name) SENSITIVE = [] include Aws::Structure end |
#token_string ⇒ String
The string represented by this token. If this is a dynamic token,
the value will be <*>
7263 7264 7265 7266 7267 7268 7269 7270 7271 |
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 7263 class PatternToken < Struct.new( :dynamic_token_position, :is_dynamic, :token_string, :enumerations, :inferred_token_name) SENSITIVE = [] include Aws::Structure end |