Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class SimpleMetadataProvider (1.71.1) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class SimpleMetadataProvider.
Simple MetadataProvider.
Namespace
Google \ Cloud \ Core \ ReportMethods
__construct
| Parameters | |
|---|---|
| Name | Description |
monitoredResource | array.https://cloud.google.com/logging/docs/reference/v2/rest/v2/MonitoredResource |
projectId | string[optional]Defaults to '' |
serviceId | string[optional]Defaults to '' |
versionId | string[optional]Defaults to '' |
labels | array[optional]Defaults to [] |
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.
| Returns | |
|---|---|
| Type | Description |
array | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-24 UTC.