look

package
v6.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 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