payload

package
v0.0.0-...-3f0687b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package payload implement processing of Versa api responses

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL