ApiMetricCost

com.google.api.server.spi.config

Annotation Type ApiMetricCost



  • public @interface ApiMetricCost
    Metric cost definition for a method.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element and Description
      int cost
      The cost charged to the metric.
      java.lang.String name
      The metric name, which must be defined using ApiLimitMetric.
    • Element Detail

      • name

        public abstract java.lang.String name
        The metric name, which must be defined using ApiLimitMetric.
      • cost

        public abstract int cost
        The cost charged to the metric.