Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetBiz = wire.NewSet( NewMetricBiz, NewStrategyBiz, NewAlertBiz, NewHeartbeatBiz, )
ProviderSetBiz is biz providers.
Functions ¶
This section is empty.
Types ¶
type AlertBiz ¶
type AlertBiz struct {
// contains filtered or unexported fields
}
AlertBiz .
func NewAlertBiz ¶
func NewAlertBiz(alertRepository repository.Alert, cacheRepo repository.CacheRepo) *AlertBiz
NewAlertBiz new AlertBiz
type HeartbeatBiz ¶ added in v1.1.0
type HeartbeatBiz struct {
// contains filtered or unexported fields
}
HeartbeatBiz 心跳业务
func NewHeartbeatBiz ¶ added in v1.1.0
func NewHeartbeatBiz(heartbeatRepository repository.Heartbeat) *HeartbeatBiz
NewHeartbeatBiz 创建心跳业务
func (*HeartbeatBiz) Heartbeat ¶ added in v1.1.0
func (h *HeartbeatBiz) Heartbeat(ctx context.Context, in *api.HeartbeatRequest) error
Heartbeat 心跳
type MetricBiz ¶
type MetricBiz struct {
// contains filtered or unexported fields
}
MetricBiz .
func NewMetricBiz ¶
func NewMetricBiz(metricRepository repository.Metric) *MetricBiz
NewMetricBiz new MetricBiz
func (*MetricBiz) PushMetric ¶
func (b *MetricBiz) PushMetric(req *bo.PushMetricParams) error
PushMetric 推送数据
func (*MetricBiz) Query ¶
func (b *MetricBiz) Query(ctx context.Context, req *bo.QueryQLParams) ([]*datasource.QueryResponse, error)
Query 查询数据
func (*MetricBiz) SyncMetrics ¶
func (b *MetricBiz) SyncMetrics(ctx context.Context, datasourceInfo *bo.GetMetricsParams) ([]*bo.MetricDetail, error)
SyncMetrics 同步数据源元数据
type StrategyBiz ¶
type StrategyBiz struct {
// contains filtered or unexported fields
}
StrategyBiz .
func NewStrategyBiz ¶
func NewStrategyBiz(strategyRepository repository.Strategy) *StrategyBiz
NewStrategyBiz new StrategyBiz
func (*StrategyBiz) SaveStrategy ¶
SaveStrategy 保存策略信息
Click to show internal directories.
Click to hide internal directories.