Documentation ¶
Index ¶
- type Service
- func (s *Service) ConstructMetricName(sourceNetworkId, targetNetworkId uint64, ...) (string, error)
- func (s *Service) CreateCounterIfNotExists(opts prometheus.CounterOpts) prometheus.Counter
- func (s *Service) CreateGaugeIfNotExists(opts prometheus.GaugeOpts) prometheus.Gauge
- func (s *Service) CreateSuccessRateGaugeIfNotExists(transactionId string, sourceChainId, targetChainId uint64, ...) (prometheus.Gauge, error)
- func (s *Service) DeleteCounter(name string)
- func (s *Service) DeleteGauge(name string)
- func (s *Service) GetCounter(name string) prometheus.Counter
- func (s *Service) GetGauge(name string) prometheus.Gauge
- func (s *Service) GetIsMonitoringEnabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ConstructMetricName ¶
func (*Service) CreateCounterIfNotExists ¶
func (s *Service) CreateCounterIfNotExists(opts prometheus.CounterOpts) prometheus.Counter
func (*Service) CreateGaugeIfNotExists ¶
func (s *Service) CreateGaugeIfNotExists(opts prometheus.GaugeOpts) prometheus.Gauge
func (*Service) CreateSuccessRateGaugeIfNotExists ¶
func (*Service) DeleteCounter ¶
func (*Service) DeleteGauge ¶
func (*Service) GetCounter ¶
func (s *Service) GetCounter(name string) prometheus.Counter
func (*Service) GetIsMonitoringEnabled ¶
Click to show internal directories.
Click to hide internal directories.