Skip to content
View as Markdown

StateChangeMatch

Field Type Description
from bitdrift.public.unary.explorations.v1.StateCondition Match conditions for the previous state. Leave empty to only match on the new value.
to bitdrift.public.unary.explorations.v1.StateCondition Match conditions for the updated state. Leave empty to only match on the old value.
scope bitdrift.public.unary.explorations.v1.StateScope The scope of the state value being observed.
key string The key of the state value within the given scope.
generic_match bitdrift.public.unary.explorations.v1.GenericMatch Additional match conditions for this OOTB event. This is an AND in addition to the previously defined event.

Example

JSON
{
  "from": {
    "match_type": "STRING",
    "operator": "GREATER_THAN",
    "value": "example"
  },
  "generic_match": {
    "base_matcher": {
      "log_field": "field_name",
      "operator": "EQUAL",
      "string_value": "example"
    }
  },
  "key": "example-key",
  "scope": "GLOBAL_STATE",
  "to": {
    "match_type": "STRING",
    "operator": "GREATER_THAN",
    "value": "example"
  }
}