public class Monitoring.Projects.MetricDescriptors extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Monitoring.Projects.MetricDescriptors.Create |
class |
Monitoring.Projects.MetricDescriptors.Delete |
class |
Monitoring.Projects.MetricDescriptors.Get |
class |
Monitoring.Projects.MetricDescriptors.List |
| Constructor and Description |
|---|
MetricDescriptors() |
| Modifier and Type | Method and Description |
|---|---|
Monitoring.Projects.MetricDescriptors.Create |
create(String name,
MetricDescriptor content)
Creates a new metric descriptor.
|
Monitoring.Projects.MetricDescriptors.Delete |
delete(String name)
Deletes a metric descriptor.
|
Monitoring.Projects.MetricDescriptors.Get |
get(String name)
Gets a single metric descriptor.
|
Monitoring.Projects.MetricDescriptors.List |
list(String name)
Lists metric descriptors that match a filter.
|
public Monitoring.Projects.MetricDescriptors.Create create(String name, MetricDescriptor content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The project (https://cloud.google.com/monitoring/api/v3#project_name) on which to execute
the request. The format is: 4 projects/PROJECT_ID_OR_NUMBERcontent - the MetricDescriptorIOExceptionpublic Monitoring.Projects.MetricDescriptors.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The metric descriptor on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] An example of [METRIC_ID]
is: "custom.googleapis.com/my_test_metric".IOExceptionpublic Monitoring.Projects.MetricDescriptors.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The metric descriptor on which to execute the request. The format is:
projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID] An example value of
[METRIC_ID] is "compute.googleapis.com/instance/disk/read_bytes_count".IOExceptionpublic Monitoring.Projects.MetricDescriptors.List list(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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]IOExceptionCopyright © 2011–2025 Google. All rights reserved.