Class: Google::Apis::MonitoringV3::JsonPathMatcher
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::JsonPathMatcher
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
Information needed to perform a JSONPath content match. Used for ContentMatcherOption::MATCHES_JSON_PATH and ContentMatcherOption:: NOT_MATCHES_JSON_PATH.
Instance Attribute Summary collapse
-
#json_matcher ⇒ String
The type of JSONPath match that will be applied to the JSON output ( ContentMatcher.content) Corresponds to the JSON property
jsonMatcher
. -
#json_path ⇒ String
JSONPath within the response output pointing to the expected ContentMatcher:: content to match against.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JsonPathMatcher
constructor
A new instance of JsonPathMatcher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JsonPathMatcher
Returns a new instance of JsonPathMatcher.
2069 2070 2071 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2069 def initialize(**args) update!(**args) end |
Instance Attribute Details
#json_matcher ⇒ String
The type of JSONPath match that will be applied to the JSON output (
ContentMatcher.content)
Corresponds to the JSON property jsonMatcher
2061 2062 2063 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2061 def json_matcher @json_matcher end |
#json_path ⇒ String
JSONPath within the response output pointing to the expected ContentMatcher::
content to match against.
Corresponds to the JSON property jsonPath
2067 2068 2069 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2067 def json_path @json_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2074 2075 2076 2077 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 2074 def update!(**args) @json_matcher = args[:json_matcher] if args.key?(:json_matcher) @json_path = args[:json_path] if args.key?(:json_path) end |