influx_fedemeter

package
v4.5.2000+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnumMeasurementName = map[EnumMeasurementID]string{
	0: "calculate_instance",
	1: "calculate_storage",
	2: "recommendation_jeri",
	3: "prediction_cost_namespace",
	4: "prediction_cost_app",
	5: "history_cost_namespace",
	6: "history_cost_app",
	7: "cost_namespace",
	8: "cost_app"}
View Source
var MeasurementColumns map[EnumMeasurementID][]string

Functions

This section is empty.

Types

type CostMeasurementType

type CostMeasurementType int
const (
	CostMeasurementHistory   CostMeasurementType = 0
	CostMeasureemntPredicted CostMeasurementType = 1
)

type EnumMeasurementID

type EnumMeasurementID int32

type InfluxField

type InfluxField struct {
	Name    string
	Type    common.DataType
	Default interface{}
}

type InfluxMeasurement

type InfluxMeasurement struct {
	DatabaseName      string
	MeasurementID     EnumMeasurementID
	TagKeys           []string
	FieldKeys         []*InfluxField
	SourceData        interface{}
	Granularity       int64
	ReservedInstances bool
	Arithmetic        string
	Country           string
	Type              CostMeasurementType
}

func NewInfluxMeasurement

func NewInfluxMeasurement(databaseName string, measurementID EnumMeasurementID, tags []string, fields []*InfluxField, sourceData interface{}, granularity int64, revservedinstances bool) *InfluxMeasurement

func (*InfluxMeasurement) GetWriteRequest

func (n *InfluxMeasurement) GetWriteRequest(starttime *timestamp.Timestamp) (*dpRawData.WriteRawdataRequest, error)

Jump to

Keyboard shortcuts

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