microrepository

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 3 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 Strategy

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

Strategy 微服务策略推送

Jump to

Keyboard shortcuts

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