Class: Google::Apis::ServiceusageV1beta1::LoggingDestination

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LoggingDestination

Returns a new instance of LoggingDestination.



3323
3324
3325
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 3323

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>)


3315
3316
3317
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 3315

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)


3321
3322
3323
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 3321

def monitored_resource
  @monitored_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3328
3329
3330
3331
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 3328

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