metricstorage

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package metricstorage defines storage structure for metric storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	Metric otelstorage.Hash  `json:"metric_name"`
	Hash   otelstorage.Hash  `json:"hash"`
	Attrs  otelstorage.Attrs `json:"attrs"`
}

Attributes is a data structure for attributes.

type Point

type Point struct {
	Metric        otelstorage.Hash      `json:"metric_name"`
	ResourceHash  otelstorage.Hash      `json:"resource_hash"`
	AttributeHash otelstorage.Hash      `json:"attr_hash"`
	Timestamp     otelstorage.Timestamp `json:"timestamp"`
	Point         float64               `json:"point"`
}

Point is a data structure for metric points.

type Resource

type Resource struct {
	Hash  otelstorage.Hash  `json:"hash"`
	Attrs otelstorage.Attrs `json:"attrs"`
}

Resource is a data structure for resource.

Jump to

Keyboard shortcuts

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