Module Values.PatternTokenSource

A structure that contains information about one pattern token related to an anomaly. For more information about patterns and tokens, see CreateLogAnomalyDetector.

Sourcetype nonrec t = {
  1. dynamicTokenPosition : DynamicTokenPosition.t option;
    (*

    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.

    *)
  2. isDynamic : Boolean.t option;
    (*

    Specifies whether this is a dynamic token.

    *)
  3. tokenString : TokenString.t option;
    (*

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

    *)
  4. enumerations : Enumerations.t option;
    (*

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

    *)
  5. inferredTokenName : InferredTokenName.t option;
    (*

    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.

    *)
}
Sourceval make : ?dynamicTokenPosition:??? -> ?isDynamic:??? -> ?tokenString:??? -> ?enumerations:??? -> ?inferredTokenName:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Integer of DynamicTokenPosition.t | `Map of ([> `String of TokenString.t ] * [> `Long of TokenValue.t ]) list | `String of TokenString.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t