Documentation
¶
Overview ¶
Package payload implement processing of Versa api responses
Index ¶
- Constants
- Variables
- func GetControllersMetadata(namespace string, controllers []client.ControllerStatus) []devicemetadata.DeviceMetadata
- func GetDevicesMetadata(namespace string, devices []client.ApplianceLite) []devicemetadata.DeviceMetadata
- func GetDevicesStatus(devices []client.ApplianceLite) map[string]float64
- func GetDevicesTags(namespace string, devices []client.ApplianceLite) map[string][]string
- func GetDevicesUptime(devices []client.ApplianceLite) map[string]float64
Constants ¶
View Source
const DeviceUserTagResourcePrefix = "dd.internal.resource:ndm_device_user_tags"
DeviceUserTagResourcePrefix contains the REDAPL table to store device user tags
Variables ¶
View Source
var TimeNow = time.Now
TimeNow useful for mocking
Functions ¶
func GetControllersMetadata ¶
func GetControllersMetadata(namespace string, controllers []client.ControllerStatus) []devicemetadata.DeviceMetadata
GetControllersMetadata process devices API payloads to build metadata
func GetDevicesMetadata ¶
func GetDevicesMetadata(namespace string, devices []client.ApplianceLite) []devicemetadata.DeviceMetadata
GetDevicesMetadata process devices API payloads to build metadata
func GetDevicesStatus ¶
func GetDevicesStatus(devices []client.ApplianceLite) map[string]float64
GetDevicesStatus process devices API payloads to get status
func GetDevicesTags ¶
func GetDevicesTags(namespace string, devices []client.ApplianceLite) map[string][]string
GetDevicesTags process devices API payloads to build device tags
func GetDevicesUptime ¶
func GetDevicesUptime(devices []client.ApplianceLite) map[string]float64
GetDevicesUptime process devices API payloads to compute uptimes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.