Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v4.99.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceName = "io.cloudquery"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func NewMetrics added in v4.87.3

func NewMetrics() *Metrics

func (*Metrics) AddErrors added in v4.87.3

func (m *Metrics) AddErrors(ctx context.Context, count int64, selector Selector)

func (*Metrics) AddPanics added in v4.87.3

func (m *Metrics) AddPanics(ctx context.Context, count int64, selector Selector)

func (*Metrics) AddResources added in v4.87.3

func (m *Metrics) AddResources(ctx context.Context, count int64, selector Selector)

func (*Metrics) EndTime added in v4.87.3

func (m *Metrics) EndTime(ctx context.Context, end time.Time, selector Selector)

func (*Metrics) GetDuration added in v4.87.3

func (m *Metrics) GetDuration(selector Selector) time.Duration

func (*Metrics) GetErrors added in v4.87.3

func (m *Metrics) GetErrors(selector Selector) uint64

func (*Metrics) GetPanics added in v4.87.3

func (m *Metrics) GetPanics(selector Selector) uint64

func (*Metrics) GetResources added in v4.87.3

func (m *Metrics) GetResources(selector Selector) uint64

func (*Metrics) InitWithClients

func (m *Metrics) InitWithClients(table *schema.Table, clients []schema.ClientMeta)

func (*Metrics) NewSelector added in v4.87.3

func (*Metrics) NewSelector(clientID, tableName string) Selector

func (*Metrics) StartTime added in v4.87.3

func (m *Metrics) StartTime(start time.Time, selector Selector)

func (*Metrics) TableDuration added in v4.87.3

func (m *Metrics) TableDuration(tableName string) time.Duration

func (*Metrics) TotalErrors

func (m *Metrics) TotalErrors() uint64

func (*Metrics) TotalErrorsAtomic deprecated

func (m *Metrics) TotalErrorsAtomic() uint64

Deprecated: Use TotalErrors instead, it provides the same functionality but is more consistent with the naming of other metrics methods.

func (*Metrics) TotalPanics

func (m *Metrics) TotalPanics() uint64

func (*Metrics) TotalPanicsAtomic deprecated

func (m *Metrics) TotalPanicsAtomic() uint64

Deprecated: Use TotalPanics instead, it provides the same functionality but is more consistent with the naming of other metrics methods.

func (*Metrics) TotalResources

func (m *Metrics) TotalResources() uint64

func (*Metrics) TotalResourcesAtomic deprecated

func (m *Metrics) TotalResourcesAtomic() uint64

Deprecated: Use TotalResources instead, it provides the same functionality but is more consistent with the naming of other metrics methods.

type Selector added in v4.87.3

type Selector struct {
	attribute.Set
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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