Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert interface { // SaveAlarm 保存告警 SaveAlarm(ctx context.Context, alarm *bo.Alarm) error // PushAlarm 推送告警 PushAlarm(ctx context.Context, alarm *bo.Alarm) error }
Alert .
type Heartbeat ¶ added in v1.1.0
type Heartbeat interface {
Heartbeat(ctx context.Context, in *api.HeartbeatRequest) error
}
Heartbeat .
type Metric ¶
type Metric interface { // GetMetrics 获取指标列表 GetMetrics(ctx context.Context, datasourceInfo *bo.GetMetricsParams) ([]*bo.MetricDetail, error) // Query 查询QL数据 Query(ctx context.Context, req *bo.QueryQLParams) ([]*datasource.QueryResponse, error) // PushMetric 推送 PushMetric(ctx context.Context, req *bo.PushMetricParams) error }
Metric .
Click to show internal directories.
Click to hide internal directories.