Show / Hide Table of Contents

Class MetricRule

Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.

Inheritance
System.Object
MetricRule
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.ServiceUsage.v1.Data
Assembly: Google.Apis.ServiceUsage.v1.dll
Syntax
public class MetricRule : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

MetricCosts

Metrics to update when the selected methods are called, and the associated cost applied to each metric. The key of the map is the metric name, and the values are the amount increased for the metric against which the quota limits are defined. The value must not be negative.

Declaration
[JsonProperty("metricCosts")]
public virtual IDictionary<string, long?> MetricCosts { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Nullable<System.Int64>>

Selector

Selects the methods to which this rule applies. Refer to selector for syntax details.

Declaration
[JsonProperty("selector")]
public virtual string Selector { get; set; }
Property Value
Type Description
System.String

Implements

IDirectResponseSchema
In This Article
Back to top