timeseries

package
v0.0.0-...-137d9d8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package timeseries has cloud monitoring timeseries related helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBool

func BuildBool(p Params) *mrpb.TimeSeries

BuildBool builds a cloud monitoring timeseries with boolean point.

func BuildFloat64

func BuildFloat64(p Params) *mrpb.TimeSeries

BuildFloat64 builds a cloud monitoring timeseries with float64 point.

func BuildInt

func BuildInt(p Params) *mrpb.TimeSeries

BuildInt builds a cloud monitoring timeseries with Int64 point.

Types

type Params

type Params struct {
	BareMetal    bool
	CloudProp    *metadataserver.CloudProperties
	MetricType   string
	MetricLabels map[string]string
	MetricKind   mpb.MetricDescriptor_MetricKind
	StartTime    *tpb.Timestamp
	Timestamp    *tpb.Timestamp
	Int64Value   int64
	Float64Value float64
	BoolValue    bool
}

Params has the necessary data to create a timeseries points.

Jump to

Keyboard shortcuts

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