Discover Packages
github.com/rif/telegraf-freeswitch
utils
package
Version:
v2.0.1+incompatible
Opens a new window with list of versions in this module.
Published: Jun 12, 2018
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
JSONFormat = "JSON"
InfluxFormat = "INFLUX"
)
type Count struct {
Total int `json:"total"`
Active int `json:"active"`
Peak int `json:"peak"`
Peak5min int `json:"peak5Min"`
Limit int `json:"limit"`
}
type Profile struct {
Name string `xml:"name"`
Type string `xml:"type"`
Data string `xml:"data"`
State string `xml:"state"`
}
type Profiles struct {
Profiles []*Profile `xml:"profile"`
}
type Rate struct {
Current int `json:"current"`
Max int `json:"max"`
Peak int `json:"peak"`
Peak5min int `json:"peak5Min"`
}
type Sessions struct {
Count Count `json:"count"`
Rate Rate `json:"rate"`
}
type StackSize struct {
Current int `json:"current"`
Max int `json:"max"`
}
type StatusResponse struct {
Sessions Sessions `json:"sessions"`
StackSize StackSize `json:"stackSizeKB"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.