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

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

MetadataProvider for GAE.

Namespace

Google \ Cloud \ Core \ Report

Methods

__construct

Parameter
NameDescription
server array

An array for holding the values. Normally just use $_SERVER.

monitoredResource

Returns
TypeDescription
array

projectId

Return the project id.

Returns
TypeDescription
string

serviceId

Return the service id.

Returns
TypeDescription
string

versionId

Return the version id.

Returns
TypeDescription
string

labels

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

Returns
TypeDescription
array