update metrics
This commit is contained in:
parent
50a065dc5d
commit
45df3c9526
|
@ -431,10 +431,10 @@ func (a *apic) SendMetrics() error {
|
||||||
|
|
||||||
for _, bouncer := range bouncers {
|
for _, bouncer := range bouncers {
|
||||||
m := &models.MetricsBouncerInfo{
|
m := &models.MetricsBouncerInfo{
|
||||||
Version: bouncer.Version,
|
Version: bouncer.Version,
|
||||||
Name: bouncer.Name,
|
CustomName: bouncer.Name,
|
||||||
Type: bouncer.Type,
|
Name: bouncer.Type,
|
||||||
LastPull: bouncer.LastPull.String(),
|
LastPull: bouncer.LastPull.String(),
|
||||||
}
|
}
|
||||||
metric.Bouncers = append(metric.Bouncers, m)
|
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
|
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
|
type: object
|
||||||
properties:
|
properties:
|
||||||
name:
|
custom_name:
|
||||||
type: string
|
type: string
|
||||||
description: name of the component
|
description: name of the component
|
||||||
type:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: bouncer type (firewall, php ...)
|
description: bouncer type (firewall, php ...)
|
||||||
version:
|
version:
|
||||||
|
|
|
@ -19,14 +19,14 @@ import (
|
||||||
// swagger:model MetricsBouncerInfo
|
// swagger:model MetricsBouncerInfo
|
||||||
type MetricsBouncerInfo struct {
|
type MetricsBouncerInfo struct {
|
||||||
|
|
||||||
|
// name of the component
|
||||||
|
CustomName string `json:"custom_name,omitempty"`
|
||||||
|
|
||||||
// last bouncer pull date
|
// last bouncer pull date
|
||||||
LastPull string `json:"last_pull,omitempty"`
|
LastPull string `json:"last_pull,omitempty"`
|
||||||
|
|
||||||
// name of the component
|
|
||||||
Name string `json:"name,omitempty"`
|
|
||||||
|
|
||||||
// bouncer type (firewall, php ...)
|
// bouncer type (firewall, php ...)
|
||||||
Type string `json:"type,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
|
|
||||||
// software version
|
// software version
|
||||||
Version string `json:"version,omitempty"`
|
Version string `json:"version,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue