metrics

package
v0.0.0-...-3f9ec74 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBusinessMetrics

func GetBusinessMetrics() *Telemetry

GetBusinessMetrics Obtém um objeto de telemetria do negócio

func GetTimingMetrics

func GetTimingMetrics() *Telemetry

GetTimingMetrics Obtém um objeto de telemetria do tempo de resposta

func Install

func Install()

Install Inicia telemetria

func InstallBusinessMetrics

func InstallBusinessMetrics(cnf registry.Config)

InstallBusinessMetrics Instância a telemetria de negócio

func InstallRuntime

func InstallRuntime(cnf registry.Config)

func InstallTimingMetrics

func InstallTimingMetrics(cnf registry.Config)

InstallTimingMetrics Instância a telemetria de tempo de resposta

func PushBusinessMetric

func PushBusinessMetric(tag string, value interface{})

PushBusinessMetric Envio dados de negócio para a telemetria

func PushTimingMetric

func PushTimingMetric(tag string, value interface{})

PushTimingMetric Envio dados de tempo de resposta para a telemetria

Types

type MemoryReport

type MemoryReport struct {
	Goroutines     int     `json:"goroutines"`
	HeapAllocated  float64 `json:"heapAllocated"`
	HeapInUse      float64 `json:"heapInUse"`
	StackAllocated float64 `json:"stackAllocated"`
	StackInUse     float64 `json:"stackInUse"`
	TotalAllocated float64 `json:"totalAllocated"`
	TotalInUse     float64 `json:"totalInUse"`
	MemoryUnit     string  `json:"memoryUnit"`
}

MemoryReport Contrato de Memory Check

func GetMemoryReport

func GetMemoryReport(u string) MemoryReport

GetMemoryReport Obtém dados de Memory Check

Jump to

Keyboard shortcuts

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