model

package
v0.0.0-...-b487b65 Latest Latest
Warning

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

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

Documentation

Overview

Package model represents metric model calculation helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeAttrSet

func EncodeAttrSet(set attribute.Set, e *jx.Encoder) error

EncodeAttrSet encodes an attribute.Set to JSON.

func MarshalAttrSet

func MarshalAttrSet(set attribute.Set) ([]byte, error)

MarshalAttrSet marshals an attribute.Set to JSON.

Types

type Model

type Model struct {
	Services                    int // total count of services
	Nodes                       int // total count of nodes
	ServicesPerNode             int // total count of services per node
	MetricPerService            int // total count of metrics per service
	MetricCardinalityPerService int // total unique count of metric attribute set per service
	MetricPerNode               int // total count of metrics per node
	Metrics                     int // instant unique count of metrics
	DeploysPerMinute            int // total count of deploys per minute
	TotalCardinality            int // instant unique count of metric attribute set
}

Model represents metric model calculation helpers.

func (Model) TotalResources

func (m Model) TotalResources() int

TotalResources returns total count of unique resources.

Jump to

Keyboard shortcuts

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