usageManager

package
v0.0.0-...-33e56a9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsageManager

type UsageManager struct {
	// contains filtered or unexported fields
}

UsageManager is the struct defined to group and contain all the methods that interact with the usage endpoint. Parameters: - db: a DbParameter reference to be able to use the DBManager methods. - monit: a StatusManager reference to be able to use the status subsystem methods.

func New

New is the function to create the struct UsageManager that grant access to the methods to interact with the usage endpoint. Parameters: - db: a reference to the DbParameter to be able to interact with the db methods. - monit: a reference to the StatusManager to be able to interact with the status subsystem. Returns: - UsageManager: struct to interact with the usage endpoint functionalities.

func (*UsageManager) GetSystemUsage

GetSystemUsage (Swagger func) is the function behind the (GET) endpoint /usage Its job is to retrieve the usage report given a certain time-window and with the posibility of filtering by metric.

func (*UsageManager) GetUsage

GetUsage (Swagger func) is the function behind the (GET) endpoint /usage/{id} Its job is to retrieve the usage report of the given account during the defined time-window, with the posibility of filtering by metric.

func (*UsageManager) GetUsageSummary

GetUsageSummary (Swagger func) is the function behind the (GET) endpoint /usage/summary/{id} Its job is to retrieve easy to use for the UI usage report of all the products linked to the reseller account provided during the defined time-window.

Jump to

Keyboard shortcuts

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