bbmetrics

package
v0.0.0-...-8ff35f7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bbmetrics contains metric related models shared between LUCI services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderTarget

type BuilderTarget struct {
	// Project is the LUCI project of the Builder.
	Project string
	// Bucket is the bucket name of the Builder.
	Bucket string
	// Builder is the name of the Builder.
	Builder string

	// ServiceName is the reporting service name.
	//
	// For a GAE app, typically, it will be the GAE application name.
	ServiceName string
	// JobName is the reporting service name.
	//
	// For a GAE app, typically, it will be the module name of the GAE
	// application.
	JobName string
	// InstanceID is the ID of the reporting instance.
	//
	// For a GAE app, typically, it will be the GAE host name.
	InstanceID string
}

BuilderTarget is a metric target that represents a LUCI Builder.

func (*BuilderTarget) Clone

func (b *BuilderTarget) Clone() types.Target

Clone returns a deep copy.

func (*BuilderTarget) Hash

func (b *BuilderTarget) Hash() uint64

Hash computes a hash of the Builder object.

func (*BuilderTarget) PopulateProto

func (b *BuilderTarget) PopulateProto(d *tsmonpb.MetricsCollection)

PopulateProto populates root labels into the proto for the target fields.

func (*BuilderTarget) Type

func (b *BuilderTarget) Type() types.TargetType

Type returns the metric type identification.

Jump to

Keyboard shortcuts

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