microrepository

package
v1.1.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasourceMetric

type DatasourceMetric interface {
	// GetMetadata 同步指标元数据
	GetMetadata(ctx context.Context, datasourceInfo *bizmodel.Datasource) ([]*bizmodel.DatasourceMetric, error)

	// InitiateSyncRequest 发起同步请求
	InitiateSyncRequest(ctx context.Context, datasourceInfo *bizmodel.Datasource) error

	// Query 查询指标数据
	Query(ctx context.Context, req *bo.DatasourceQueryParams) ([]*bo.MetricQueryData, error)
}

DatasourceMetric .

type SendAlert added in v1.1.0

type SendAlert interface {
	// Send 发送告警事件
	Send(context.Context, *bo.SendMsg)
}

SendAlert 发送告警事件接口

type ServerRegister added in v1.1.0

type ServerRegister interface {
	// Heartbeat 心跳
	Heartbeat(context.Context, *api.HeartbeatRequest) error
}

ServerRegister 子服务注册方法

type Strategy

type Strategy interface {
	// Push 推送策略
	Push(ctx context.Context, strategies *strategyapi.PushStrategyRequest) error
}

Strategy 微服务策略推送

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL