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.
      2097 2098 2099  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 2097 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
      2089 2090 2091  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 2089 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
      2095 2096 2097  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 2095 def json_path @json_path end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2102 2103 2104 2105  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 2102 def update!(**args) @json_matcher = args[:json_matcher] if args.key?(:json_matcher) @json_path = args[:json_path] if args.key?(:json_path) end  |