Documentation
¶
Index ¶
- Constants
- Variables
- func AlertRuleCheckStatus(ctx context.Context, state *AlertRuleCheckState, client *resty.Client) (*action_kit_api.StatusResult, error)
- func NewAlertDiscovery() discovery_kit_sdk.TargetDiscovery
- func NewAlertRuleStateCheckAction() action_kit_sdk.Action[AlertRuleCheckState]
- type AlertGroup
- type AlertRule
- type AlertRuleCheckState
- type AlertRuleStateCheckAction
- func (m *AlertRuleStateCheckAction) Describe() action_kit_api.ActionDescription
- func (m *AlertRuleStateCheckAction) NewEmptyState() AlertRuleCheckState
- func (m *AlertRuleStateCheckAction) Prepare(_ context.Context, state *AlertRuleCheckState, ...) (*action_kit_api.PrepareResult, error)
- func (m *AlertRuleStateCheckAction) Start(_ context.Context, _ *AlertRuleCheckState) (*action_kit_api.StartResult, error)
- func (m *AlertRuleStateCheckAction) Status(ctx context.Context, state *AlertRuleCheckState) (*action_kit_api.StatusResult, error)
- type AlertsData
- type AlertsStates
- type DataSource
Constants ¶
View Source
const (
TargetType = "com.steadybit.extension_grafana.alert-rule"
)
Variables ¶
View Source
var RestyClient *resty.Client
Functions ¶
func AlertRuleCheckStatus ¶
func AlertRuleCheckStatus(ctx context.Context, state *AlertRuleCheckState, client *resty.Client) (*action_kit_api.StatusResult, error)
func NewAlertDiscovery ¶
func NewAlertDiscovery() discovery_kit_sdk.TargetDiscovery
func NewAlertRuleStateCheckAction ¶
func NewAlertRuleStateCheckAction() action_kit_sdk.Action[AlertRuleCheckState]
Types ¶
type AlertGroup ¶
type AlertRuleCheckState ¶
type AlertRuleStateCheckAction ¶
type AlertRuleStateCheckAction struct{}
func (*AlertRuleStateCheckAction) Describe ¶
func (m *AlertRuleStateCheckAction) Describe() action_kit_api.ActionDescription
func (*AlertRuleStateCheckAction) NewEmptyState ¶
func (m *AlertRuleStateCheckAction) NewEmptyState() AlertRuleCheckState
func (*AlertRuleStateCheckAction) Prepare ¶
func (m *AlertRuleStateCheckAction) Prepare(_ context.Context, state *AlertRuleCheckState, request action_kit_api.PrepareActionRequestBody) (*action_kit_api.PrepareResult, error)
func (*AlertRuleStateCheckAction) Start ¶
func (m *AlertRuleStateCheckAction) Start(_ context.Context, _ *AlertRuleCheckState) (*action_kit_api.StartResult, error)
func (*AlertRuleStateCheckAction) Status ¶
func (m *AlertRuleStateCheckAction) Status(ctx context.Context, state *AlertRuleCheckState) (*action_kit_api.StatusResult, error)
type AlertsData ¶
type AlertsData struct {
AlertsGroups []AlertGroup `json:"groups,omitempty"`
}
type AlertsStates ¶
type AlertsStates struct {
AlertsData AlertsData `json:"data"`
Status string `json:"status"`
}
type DataSource ¶
type DataSource struct {
ID int `json:"id"`
UID string `json:"uid"`
OrgID int `json:"orgId"`
Name string `json:"name"`
Type string `json:"type"`
TypeName string `json:"typeName"`
TypeLogoUrl string `json:"typeLogoUrl"`
Access string `json:"access"`
URL string `json:"url"`
User string `json:"user"`
Database string `json:"database"`
BasicAuth bool `json:"basicAuth"`
IsDefault bool `json:"isDefault"`
JsonData any `json:"jsonData"`
ReadOnly bool `json:"readOnly"`
}
Click to show internal directories.
Click to hide internal directories.