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

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 \ Report

Methods

__construct

Parameters
NameDescription
monitoredResourcearray

.https://cloud.google.com/logging/docs/reference/v2/rest/v2/MonitoredResource

projectIdstring

[optional]Defaults to ''

serviceIdstring

[optional]Defaults to ''

versionIdstring

[optional]Defaults to ''

labelsarray

[optional]Defaults to []

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.

Returns
TypeDescription
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.