webhook

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BudgetAlert

type BudgetAlert interface {
	TeamName() string
	ProjectName() string
	MetricName() string
	UsageAmount() int64
	LimitAmount() int64
	PercentageValue() float64
}

type BudgetAlertPayload

type BudgetAlertPayload struct {
	Team       string  `json:"team"`
	Project    string  `json:"project,omitempty"`
	Metric     string  `json:"metric"`
	Usage      int64   `json:"usage"`
	Limit      int64   `json:"limit"`
	Percentage float64 `json:"percentage"`
	Timestamp  string  `json:"timestamp"`
}

type Dispatcher

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

func NewDispatcher

func NewDispatcher(webhookURL string, logger *slog.Logger) *Dispatcher

func (*Dispatcher) SendAlert

func (d *Dispatcher) SendAlert(alert interface{}) error

Jump to

Keyboard shortcuts

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