metrics

package
v1.3.1-0...-3e6a7c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

  • Copyright (c) 2018 VMware, Inc. *
  • Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
  • associated documentation files (the "Software"), to deal in the Software without restriction, including
  • without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  • copies of the Software, and to permit persons to whom the Software is furnished to do
  • so, subject to the following conditions: *
  • The above copyright notice and this permission notice shall be included in all copies or substantial
  • portions of the Software. *
  • THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
  • NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  • IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  • WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  • SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The implementation is derived from https://github.com/patrobinson/gokini

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitoringService

type MonitoringService interface {
	Init(appName, streamName, workerID string) error
	Start() error
	IncrRecordsProcessed(string, int)
	IncrBytesProcessed(string, int64)
	MillisBehindLatest(string, float64)
	LeaseGained(string)
	LeaseLost(string)
	LeaseRenewed(string)
	RecordGetRecordsTime(string, float64)
	RecordProcessRecordsTime(string, float64)
	Shutdown()
}

type NoopMonitoringService

type NoopMonitoringService struct{}

NoopMonitoringService implements MonitoringService by does nothing.

func (NoopMonitoringService) IncrBytesProcessed

func (NoopMonitoringService) IncrBytesProcessed(shard string, count int64)

func (NoopMonitoringService) IncrRecordsProcessed

func (NoopMonitoringService) IncrRecordsProcessed(shard string, count int)

func (NoopMonitoringService) Init

func (NoopMonitoringService) Init(appName, streamName, workerID string) error

func (NoopMonitoringService) LeaseGained

func (NoopMonitoringService) LeaseGained(shard string)

func (NoopMonitoringService) LeaseLost

func (NoopMonitoringService) LeaseLost(shard string)

func (NoopMonitoringService) LeaseRenewed

func (NoopMonitoringService) LeaseRenewed(shard string)

func (NoopMonitoringService) MillisBehindLatest

func (NoopMonitoringService) MillisBehindLatest(shard string, millSeconds float64)

func (NoopMonitoringService) RecordGetRecordsTime

func (NoopMonitoringService) RecordGetRecordsTime(shard string, time float64)

func (NoopMonitoringService) RecordProcessRecordsTime

func (NoopMonitoringService) RecordProcessRecordsTime(shard string, time float64)

func (NoopMonitoringService) Shutdown

func (NoopMonitoringService) Shutdown()

func (NoopMonitoringService) Start

func (NoopMonitoringService) Start() error

Directories

Path Synopsis
* Copyright (c) 2018 VMware, Inc.
* Copyright (c) 2018 VMware, Inc.
* Copyright (c) 2018 VMware, Inc.
* Copyright (c) 2018 VMware, Inc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL