class ServicesServiceLevelObjectives extends Resource (View source)

The "serviceLevelObjectives" collection of methods.

Typical usage is:

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

Methods

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

Create a ServiceLevelObjective for the given Service.

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

Delete the given ServiceLevelObjective. (serviceLevelObjectives.delete)

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

Get a ServiceLevelObjective by name. (serviceLevelObjectives.get)

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

List the ServiceLevelObjectives for the given Service.

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

Update the given ServiceLevelObjective. (serviceLevelObjectives.patch)

Details

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

Create a ServiceLevelObjective for the given Service.

(serviceLevelObjectives.create)

Parameters

string $parent

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

ServiceLevelObjective $postBody
array $optParams

Optional parameters.

Return Value

ServiceLevelObjective

Exceptions

Exception

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

Delete the given ServiceLevelObjective. (serviceLevelObjectives.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

MonitoringEmpty

Exceptions

Exception

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

Get a ServiceLevelObjective by name. (serviceLevelObjectives.get)

Parameters

string $name

Required. Resource name of the ServiceLevelObjective to get. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/ser viceLevelObjectives/[SLO_NAME]

array $optParams

Optional parameters.

Return Value

ServiceLevelObjective

Exceptions

Exception

ListServiceLevelObjectivesResponse listServicesServiceLevelObjectives(string $parent, array $optParams = [])

List the ServiceLevelObjectives for the given Service.

(serviceLevelObjectives.listServicesServiceLevelObjectives)

Parameters

string $parent

Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] workspaces/[HOST_PROJECT_ID_OR_NUMBER]/services/-

array $optParams

Optional parameters.

Return Value

ListServiceLevelObjectivesResponse

Exceptions

Exception

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

Update the given ServiceLevelObjective. (serviceLevelObjectives.patch)

Parameters

string $name

Identifier. Resource name for this ServiceLevelObjective. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]/serviceL evelObjectives/[SLO_NAME]

ServiceLevelObjective $postBody
array $optParams

Optional parameters.

Return Value

ServiceLevelObjective

Exceptions

Exception