Documentation ¶
Index ¶
- func FromMonitoringInfos(p *pipepb.Pipeline, attempted []*pipepb.MonitoringInfo, ...) *metrics.Results
- func Int64Counter(v int64) ([]byte, error)
- func Int64Distribution(count, sum, min, max int64) ([]byte, error)
- func Int64Latest(t time.Time, v int64) ([]byte, error)
- func UrnToString(u Urn) string
- func UrnToType(u Urn) string
- type Urn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromMonitoringInfos ¶
func FromMonitoringInfos(p *pipepb.Pipeline, attempted []*pipepb.MonitoringInfo, committed []*pipepb.MonitoringInfo) *metrics.Results
FromMonitoringInfos extracts metrics from monitored states and groups them into counters, distributions and gauges.
func Int64Counter ¶
Int64Counter returns an encoded payload of the integer counter.
func Int64Distribution ¶
Int64Distribution returns an encoded payload of the distribution of an integer value.
func Int64Latest ¶
Int64Latest returns an encoded payload of the latest seen integer value.
func UrnToString ¶
UrnToString returns a string representation of the urn.
Types ¶
type Urn ¶
type Urn uint32
Urn is an enum type for representing urns of metrics and monitored states.
const ( UrnUserSumInt64 Urn = iota UrnUserSumFloat64 UrnUserDistInt64 UrnUserDistFloat64 UrnUserLatestMsInt64 UrnUserLatestMsFloat64 UrnUserTopNInt64 UrnUserTopNFloat64 UrnUserBottomNInt64 UrnUserBottomNFloat64 UrnElementCount UrnSampledByteSize UrnStartBundle UrnProcessBundle UrnFinishBundle UrnTransformTotalTime UrnProgressRemaining UrnProgressCompleted UrnDataChannelReadIndex UrnTestSentinel // Must remain last. )
The supported urns of metrics and monitored states.
func ExecutionMsecUrn ¶ added in v2.35.0
ExecutionMsecUrn returns the Urn for the bundle state
Click to show internal directories.
Click to hide internal directories.