Class ProjectsResource.MetricDescriptorsResource
The "metricDescriptors" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Monitoring.v3
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class MetricDescriptorsResource
Constructors
MetricDescriptorsResource(IClientService)
Constructs a new resource.
Declaration
public MetricDescriptorsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(MetricDescriptor, String)
Creates a new metric descriptor. User-created metric descriptors define custom metrics (https://cloud.google.com/monitoring/custom-metrics).
Declaration
public virtual ProjectsResource.MetricDescriptorsResource.CreateRequest Create(MetricDescriptor body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| MetricDescriptor | body | The body of the request. |
| System.String | name | Required. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] |
Returns
| Type | Description |
|---|---|
| ProjectsResource.MetricDescriptorsResource.CreateRequest |
Delete(String)
Deletes a metric descriptor. Only user-created custom metrics (https://cloud.google.com/monitoring/custom-metrics) can be deleted.
Declaration
public virtual ProjectsResource.MetricDescriptorsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | 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". |
Returns
| Type | Description |
|---|---|
| ProjectsResource.MetricDescriptorsResource.DeleteRequest |
Get(String)
Gets a single metric descriptor. This method does not require a Workspace.
Declaration
public virtual ProjectsResource.MetricDescriptorsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | 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". |
Returns
| Type | Description |
|---|---|
| ProjectsResource.MetricDescriptorsResource.GetRequest |
List(String)
Lists metric descriptors that match a filter. This method does not require a Workspace.
Declaration
public virtual ProjectsResource.MetricDescriptorsResource.ListRequest List(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Required. The project on which to execute the request. The format is: projects/[PROJECT_ID_OR_NUMBER] |
Returns
| Type | Description |
|---|---|
| ProjectsResource.MetricDescriptorsResource.ListRequest |