public class Monitoring.Projects.MetricDescriptors
extends java.lang.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(java.lang.String name,
MetricDescriptor content)
Creates a new metric descriptor.
|
Monitoring.Projects.MetricDescriptors.Delete |
delete(java.lang.String name)
Deletes a metric descriptor.
|
Monitoring.Projects.MetricDescriptors.Get |
get(java.lang.String name)
Gets a single metric descriptor.
|
Monitoring.Projects.MetricDescriptors.List |
list(java.lang.String name)
Lists metric descriptors that match a filter.
|
public Monitoring.Projects.MetricDescriptors.Create create(java.lang.String name, MetricDescriptor content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The project on which to execute the request. The format is "projects/{project_id_or_number}".content - the MetricDescriptorjava.io.IOExceptionpublic Monitoring.Projects.MetricDescriptors.Delete delete(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - 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".java.io.IOExceptionpublic Monitoring.Projects.MetricDescriptors.Get get(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - 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".java.io.IOExceptionpublic Monitoring.Projects.MetricDescriptors.List list(java.lang.String name) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The project on which to execute the request. The format is "projects/{project_id_or_number}".java.io.IOException