PatternToken - Amazon CloudWatch Logs
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

PatternToken

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

For more information about patterns and tokens, see CreateLogAnomalyDetector.

Contents

dynamicTokenPosition

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.

Type: Integer

Required: No

enumerations

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

Type: String to long map

Key Length Constraints: Minimum length of 1.

Required: No

isDynamic

Specifies whether this is a dynamic token.

Type: Boolean

Required: No

tokenString

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

Type: String

Length Constraints: Minimum length of 1.

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: