Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotations ¶
type Client ¶
func (*Client) ListAlert ¶
func (c *Client) ListAlert() (resp []*ListAlertResp, err error)
func (*Client) ListAlertInstance ¶
func (c *Client) ListAlertInstance() (resp []*ListAlertInstanceResp, err error)
type Conditions ¶
type Data ¶
type Data struct {
RefID string `json:"refId"`
QueryType string `json:"queryType"`
RelativeTimeRange RelativeTimeRange `json:"relativeTimeRange"`
DatasourceUID string `json:"datasourceUid"`
}
type Datasource ¶
type Labels ¶
type Labels struct {
AlertRuleUID string `json:"__alert_rule_uid__"`
Alertname string `json:"alertname"`
GrafanaFolder string `json:"grafana_folder"`
Handler string `json:"handler"`
Instance string `json:"instance"`
Job string `json:"job"`
Method string `json:"method"`
Status string `json:"status"`
}
type ListAlertInstanceResp ¶
type ListAlertResp ¶
type ListAlertResp struct {
ID int `json:"id"`
UID string `json:"uid"`
OrgID int `json:"orgID"`
FolderUID string `json:"folderUID"`
RuleGroup string `json:"ruleGroup"`
Title string `json:"title"`
Condition string `json:"condition"`
Data []Data `json:"data"`
NoDataState string `json:"noDataState"`
ExecErrState string `json:"execErrState"`
For string `json:"for"`
IsPaused bool `json:"isPaused"`
}
type Model ¶
type Model struct {
DisableTextWrap bool `json:"disableTextWrap"`
EditorMode string `json:"editorMode"`
Expr string `json:"expr"`
FullMetaSearch bool `json:"fullMetaSearch"`
IncludeNullMetadata bool `json:"includeNullMetadata"`
Instant bool `json:"instant"`
IntervalMs int `json:"intervalMs"`
LegendFormat string `json:"legendFormat"`
MaxDataPoints int `json:"maxDataPoints"`
Range bool `json:"range"`
RefID string `json:"refId"`
UseBackend bool `json:"useBackend"`
}
type Receivers ¶
type Receivers struct {
Active interface{} `json:"active"`
Integrations interface{} `json:"integrations"`
Name string `json:"name"`
}
type Reducer ¶
type Reducer struct {
Params []interface{} `json:"params"`
Type string `json:"type"`
}
type RelativeTimeRange ¶
Click to show internal directories.
Click to hide internal directories.