ddog

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTimeRange

func BuildTimeRange(start time.Time, end time.Time) map[string]string

BuildTimeRange returns the query arguments for the given time range.

func GetLogsLink(baseUrl string, query map[string]string) string

GetLogsLink returns a link to the Datadog logs matching the given query.

func TimeAndDurationToRange

func TimeAndDurationToRange(endTimeString string, layout string, length time.Duration) (map[string]string, error)

TimeAndDurationToRange returns the query arguments for the given time range based on the end time and duration. StartTime is calculated by subtracting duration from endTime.

Types

This section is empty.

Jump to

Keyboard shortcuts

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