public class Monitoring.Services extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Monitoring.Services.Create |
class |
Monitoring.Services.Delete |
class |
Monitoring.Services.Get |
class |
Monitoring.Services.List |
class |
Monitoring.Services.Patch |
class |
Monitoring.Services.ServiceLevelObjectives
The "serviceLevelObjectives" collection of methods.
|
| Constructor and Description |
|---|
Services() |
| Modifier and Type | Method and Description |
|---|---|
Monitoring.Services.Create |
create(String parent,
Service content)
Create a Service.
|
Monitoring.Services.Delete |
delete(String name)
Soft delete this Service.
|
Monitoring.Services.Get |
get(String name)
Get the named Service.
|
Monitoring.Services.List |
list(String parent)
List Services for this Metrics Scope.
|
Monitoring.Services.Patch |
patch(String name,
Service content)
Update this Service.
|
Monitoring.Services.ServiceLevelObjectives |
serviceLevelObjectives()
An accessor for creating requests from the ServiceLevelObjectives collection.
|
public Monitoring.Services.Create create(String parent, Service content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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]content - the ServiceIOExceptionpublic Monitoring.Services.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Resource name of the Service to delete. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]IOExceptionpublic Monitoring.Services.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. Resource name of the Service. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]IOExceptionpublic Monitoring.Services.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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]IOExceptionpublic Monitoring.Services.Patch patch(String name, Service content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Identifier. Resource name for this Service. The format is:
projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID]content - the ServiceIOExceptionpublic Monitoring.Services.ServiceLevelObjectives serviceLevelObjectives()
The typical use is:
Monitoring monitoring = new Monitoring(...);Monitoring.ServiceLevelObjectives.List request = monitoring.serviceLevelObjectives().list(parameters ...)
Copyright © 2011–2025 Google. All rights reserved.