File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
src/bitdrift_public/protobuf Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ message LogMatcher {
4141 value_matcher.v1.SemVerValueMatch sem_ver_value_match = 4 ;
4242 value_matcher.v1.IsSetMatch is_set_match = 5 ;
4343 value_matcher.v1.DoubleValueMatch double_value_match = 6 ;
44+ value_matcher.v1.JsonPathValueMatch json_value_match = 7 ;
4445 }
4546 }
4647
Original file line number Diff line number Diff line change @@ -62,5 +62,22 @@ message SemVerValueMatch {
6262 string match_value = 2 [(validate.rules ).string = {min_len : 1 }];
6363}
6464
65+ message JsonPathValueMatch {
66+ Operator operator = 1 [(validate.rules ) .enum.defined_only = true ];
67+ message JsonPath {
68+ message KeyOrIndex {
69+ oneof key_or_index {
70+ option (validate.required ) = true ;
71+
72+ string key = 1 [(validate.rules ).string = {min_len : 1 }];
73+ int32 index = 2 ;
74+ }
75+ }
76+
77+ string path = 1 [(validate.rules ).string = {min_len : 1 }];
78+ }
79+ string match_value = 2 [(validate.rules ).string = {min_len : 1 }];
80+ }
81+
6582// Matcher to evaluate whether a value is set.
6683message IsSetMatch {}
You can’t perform that action at this time.
0 commit comments