Skip to content
View as Markdown

StateChangeMatch

Source definition: src/bitdrift/public/unary/workflows/v1/workflow.proto#L216-L232

Field Type Description
from bitdrift.public.unary.workflows.v1.StateCondition Match conditions for the previous state. Leave empty to only match on the new value.
to bitdrift.public.unary.workflows.v1.StateCondition Match conditions for the updated state. Leave empty to only match on the old value.
scope bitdrift.public.unary.workflows.v1.StateScope
must be a defined enum value
The scope of the state value being observed.
key string
up to 100 chars
The key of the state value within the given scope.
generic_match bitdrift.public.unary.workflows.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"
  }
}