public interface HealthTracker
Modifier and Type | Field and Description |
---|---|
static String |
UNDELIVERED_FILTER_TEMPLATE
Template for undelivered messages filter.
|
Modifier and Type | Method and Description |
---|---|
long |
messagesOverThreshold()
If messages have been processed recently returns zero.
|
void |
processedMessage()
Record that a message has been processed.
|
com.google.pubsub.v1.ProjectSubscriptionName |
subscription()
Accessor for the Subscription being monitored by the tracker.
|
default String |
undeliveredFilter(String subscriptionId)
Creates a GCP Monitoring filter to query the message backlog of a Pub/Sub subscription.
|
static final String UNDELIVERED_FILTER_TEMPLATE
void processedMessage()
com.google.pubsub.v1.ProjectSubscriptionName subscription()
long messagesOverThreshold()
default String undeliveredFilter(String subscriptionId)
subscriptionId
- the subscription id to add to the filter.Copyright © 2021. All rights reserved.