3 Star 2 Fork 0

info-superbahn-ict / superbahn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
request.go 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
tangshibo 提交于 2022-01-07 10:26 . update
package clireq
const (
StrategyRPC = "strategy"
MonitorRPC = "monitor"
StrategyControlInfo = "strategy.control.info"
LogsContainer = "monitor.logs.container.latest"
MetricsContainerNow = "monitor.metrics.container.now"
)
type StrategyRequest struct {
Op string `json:"object.op"`
Key string `json:"object.key"`
Name string `json:"object.metrics.name"`
}
type MonitorRequest struct {
Op string `json:"object.op"`
Key string `json:"object.key"`
Kind string `json:"object.kind"`
Guid string `json:"object.guid"`
StartTime int64 `json:"object.metrics.time.start"`
EndTime int64 `json:"object.metrics.time.end"`
TimeToNow int64 `json:"object.metrics.time.duration"`
LogsCount int64 `json:"object.logs.count"`
LogsFilter map[string]string `json:"object.logs.filter"`
// 必选
Service string `json:"object.traces.service"`
// 可选
Operation string `json:"object.traces.operation"`
Start string `json:"object.traces.time.start"`
End string `json:"object.traces.time.end"`
MaxDuration string `json:"object.traces.duration.max"`
MinDuration string `json:"object.traces.duration.min"`
Limit string `json:"object.traces.limit"`
TraceId string `json:"object.traces.id"`
}
Go
1
https://gitee.com/info-superbahn-ict/superbahn.git
git@gitee.com:info-superbahn-ict/superbahn.git
info-superbahn-ict
superbahn
superbahn
5fda629dab96

搜索帮助