StateChangeMatch¶
| Field | Type | Description |
|---|---|---|
| from | Match conditions for the previous state. Leave empty to only match on the new value. | |
| to | 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 | 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"
}
}