class Services extends Resource (View source)

The "services" collection of methods.

Typical usage is:

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

Methods

create(string $parent, Service $postBody, array $optParams = [])

Create a Service. (services.create)

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

Soft delete this Service. (services.delete)

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

Get the named Service. (services.get)

listServices(string $parent, array $optParams = [])

List Services for this Metrics Scope. (services.listServices)

patch(string $name, Service $postBody, array $optParams = [])

Update this Service. (services.patch)

Details

Service create(string $parent, Service $postBody, array $optParams = [])

Create a Service. (services.create)

Parameters

string $parent

Required. Resource name (https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/[PROJECT_ID_OR_NUMBER]

Service $postBody
array $optParams

Optional parameters.

Return Value

Service

Exceptions

Exception

MonitoringEmpty delete(string $name, array $optParams = [])

Soft delete this Service. (services.delete)

Parameters

string $name

Required. Resource name of the Service to delete. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

array $optParams

Optional parameters.

Return Value

MonitoringEmpty

Exceptions

Exception

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

Get the named Service. (services.get)

Parameters

string $name

Required. Resource name of the Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

array $optParams

Optional parameters.

Return Value

Service

Exceptions

Exception

ListServicesResponse listServices(string $parent, array $optParams = [])

List Services for this Metrics Scope. (services.listServices)

Parameters

string $parent

Required. Resource name of the parent containing the listed services, either a project (https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/[PROJECT_ID_OR_NUMBER] workspaces/[HOST_PROJECT_ID_OR_NUMBER]

array $optParams

Optional parameters.

Return Value

ListServicesResponse

Exceptions

Exception

Service patch(string $name, Service $postBody, array $optParams = [])

Update this Service. (services.patch)

Parameters

string $name

Identifier. Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]

Service $postBody
array $optParams

Optional parameters.

Return Value

Service

Exceptions

Exception