class LoggingDestination extends Message

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

Generated from protobuf message google.api.Logging.LoggingDestination

Methods

__construct(array $data = NULL)

Constructor.

string
getMonitoredResource()

The monitored resource type. The type must be defined in the [Service.monitored_resources][google.api.Service.monitored_resources] section.

$this
setMonitoredResource(string $var)

The monitored resource type. The type must be defined in the [Service.monitored_resources][google.api.Service.monitored_resources] section.

RepeatedField
getLogs()

Names of the logs to be sent to this destination. Each name must be defined in the [Service.logs][google.api.Service.logs] section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

$this
setLogs(string[]|RepeatedField $var)

Names of the logs to be sent to this destination. Each name must be defined in the [Service.logs][google.api.Service.logs] section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

Details

at line 52
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $monitored_resource
      The monitored resource type. The type must be defined in the
      [Service.monitored_resources][google.api.Service.monitored_resources] section.
@type string[]|\Google\Protobuf\Internal\RepeatedField $logs
      Names of the logs to be sent to this destination. Each name must
      be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
      not a domain scoped name, it will be automatically prefixed with
      the service name followed by "/".

}

at line 64
string getMonitoredResource()

The monitored resource type. The type must be defined in the [Service.monitored_resources][google.api.Service.monitored_resources] section.

Generated from protobuf field string monitored_resource = 3;

Return Value

string

at line 77
$this setMonitoredResource(string $var)

The monitored resource type. The type must be defined in the [Service.monitored_resources][google.api.Service.monitored_resources] section.

Generated from protobuf field string monitored_resource = 3;

Parameters

string $var

Return Value

$this

at line 94
RepeatedField getLogs()

Names of the logs to be sent to this destination. Each name must be defined in the [Service.logs][google.api.Service.logs] section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

Generated from protobuf field repeated string logs = 1;

Return Value

RepeatedField

at line 109
$this setLogs(string[]|RepeatedField $var)

Names of the logs to be sent to this destination. Each name must be defined in the [Service.logs][google.api.Service.logs] section. If the log name is not a domain scoped name, it will be automatically prefixed with the service name followed by "/".

Generated from protobuf field repeated string logs = 1;

Parameters

string[]|RepeatedField $var

Return Value

$this