metrics

package
v0.0.0-...-7220889 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package metrics holds all the schemas and utilities to handle metrics for Kron.

Package metrics holds all the schemas and utilities to handle metrics for Kron.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateEventMessage

func GenerateEventMessage(config *suschpb.SchedulerConfig, schedulingDecision *kronpb.SchedulingDecision, bbid int64, buildUUID, board, model, buildTarget string) (*kronpb.Event, error)

GenerateEventMessage builds a metric event.

func GenerateRunMessage

func GenerateRunMessage() *kronpb.Run

GenerateRunMessage returns a SchedulingMetric for the current SuiteScheduler run.

func GetEndTime

func GetEndTime() *timestamppb.Timestamp

GetEndTime returns the package level endTime

func GetRunID

func GetRunID() string

GetRunID returns the package level runID

func GetStartTime

func GetStartTime() *timestamppb.Timestamp

GetStartTime returns the package level startTime

func SetEndTime

func SetEndTime() error

SetEndTime sets the package variable for the endTime. Since we cannot set a compile-time constant for endTime, this setter incorporates logic to make it pseudo-immutable.

func SetStartTime

func SetStartTime() error

SetStartTime sets the package variable for the startTime. Since we cannot set a compile-time constant for startTime, this setter incorporates logic to make it pseudo-immutable.

func SetSuiteSchedulerRunID

func SetSuiteSchedulerRunID(id string) error

SetSuiteSchedulerRunID sets the package variable for the runID. Since we cannot set a compile-time constant for a uuid, this setter incorporates logic to make it pseudo-immutable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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