Stackdriver Monitoring V3 Client - Class BasicService (1.11.0)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class BasicService.

A well-known service type, defined by its service type and service labels.

Documentation and examples here.

Generated from protobuf message google.monitoring.v3.Service.BasicService

Namespace

Google \ Cloud \ Monitoring \ V3 \ Service

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ service_type string

The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here.

↳ service_labels array|Google\Protobuf\Internal\MapField

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here.

getServiceType

The type of service that this basic service defines, e.g.

APP_ENGINE service type. Documentation and valid values here.

Returns
Type Description
string

setServiceType

The type of service that this basic service defines, e.g.

APP_ENGINE service type. Documentation and valid values here.

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceLabels

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service.

Documentation and valid values for given service types here.

Returns
Type Description
Google\Protobuf\Internal\MapField

setServiceLabels

Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service.

Documentation and valid values for given service types here.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this