timeseries

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package timeseries has cloudmonitoring timeseries related helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBool

BuildBool builds a cloudmonitoring timeseries with boolean point.

func BuildFloat64

func BuildFloat64(p Params) *monitoringresourcespb.TimeSeries

BuildFloat64 builds a cloudmonitoring timeseries with float64 point.

func BuildInt

BuildInt builds a cloudmonitoring timeseries with Int64 point.

Types

type Params

type Params struct {
	BareMetal    bool
	CloudProp    *ipb.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