Show / Hide Table of Contents

Class ProjectsResource.MetricDescriptorsResource.ListRequest

Lists metric descriptors that match a filter.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<ListMetricDescriptorsResponse>
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>
ProjectsResource.MetricDescriptorsResource.ListRequest
Implements
IClientServiceRequest<ListMetricDescriptorsResponse>
IClientServiceRequest
Inherited Members
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.Xgafv
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.AccessToken
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.Alt
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.Callback
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.Fields
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.Key
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.OauthToken
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.PrettyPrint
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.QuotaUser
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.UploadType
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.UploadProtocol
ClientServiceRequest<ListMetricDescriptorsResponse>.Execute()
ClientServiceRequest<ListMetricDescriptorsResponse>.ExecuteAsStream()
ClientServiceRequest<ListMetricDescriptorsResponse>.ExecuteAsync()
ClientServiceRequest<ListMetricDescriptorsResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ListMetricDescriptorsResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ListMetricDescriptorsResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ListMetricDescriptorsResponse>.CreateRequest(bool?)
ClientServiceRequest<ListMetricDescriptorsResponse>.GenerateRequestUri()
ClientServiceRequest<ListMetricDescriptorsResponse>.GetBody()
ClientServiceRequest<ListMetricDescriptorsResponse>.GetDefaultETagAction(string)
ClientServiceRequest<ListMetricDescriptorsResponse>.ETagAction
ClientServiceRequest<ListMetricDescriptorsResponse>.ModifyRequest
ClientServiceRequest<ListMetricDescriptorsResponse>.ValidateParameters
ClientServiceRequest<ListMetricDescriptorsResponse>.ApiVersion
ClientServiceRequest<ListMetricDescriptorsResponse>.RequestParameters
ClientServiceRequest<ListMetricDescriptorsResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
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.ListRequest : MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>, IClientServiceRequest<ListMetricDescriptorsResponse>, IClientServiceRequest

Constructors

ListRequest(IClientService, string)

Constructs a new List request.

Declaration
public ListRequest(IClientService service, string name)
Parameters
Type Name Description
IClientService service
string name

Properties

ActiveOnly

Optional. If true, only metrics and monitored resource types that have recent data (within roughly 25 hours) will be included in the response. - If a metric descriptor enumerates monitored resource types, only the monitored resource types for which the metric type has recent data will be included in the returned metric descriptor, and if none of them have recent data, the metric descriptor will not be returned. - If a metric descriptor does not enumerate the compatible monitored resource types, it will be returned only if the metric type has recent data for some monitored resource type. The returned descriptor will not enumerate any monitored resource types.

Declaration
[RequestParameter("activeOnly", RequestParameterType.Query)]
public virtual bool? ActiveOnly { get; set; }
Property Value
Type Description
bool?

Filter

Optional. If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/filters) specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics (https://cloud.google.com/monitoring/custom-metrics): metric.type = starts_with("custom.googleapis.com/")

Declaration
[RequestParameter("filter", RequestParameterType.Query)]
public virtual string Filter { get; set; }
Property Value
Type Description
string

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListMetricDescriptorsResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListMetricDescriptorsResponse>.MethodName

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]

Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type Description
string

PageSize

Optional. A positive number that is the maximum number of results to return. The default and maximum value is 10,000. If a page_size &lt;= 0 or &gt; 10,000 is submitted, will instead return a maximum of 10,000 results.

Declaration
[RequestParameter("pageSize", RequestParameterType.Query)]
public virtual int? PageSize { get; set; }
Property Value
Type Description
int?

PageToken

Optional. If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.

Declaration
[RequestParameter("pageToken", RequestParameterType.Query)]
public virtual string PageToken { get; set; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ListMetricDescriptorsResponse>.RestPath

Methods

InitParameters()

Initializes List parameter list.

Declaration
protected override void InitParameters()
Overrides
MonitoringBaseServiceRequest<ListMetricDescriptorsResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX