final case class MetricRule(selector: String = "", metricCosts: Map[String, Long] = ..., unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[MetricRule] with Product with Serializable

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

selector

Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

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.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[MetricRule], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetricRule
  2. Product
  3. Equals
  4. Updatable
  5. GeneratedMessage
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetricRule(selector: String = "", metricCosts: Map[String, Long] = ..., unknownFields: UnknownFieldSet = ...)

    selector

    Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

    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.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllMetricCosts(__vs: Iterable[(String, Long)]): MetricRule
  5. def addMetricCosts(__vs: (String, Long)*): MetricRule
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearMetricCosts: MetricRule
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def companion: MetricRule.type
    Definition Classes
    MetricRule → GeneratedMessage
  10. def discardUnknownFields: MetricRule
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    MetricRule → GeneratedMessage
  15. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    MetricRule → GeneratedMessage
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val metricCosts: Map[String, Long]
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. val selector: String
  22. def serializedSize: Int
    Definition Classes
    MetricRule → GeneratedMessage
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  25. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  26. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  27. def toProtoString: String
    Definition Classes
    MetricRule → GeneratedMessage
  28. val unknownFields: UnknownFieldSet
  29. def update(ms: (Lens[MetricRule, MetricRule]) ⇒ Mutation[MetricRule]*): MetricRule
    Definition Classes
    Updatable
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  33. def withMetricCosts(__v: Map[String, Long]): MetricRule
  34. def withSelector(__v: String): MetricRule
  35. def withUnknownFields(__v: UnknownFieldSet): MetricRule
  36. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  37. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    MetricRule → GeneratedMessage
  38. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[MetricRule]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped