look

package
v0.0.0-...-99b9a3e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package look defines common formatters for fields/types to be used when generating heartbeat events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RTT

func RTT(rtt time.Duration) common.MapStr

RTT formats a round-trip-time given as time.Duration into an event field. The duration is stored in `{"us": rtt}`.

func Reason

func Reason(err error) common.MapStr

Reason formats an error into an error event field.

func Status

func Status(err error) string

Status creates a service status message from an error value.

func Timestamp

func Timestamp(t time.Time) common.Time

Timestamp converts an event timestamp into an compatible event timestamp for reporting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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