class
Amazonite::CloudWatchLogs::PatternToken
- Amazonite::CloudWatchLogs::PatternToken
- Reference
- Object
Overview
A structure that contains information about one pattern token related to an anomaly.
For more information about patterns and tokens, see CreateLogAnomalyDetector.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/pattern_token.crConstructors
- .new(pull : JSON::PullParser)
- .new(dynamic_token_position : Int32 | Nil = nil, is_dynamic : Bool | Nil = nil, token_string : String | Nil = nil, enumerations : Hash(String, Int64) | Nil = nil, inferred_token_name : String | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#dynamic_token_position : Int32 | Nil
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens.
-
#dynamic_token_position=(dynamic_token_position : Int32 | Nil)
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens.
-
#enumerations : Hash(String, Int64) | Nil
Contains the values found for a dynamic token, and the number of times each value was found.
-
#enumerations=(enumerations : Hash(String, Int64) | Nil)
Contains the values found for a dynamic token, and the number of times each value was found.
-
#hash(hasher)
See
Object#hash(hasher) -
#inferred_token_name : String | Nil
A name that CloudWatch Logs assigned to this dynamic token to make the pattern more readable.
-
#inferred_token_name=(inferred_token_name : String | Nil)
A name that CloudWatch Logs assigned to this dynamic token to make the pattern more readable.
-
#is_dynamic : Bool | Nil
Specifies whether this is a dynamic token.
-
#is_dynamic=(is_dynamic : Bool | Nil)
Specifies whether this is a dynamic token.
-
#token_string : String | Nil
The string represented by this token.
-
#token_string=(token_string : String | Nil)
The string represented by this token.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
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.
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.
Contains the values found for a dynamic token, and the number of times each value was found.
Contains the values found for a dynamic token, and the number of times each value was found.
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.
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.
The string represented by this token. If this is a dynamic token, the value will be ``
The string represented by this token. If this is a dynamic token, the value will be ``