package
Version:
v0.0.0-...-b77f4ed
Opens a new window with list of versions in this module.
Published: Jan 21, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Alert struct {
Status string `json:"status"`
Labels KV `json:"labels"`
Annotations KV `json:"annotations"`
StartsAt time.Time `json:"startsAt"`
EndsAt time.Time `json:"endsAt"`
GeneratorURL string `json:"generatorURL"`
}
Firing Alerts the subset of alerts that are firing.
Resolved returns the subset of alerts that are resolved.
type Data struct {
Receiver string `json:"receiver"`
Status string `json:"status"`
Alerts Alerts `json:"alerts"`
GroupLabels KV `json:"groupLabels"`
CommonLabels KV `json:"commonLabels"`
CommonAnnotations KV `json:"commonAnnotations"`
ExternalURL string `json:"externalURL"`
}
type GetTokenResponse struct {
Errcode int `json:"errcode"`
Errmsg string `json:"errmsg"`
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
}
KV is a set of key/value string pairs.
Names returns the names of the label names in the LabelSet.
Remove returns a copy of the key/value set without the given keys.
SortedPairs returns a sorted list of key/value pairs.
Values returns a list of the values in the LabelSet.
type Pair struct {
Name, Value string
}
Pair is a key/value string pair.
Pairs is a list of key/value string pairs.
Names returns a list of names of the pairs.
Values returns a list of values of the pairs.
type WebhookMessage struct {
*Data
Version string `json:"version"`
GroupKey string `json:"groupKey"`
}
type WechatNotificationButton struct {
ActionURL string `json:"actionURL"`
}
type WechatNotificationResponse struct {
ErrorMessage string `json:"errmsg"`
ErrorCode int `json:"errcode"`
}
type WechatNotificationText struct {
Content string `json:"content"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.