Class: Google::Apis::ServicemanagementV1::LoggingDestination
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ServicemanagementV1::LoggingDestination
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicemanagement_v1/classes.rb,
 generated/google/apis/servicemanagement_v1/representations.rb,
 generated/google/apis/servicemanagement_v1/representations.rb
Overview
Configuration of a specific logging destination (the producer project or the consumer project).
Instance Attribute Summary collapse
- 
  
    
      #logs  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Names of the logs to be sent to this destination. 
- 
  
    
      #monitored_resource  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The monitored resource type. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ LoggingDestination 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of LoggingDestination. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ LoggingDestination
Returns a new instance of LoggingDestination
| 2171 2172 2173 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2171 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#logs ⇒ Array<String>
Names of the logs to be sent to this destination. Each name must
be defined in the Service.logs section. If the log name is
not a domain scoped name, it will be automatically prefixed with
the service name followed by "/".
Corresponds to the JSON property logs
| 2163 2164 2165 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2163 def logs @logs end | 
#monitored_resource ⇒ String
The monitored resource type. The type must be defined in the
Service.monitored_resources section.
Corresponds to the JSON property monitoredResource
| 2169 2170 2171 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2169 def monitored_resource @monitored_resource end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2176 2177 2178 2179 | # File 'generated/google/apis/servicemanagement_v1/classes.rb', line 2176 def update!(**args) @logs = args[:logs] if args.key?(:logs) @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource) end |