Google API Common Protos Client - Class LoggingDestination (4.8.2)

Reference documentation and code samples for the Google API Common Protos Client class LoggingDestination.

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

Generated from protobuf message google.api.Logging.LoggingDestination

Namespace

Google \ Api \ Logging

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ monitored_resource string

The monitored resource type. The type must be defined in the Service.monitored_resources section.

↳ logs array

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 "/".

getMonitoredResource

The monitored resource type. The type must be defined in the Service.monitored_resources section.

Returns
Type Description
string

setMonitoredResource

The monitored resource type. The type must be defined in the Service.monitored_resources section.

Parameter
Name Description
var string
Returns
Type Description
$this

getLogs

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 "/".

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLogs

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 "/".

Parameter
Name Description
var string[]
Returns
Type Description
$this