update metrics
This commit is contained in:
parent
50a065dc5d
commit
45df3c9526
|
@ -431,10 +431,10 @@ func (a *apic) SendMetrics() error {
|
|||
|
||||
for _, bouncer := range bouncers {
|
||||
m := &models.MetricsBouncerInfo{
|
||||
Version: bouncer.Version,
|
||||
Name: bouncer.Name,
|
||||
Type: bouncer.Type,
|
||||
LastPull: bouncer.LastPull.String(),
|
||||
Version: bouncer.Version,
|
||||
CustomName: bouncer.Name,
|
||||
Name: bouncer.Type,
|
||||
LastPull: bouncer.LastPull.String(),
|
||||
}
|
||||
metric.Bouncers = append(metric.Bouncers, m)
|
||||
}
|
||||
|
|
|
@ -781,10 +781,10 @@ definitions:
|
|||
description: Software version info (so we can warn users about out-of-date software). The software name and the version are "guessed" from the user-agent
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
custom_name:
|
||||
type: string
|
||||
description: name of the component
|
||||
type:
|
||||
name:
|
||||
type: string
|
||||
description: bouncer type (firewall, php ...)
|
||||
version:
|
||||
|
|
|
@ -19,14 +19,14 @@ import (
|
|||
// swagger:model MetricsBouncerInfo
|
||||
type MetricsBouncerInfo struct {
|
||||
|
||||
// name of the component
|
||||
CustomName string `json:"custom_name,omitempty"`
|
||||
|
||||
// last bouncer pull date
|
||||
LastPull string `json:"last_pull,omitempty"`
|
||||
|
||||
// name of the component
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// bouncer type (firewall, php ...)
|
||||
Type string `json:"type,omitempty"`
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// software version
|
||||
Version string `json:"version,omitempty"`
|
||||
|
|
Loading…
Reference in a new issue