Show / Hide Table of Contents

Class ProjectsResource.MetricDescriptorsResource

The "metricDescriptors" collection of methods.

Inheritance
object
ProjectsResource.MetricDescriptorsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Monitoring.v3
Assembly: Google.Apis.Monitoring.v3.dll
Syntax
public class ProjectsResource.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. The creation is executed asynchronously. User-created metric descriptors define custom metrics (https://cloud.google.com/monitoring/custom-metrics). The metric descriptor is updated if it already exists, except that metric labels are never removed.

Declaration
public virtual ProjectsResource.MetricDescriptorsResource.CreateRequest Create(MetricDescriptor body, string name)
Parameters
Type Name Description
MetricDescriptor body

The body of the request.

string 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_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
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.

Declaration
public virtual ProjectsResource.MetricDescriptorsResource.GetRequest Get(string name)
Parameters
Type Name Description
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.

Declaration
public virtual ProjectsResource.MetricDescriptorsResource.ListRequest List(string name)
Parameters
Type Name Description
string 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]

Returns
Type Description
ProjectsResource.MetricDescriptorsResource.ListRequest
In this article
Back to top Generated by DocFX