mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
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:
parent
59ac00478e
commit
c309560892
3 changed files with 12 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue