ddog

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 13 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 BuildTraceURL added in v0.0.3

func BuildTraceURL(link *api.DatadogTrace) (string, error)

func BuildURL added in v0.0.3

func BuildURL(link *api.DatadogLink) (string, error)
func GetLogsLink(baseUrl string, query map[string]string) string

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

func LogsURLToLink(u url.URL) (*api.DatadogLink, error)

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.

func TraceURLToLink(u url.URL) (*api.DatadogTrace, error)
func URLToLink(inputURL string) (any, error)

URLToLink converts a URL to a DatadogLink or DatadogTrace

Types

This section is empty.

Jump to

Keyboard shortcuts

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