Refactor Stackdriver-over-REST specific code to a different package

Downstream users who use gRPC rather than REST don't want to pull down
rest-related dependencies.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=145834701
This commit is contained in:
shikhman 2017-01-27 14:07:59 -08:00 committed by Ben McIlwain
parent bfc4841761
commit 3f9c53b850
10 changed files with 12 additions and 1127 deletions

View file

@ -17,6 +17,7 @@ package google.registry.monitoring.metrics;
import static com.google.common.base.Preconditions.checkArgument;
import com.google.auto.value.AutoValue;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableSet;
/** The description of a metric's schema. */
@ -36,7 +37,8 @@ public abstract class MetricSchema {
* code as a label. If labels are set, corresponding label values must be provided when values
* are set. The set of labels may be empty.
*/
static MetricSchema create(
@VisibleForTesting
public static MetricSchema create(
String name,
String description,
String valueDisplayName,