Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyMetrics ¶
type DummyMetrics struct { }
DummyMetrics is a dummy implementation of Metric interface.
func NewDummyMetrics ¶
func NewDummyMetrics() *DummyMetrics
NewDummyMetrics returns a new instance of DummyMetrics.
func (*DummyMetrics) IncVaaFromMongoStream ¶
func (m *DummyMetrics) IncVaaFromMongoStream(chainID uint16)
IncVaaFromMongoStream increments the vaa received count from mongo stream.
func (*DummyMetrics) IncVaaSendNotification ¶
func (m *DummyMetrics) IncVaaSendNotification(chainID uint16)
IncVaaSendNotification increments the vaa received count send notification.
func (*DummyMetrics) IncVaaWithTxHashFixed ¶
func (m *DummyMetrics) IncVaaWithTxHashFixed(chainID uint16)
IncVaaWithTxHashFixed increments the vaa received count with tx hash fixed.
func (*DummyMetrics) IncVaaWithoutTxHash ¶
func (m *DummyMetrics) IncVaaWithoutTxHash(chainID uint16)
IncVaaWithoutTxHash increments the vaa received count without tx hash.
type Metrics ¶
type Metrics interface { IncVaaFromMongoStream(chainID uint16) IncVaaSendNotification(chainID uint16) IncVaaWithoutTxHash(chainID uint16) IncVaaWithTxHashFixed(chainID uint16) }
Metrics is a metrics interface.
type PrometheusMetrics ¶
type PrometheusMetrics struct {
// contains filtered or unexported fields
}
PrometheusMetrics is a metrics implementation for Prometheus.
func NewPrometheusMetrics ¶
func NewPrometheusMetrics(environment string) *PrometheusMetrics
NewPrometheusMetrics creates a new PrometheusMetrics.
func (*PrometheusMetrics) IncVaaFromMongoStream ¶
func (m *PrometheusMetrics) IncVaaFromMongoStream(chainID uint16)
IncVaaFromMongoStream increments the vaa received count from mongo stream.
func (*PrometheusMetrics) IncVaaSendNotification ¶
func (m *PrometheusMetrics) IncVaaSendNotification(chainID uint16)
IncVaaSendNotification increments the vaa received count send event to SNS.
func (*PrometheusMetrics) IncVaaWithTxHashFixed ¶
func (m *PrometheusMetrics) IncVaaWithTxHashFixed(chainID uint16)
IncVaaWithTxHashFixed increments the vaa received count with tx hash fixed.
func (*PrometheusMetrics) IncVaaWithoutTxHash ¶
func (m *PrometheusMetrics) IncVaaWithoutTxHash(chainID uint16)
IncVaaWithoutTxHash increments the vaa received count without tx hash.