Module Values.StateSource

Information that defines a state of a detector.

Sourcetype nonrec t = {
  1. stateName : StateName.t;
    (*

    The name of the state.

    *)
  2. onInput : OnInputLifecycle.t option;
    (*

    When an input is received and the condition is TRUE, perform the specified actions.

    *)
  3. onEnter : OnEnterLifecycle.t option;
    (*

    When entering this state, perform these actions if the condition is TRUE.

    *)
  4. onExit : OnExitLifecycle.t option;
    (*

    When exiting this state, perform these actions if the specified condition is TRUE.

    *)
}
Sourceval context_ : string
Sourceval make : ?onInput:??? -> ?onEnter:??? -> ?onExit:??? -> stateName:StateName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of StateName.t | `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `Boolean of UseBase64.t | `Integer of Seconds.t | `String of VariableName.t | `Structure of (string * [> `Enum of string | `String of ContentExpression.t | `Structure of (string * [> `String of AssetPropertyStringValue.t ]) list ]) list ]) list ]) list ] list | `String of EventName.t ]) list ] list ]) list ]) 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