cmd

package
v0.0.0-...-2a6fe6c Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(amURL string, timeout int, mode, labels string, silencePeriod int, creator, comment string) error

Types

type Matcher

type Matcher struct {
	IsRegex bool   `json:"isRegex"`
	Name    string `json:"name"`
	Value   string `json:"value"`
}

Matcher : contains Alertmanager matcher data

type Msg

type Msg struct {
	// contains filtered or unexported fields
}

Msg : contains Msg data

type ReceivedSilences

type ReceivedSilences struct {
	Data   []Silence `json:"data"`
	Status string    `json:"status"`
}

ReceivedSilences : contains Alertmanager request silence data

type Silence

type Silence struct {
	Status struct {
		State string `json:"state"`
	} `json:"status"`
	ID        string    `json:"id"`
	Comment   string    `json:"comment"`
	CreatedBy string    `json:"createdBy"`
	UpdatedAt string    `json:"updatedAt"`
	EndsAt    string    `json:"endsAt"`
	StartsAt  string    `json:"startsAt"`
	Matchers  []Matcher `json:"matchers"`
}

Silence : containts Alertmanager silence data

Jump to

Keyboard shortcuts

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