mirror of
https://github.com/google/nomulus.git
synced 2025-05-21 03:39:36 +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
|
@ -29,9 +29,9 @@ public class EppMetrics extends Metrics {
|
|||
|
||||
private static final String REQUEST_LOG_ID = "com.google.appengine.runtime.request_log_id";
|
||||
|
||||
static final String EPPMETRICS_TABLE_ID = "eppMetrics";
|
||||
static final String TABLE_ID = "eppMetrics";
|
||||
|
||||
static final ImmutableList<TableFieldSchema> EPPMETRICS_SCHEMA_FIELDS =
|
||||
static final ImmutableList<TableFieldSchema> SCHEMA_FIELDS =
|
||||
ImmutableList.of(
|
||||
new TableFieldSchema().setName("requestId").setType(FieldType.STRING.name()),
|
||||
new TableFieldSchema().setName("startTime").setType(FieldType.TIMESTAMP.name()),
|
||||
|
@ -45,7 +45,7 @@ public class EppMetrics extends Metrics {
|
|||
|
||||
@Inject
|
||||
public EppMetrics() {
|
||||
setTableId(EPPMETRICS_TABLE_ID);
|
||||
setTableId(TABLE_ID);
|
||||
fields.put("attempts", 0);
|
||||
fields.put("requestId", getCurrentEnvironment().getAttributes().get(REQUEST_LOG_ID).toString());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue