mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-02 11:43:42 +02:00
internal/api/atomicasset.go: In LogInfo() add host parameter.
This commit is contained in:
parent
afd79110f9
commit
0448ea4781
1 changed files with 7 additions and 1 deletions
|
|
@ -30,11 +30,17 @@ func NewAtomicAsset(url string, host string, block_time float64) AtomicAsset {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e AtomicAsset) LogInfo() LogParams {
|
func (e AtomicAsset) LogInfo() LogParams {
|
||||||
return LogParams{
|
p := LogParams{
|
||||||
"type", "atomicasset",
|
"type", "atomicasset",
|
||||||
"url", e.url,
|
"url", e.url,
|
||||||
"block_time", e.block_time,
|
"block_time", e.block_time,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(e.host) > 0 {
|
||||||
|
p.Add("host", e.host)
|
||||||
|
}
|
||||||
|
|
||||||
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e AtomicAsset) Call(ctx context.Context) (agentcheck.Response, string) {
|
func (e AtomicAsset) Call(ctx context.Context) (agentcheck.Response, string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue