Rename fields in EppMetrics and EntityIntegrityAlertsSchema

This is one of a series of CLs which will refactor EppMetrics into a value type
and Metrics into a stateless class which will have an export(EppMetrics requestDetails)
method to export EPP metrics in a stateless way. Once EppMetrics is a value
type, I will create a new StackdriverEppMetrics that will also accept the value
type via an incrementRequests(EppMetrics requestDetails), allowing us to
monitor EPP via BigQuery and Stackdriver with minimum code duplication.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=131711810
This commit is contained in:
shikhman 2016-08-30 08:20:26 -07:00 committed by Ben McIlwain
parent 59ac00478e
commit c309560892
3 changed files with 12 additions and 14 deletions

View file

@ -14,10 +14,6 @@
package google.registry.monitoring.whitebox;
import static google.registry.monitoring.whitebox.EntityIntegrityAlertsSchema.ENTITY_INTEGRITY_ALERTS_SCHEMA_FIELDS;
import static google.registry.monitoring.whitebox.EntityIntegrityAlertsSchema.TABLE_ID;
import static google.registry.monitoring.whitebox.EppMetrics.EPPMETRICS_SCHEMA_FIELDS;
import static google.registry.monitoring.whitebox.EppMetrics.EPPMETRICS_TABLE_ID;
import static google.registry.request.RequestParameters.extractRequiredParameter;
import com.google.api.services.bigquery.model.TableFieldSchema;
@ -37,16 +33,18 @@ import javax.servlet.http.HttpServletRequest;
@Module
public class WhiteboxModule {
@Provides @IntoMap
@StringKey(EPPMETRICS_TABLE_ID)
@Provides
@IntoMap
@StringKey(EppMetrics.TABLE_ID)
static ImmutableList<TableFieldSchema> provideEppMetricsSchema() {
return EPPMETRICS_SCHEMA_FIELDS;
return EppMetrics.SCHEMA_FIELDS;
}
@Provides @IntoMap
@StringKey(TABLE_ID)
@Provides
@IntoMap
@StringKey(EntityIntegrityAlertsSchema.TABLE_ID)
static ImmutableList<TableFieldSchema> provideEntityIntegrityAlertsSchema() {
return ENTITY_INTEGRITY_ALERTS_SCHEMA_FIELDS;
return EntityIntegrityAlertsSchema.SCHEMA_FIELDS;
}
@Provides