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 ¶
- func GenerateEventMessage(config *suschpb.SchedulerConfig, schedulingDecision *kronpb.SchedulingDecision, ...) (*kronpb.Event, error)
- func GenerateRunMessage() *kronpb.Run
- func GetEndTime() *timestamppb.Timestamp
- func GetRunID() string
- func GetStartTime() *timestamppb.Timestamp
- func SetEndTime() error
- func SetStartTime() error
- func SetSuiteSchedulerRunID(id string) error
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 ¶
GenerateRunMessage returns a SchedulingMetric for the current SuiteScheduler run.
func GetEndTime ¶
func GetEndTime() *timestamppb.Timestamp
GetEndTime returns the package level endTime
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 ¶
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.