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 \ ReportMethods
__construct
| Parameter | |
|---|---|
| Name | Description | 
| server | arrayAn array for holding the values. Normally just use $_SERVER. | 
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 | |