mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Inject the BigQuery streaming metrics queue
This makes local development easier by allowing a stub to be injected for the queue. Based on Justin Graham's PR: https://github.com/google/nomulus/pull/51 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144439454
This commit is contained in:
parent
f7e84b56a0
commit
8f8d67a17b
3 changed files with 16 additions and 3 deletions
|
@ -14,9 +14,12 @@
|
|||
|
||||
package google.registry.monitoring.whitebox;
|
||||
|
||||
import static com.google.appengine.api.taskqueue.QueueFactory.getQueue;
|
||||
import static google.registry.monitoring.whitebox.BigQueryMetricsEnqueuer.QUEUE_BIGQUERY_STREAMING_METRICS;
|
||||
import static google.registry.request.RequestParameters.extractRequiredParameter;
|
||||
|
||||
import com.google.api.services.bigquery.model.TableFieldSchema;
|
||||
import com.google.appengine.api.taskqueue.Queue;
|
||||
import com.google.apphosting.api.ApiProxy;
|
||||
import com.google.common.base.Supplier;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
@ -80,4 +83,10 @@ public class WhiteboxModule {
|
|||
@Named("requestLogId") String requestLogId, Clock clock) {
|
||||
return EppMetric.builderForRequest(requestLogId, clock);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Named(QUEUE_BIGQUERY_STREAMING_METRICS)
|
||||
static Queue provideBigQueryStreamingMetricsQueue() {
|
||||
return getQueue(QUEUE_BIGQUERY_STREAMING_METRICS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue