temporal

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricCollector

type MetricCollector struct {

	// Host & port of the Temporal server. Must be set before calling Open().
	Address string

	// Namespace to connect to. Must be set before calling Open().
	Namespace string

	// Certificate & key data. Optional. Must be set before calling Open().
	Cert []byte
	Key  []byte

	// Query string used to filter running workflows.
	Query string
	// contains filtered or unexported fields
}

func NewMetricCollector

func NewMetricCollector(name string) *MetricCollector

func (*MetricCollector) Close

func (c *MetricCollector) Close() error

func (*MetricCollector) CollectMetric

func (c *MetricCollector) CollectMetric(ctx context.Context, app string) (float64, error)

func (*MetricCollector) Name

func (c *MetricCollector) Name() string

func (*MetricCollector) Open

func (c *MetricCollector) Open() (err error)

Jump to

Keyboard shortcuts

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