Documentation ¶
Overview ¶
Package monitoring contains handlers and supporting logic for the /cdns/{{CDN Name}}/configs/monitoring Traffic Ops API endpoint.
Index ¶
Constants ¶
View Source
const CacheMonitorConfigFile = "rascal.properties"
View Source
const DeliveryServiceStatus = "REPORTED"
View Source
const KilobitsPerMegabit = 1000
View Source
const MonitorConfigFile = "rascal-config.txt"
View Source
const MonitorProfilePrefix = "RASCAL"
View Source
const MonitorType = "RASCAL"
View Source
const RouterType = "CCR"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicServer ¶
type BasicServer struct { CommonServerProperties IP string `json:"ip"` IP6 string `json:"ip6"` }
type Cache ¶
type Cache struct { CommonServerProperties Interfaces []tc.ServerInterfaceInfo `json:"interfaces"` Type string `json:"type"` HashID string `json:"hashid"` }
type Cachegroup ¶
type Cachegroup struct { Name string `json:"name"` Coordinates Coordinates `json:"coordinates"` }
type CommonServerProperties ¶
type Coordinates ¶
type DeliveryService ¶
type LegacyCache ¶
type LegacyCache struct { BasicServer InterfaceName string `json:"interfacename"` Type string `json:"type"` HashID string `json:"hashid"` }
LegacyCache represents a Cache for ATC versions before 5.0.
type LegacyMonitoring ¶
type LegacyMonitoring struct { TrafficServers []LegacyCache `json:"trafficServers"` TrafficMonitors []Monitor `json:"trafficMonitors"` Cachegroups []Cachegroup `json:"cacheGroups"` Profiles []Profile `json:"profiles"` DeliveryServices []DeliveryService `json:"deliveryServices"` Config map[string]interface{} `json:"config"` }
LegacyMonitoring represents Monitoring for ATC versions before 5.0.
type LegacyMonitoringResponse ¶
type LegacyMonitoringResponse struct {
Response LegacyMonitoring `json:"response"`
}
LegacyMonitoringResponse represents MontiroingResponse for ATC versions before 5.0.
type Monitor ¶
type Monitor struct {
BasicServer
}
type Monitoring ¶
type Monitoring struct { TrafficServers []Cache `json:"trafficServers"` TrafficMonitors []Monitor `json:"trafficMonitors"` Cachegroups []Cachegroup `json:"cacheGroups"` Profiles []Profile `json:"profiles"` DeliveryServices []DeliveryService `json:"deliveryServices"` Config map[string]interface{} `json:"config"` }
func GetMonitoringJSON ¶
func GetMonitoringJSON(tx *sql.Tx, cdnName string) (*Monitoring, error)
type MonitoringResponse ¶
type MonitoringResponse struct {
Response Monitoring `json:"response"`
}
Click to show internal directories.
Click to hide internal directories.