alertinfo

package
v0.13.4 Latest Latest
Warning

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

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

Documentation

Overview

Package alertinfo implements AlertInfo struct for sharing alert data across modules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldsToString

func FieldsToString(fields map[string]string, skipKeys ...string) string

Types

type AlertInfo

type AlertInfo struct {
	Name         string
	ProbeName    string
	Target       endpoint.Endpoint
	Failures     int
	Total        int
	FailingSince time.Time

	// DeduplicationID is used to de-duplicate alerts. It is set to a UUID
	// created using the alert name, probe name and target.
	DeduplicationID string
}

AlertInfo contains information about an alert.

func (*AlertInfo) Fields

func (ai *AlertInfo) Fields(templateDetails map[string]string) map[string]string

Jump to

Keyboard shortcuts

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