Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class CloudRunServiceMetadataProvider (1.61.0)

Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class CloudRunServiceMetadataProvider.

A MetadataProvider for Cloud Run Services.

Namespace

Google \ Cloud \ Core \ Report

Methods

__construct

Parameters
Name Description
env array
metadata ?\Google\Cloud\Core\Compute\Metadata

monitoredResource

Return an array representing MonitoredResource.

Returns
Type Description
array

projectId

Return the project id.

Returns
Type Description
string

serviceId

Return the service id.

Returns
Type Description
string

versionId

Return the version id.

Returns
Type Description
string

labels

Return the labels. We need to evaluate $_SERVER for each request.

Returns
Type Description
array