Class: Google::Apis::ServicenetworkingV1beta::LoggingDestination

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicenetworking_v1beta/classes.rb,
generated/google/apis/servicenetworking_v1beta/representations.rb,
generated/google/apis/servicenetworking_v1beta/representations.rb

Overview

Configuration of a specific logging destination (the producer project or the consumer project).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LoggingDestination

Returns a new instance of LoggingDestination



1716
1717
1718
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 1716

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#logsArray<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

Returns:

  • (Array<String>)


1708
1709
1710
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 1708

def logs
  @logs
end

#monitored_resourceString

The monitored resource type. The type must be defined in the Service.monitored_resources section. Corresponds to the JSON property monitoredResource

Returns:

  • (String)


1714
1715
1716
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 1714

def monitored_resource
  @monitored_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1721
1722
1723
1724
# File 'generated/google/apis/servicenetworking_v1beta/classes.rb', line 1721

def update!(**args)
  @logs = args[:logs] if args.key?(:logs)
  @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource)
end