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: 9 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 endpoints. 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. Parameters: - DbParameter: reference pointing to the DbParameter that allows the interaction with the DBManager methods. - monit: a reference to the StatusManager to be able to interact with the status subsystem. Returns: - UsageManager: struct to interact with UsageManager subsystem functionalities.

func (*UsageManager) GetSystemUsage

GetSystemUsage (Swagger func) is the function behind the (GET) API Endpoint /usage Its job is to get the usage of all the accounts in the system during the provided time-window with the posibility of filtering the results by the type of resource.

func (*UsageManager) GetUsage

GetUsage (Swagger func) is the function behind the (GET) API Endpoint /usage/{id} Its job is to get the usage of the provided account in the system during the provided time-window with the posibility of filtering the results by the type of resource.

Jump to

Keyboard shortcuts

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