mackerelsesame

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 4 Imported by: 0

README

mackerel-sesame

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MackerelExporter

type MackerelExporter struct {
	// contains filtered or unexported fields
}

func NewMackerelExporter

func NewMackerelExporter(apiKey, serviceName string) *MackerelExporter

func (*MackerelExporter) Export

func (e *MackerelExporter) Export(metrics *SesameMetrics) error

type SesameFetcher

type SesameFetcher struct {
	// contains filtered or unexported fields
}

func NewSesameFetcher

func NewSesameFetcher(apiKey string) *SesameFetcher

func (*SesameFetcher) Fetch

func (s *SesameFetcher) Fetch(deviceUUID, deviceName string) (*SesameMetrics, error)

type SesameMetrics

type SesameMetrics struct {
	DeviceName        string
	Timestamp         time.Time
	BatteryPercentage int64
	BatteryVoltage    float64
}

Directories

Path Synopsis
cmd
mackerel-sesame command

Jump to

Keyboard shortcuts

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