class ProjectsMonitoredResourceDescriptors extends Resource (View source)

The "monitoredResourceDescriptors" collection of methods.

Typical usage is:

 $monitoringService = new Google\Service\Monitoring(...);
 $monitoredResourceDescriptors = $monitoringService->projects_monitoredResourceDescriptors;

Methods

get(string $name, array $optParams = [])

Gets a single monitored resource descriptor.

listProjectsMonitoredResourceDescriptors(string $name, array $optParams = [])

Lists monitored resource descriptors that match a filter.

Details

MonitoredResourceDescriptor get(string $name, array $optParams = [])

Gets a single monitored resource descriptor.

(monitoredResourceDescriptors.get)

Parameters

string $name

Required. The monitored resource descriptor to get. The format is: projects/[PROJECT_ID_OR_NUMBER]/monitoredResourceDescriptors/[RESOURCE_TYPE] The [RESOURCE_TYPE] is a predefined type, such as cloudsql_database.

array $optParams

Optional parameters.

Return Value

MonitoredResourceDescriptor

Exceptions

Exception

ListMonitoredResourceDescriptorsResponse listProjectsMonitoredResourceDescriptors(string $name, array $optParams = [])

Lists monitored resource descriptors that match a filter.

(monitoredResourceDescriptors.listProjectsMonitoredResourceDescriptors)

Parameters

string $name

Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER]

array $optParams

Optional parameters.

Return Value

ListMonitoredResourceDescriptorsResponse

Exceptions

Exception