common

package
v2.0.0-...-da71ef2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataBuilder

type DataBuilder interface {
	New() SchemaMetricBuilder
}

type DataBuilderFunc

type DataBuilderFunc func() SchemaMetricBuilder

func (DataBuilderFunc) New

type ReportEnvironment

type ReportEnvironment string
const (
	ReportProductionEnv ReportEnvironment = "production"
	ReportSandboxEnv    ReportEnvironment = "stage"
)

func (ReportEnvironment) MarshalText

func (m ReportEnvironment) MarshalText() ([]byte, error)

func (ReportEnvironment) String

func (m ReportEnvironment) String() string

func (*ReportEnvironment) UnmarshalText

func (m *ReportEnvironment) UnmarshalText(data []byte) error

type ReportSliceKey

type ReportSliceKey uuid.UUID

func (ReportSliceKey) MarshalText

func (sliceKey ReportSliceKey) MarshalText() ([]byte, error)

func (ReportSliceKey) String

func (sliceKey ReportSliceKey) String() string

func (*ReportSliceKey) UnmarshalText

func (sliceKey *ReportSliceKey) UnmarshalText(data []byte) error

type ReportWriter

type ReportWriter interface {
	WriteReport(
		source uuid.UUID,
		metrics map[string]SchemaMetricBuilder,
		outputDirectory string,
		partitionSize int,
	) (files []string, err error)
}

type SchemaMetricBuilder

type SchemaMetricBuilder interface {
	SetAccountID(accountID string)
	SetClusterID(clusterID string)
	AddMeterDefinitionLabels(meterDef *common.MeterDefPrometheusLabelsTemplated)
	SetReportInterval(start, end Time)
	Build() (interface{}, error)
}

type Time

type Time time.Time

Time always prints in UTC time.

func (Time) MarshalText

func (t Time) MarshalText() ([]byte, error)

func (Time) String

func (t Time) String() string

func (*Time) UnmarshalText

func (t *Time) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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