package
module
Version:
v0.0.0-...-3009a32
Opens a new window with list of versions in this module.
Published: Jun 28, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
ghcr.io/dazwilkin/go-gcp-pushover-notificationchannel:6c88a0f22c89d22d7a1bdc59d8a3aa44747e3318
See Using Google Monitoring Alerting to send Pushover notifications
go-gcp-pushover-notificationchannel
container images are being signed by Sigstore and may be verified:
cosign verify \
--key=./cosign.pub \
ghcr.io/dazwilkin/go-gcp-pushover-notificationchannel:6c88a0f22c89d22d7a1bdc59d8a3aa44747e3318
NOTE cosign.pub
may be downloaded here
To install cosign, e.g.:
go install github.com/sigstore/cosign/cmd/cosign@latest
Documentation
¶
pushover is an HTTP Cloud Function.
type Body struct {
Incident Incident `json:"incident"`
}
type Incident struct {
ID string `json:"incident_id"`
ProjectID string `json:"scoping_project_id"`
ProjectNum string `json:"scoping_project_number"`
URL string `json:"url"`
Started int `json:"started_at"`
Ended int `json:"ended_at"`
State string `json:"state"`
Summary string `json:"summary"`
ResourceID string `json:"resource_id"`
ResourceName string `json:"resource_name"`
Resource Resource `json:"resource"`
Metric Metric `json:"metric"`
Metadata Metadata `json:"metadata"`
}
Message is a type that represents the Pushover message
NewMessage is a function that maps an Incident body into a Pushover message
type Metadata struct {
SystemLabels map[string]string `json:"system_labels"`
UserLabels map[string]string `json:"user_labels"`
}
type Resource struct {
Type string `json:"type"`
Labels map[string]string `json:"labels"`
}
Source Files
¶
Directories
¶
cmd
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.