dto

package
v0.0.0-...-cc99bfc Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociatedPartInOracleDbAgreementRequest

type AssociatedPartInOracleDbAgreementRequest struct {
	ID              string   `json:"id"`
	AgreementID     string   `json:"agreementID"`
	PartID          string   `json:"partID"`
	CSI             string   `json:"csi"`
	ReferenceNumber string   `json:"referenceNumber"`
	Unlimited       bool     `json:"unlimited"`
	Count           int      `json:"count"`
	CatchAll        bool     `json:"catchAll"` //TODO rename basket
	Hosts           []string `json:"hosts"`
}

AssociatedPartInOracleDbAgreementRequest contains the informations needed to add or update an AssociatedPart in an OracleDatabaseAgreement

type HostUsingOracleDatabaseLicenses

type HostUsingOracleDatabaseLicenses struct {
	LicenseName string `json:"licenseName" bson:"licenseName"`
	//TODO Use PartID instead of LicenseName in algorithms
	PartID string `json:"partID" bson:"partID"`
	Name   string `json:"name" bson:"name"`
	//Type describe if it's an host or a cluster
	Type string `json:"type" bson:"type"`
	// TODO Rename in UncoveredLicenses // Licenses to be covered by agreement
	LicenseCount float64 `json:"licenseCount" bson:"licenseCount"`
	//TODO Rename in ConsumedLicensesCount // Original value of licenseCount (UncoveredLicenses), DO NOT EDIT!
	OriginalCount float64 `json:"originalCount" bson:"originalCount"`
}

HostUsingOracleDatabaseLicenses contains the information about the hosts that use licenses by Oracle/Database

type OracleDatabaseAgreementAssociatedHostFE

type OracleDatabaseAgreementAssociatedHostFE struct {
	Hostname string `json:"hostname" bson:"hostname"`
	// Licenses which have been covered by agreement associated
	CoveredLicensesCount float64 `json:"coveredLicensesCount" bson:"coveredLicensesCount"`

	// Licenses covered by all agreements
	TotalCoveredLicensesCount float64 `json:"totalCoveredLicensesCount" bson:"totalCoveredLicensesCount"`
	// Licenses consumed (used) by this hostname, data from agents
	ConsumedLicensesCount float64 `json:"consumedLicensesCount" bson:"consumedLicensesCount"`
}

OracleDatabaseAgreementAssociatedHostFE contains the informations about an associated host in agreement If agreement is Named User, counts are in users TODO Rename: remove Count at the end of each name

type OracleDatabaseAgreementFE

type OracleDatabaseAgreementFE struct {
	ID          primitive.ObjectID `json:"id" bson:"_id"` // ID of agreement - part couple
	AgreementID string             `json:"agreementID" bson:"agreementID"`
	CSI         string             `json:"csi" bson:"csi"`

	// Part
	PartID          string `json:"partID" bson:"partID"`
	ItemDescription string `json:"itemDescription" bson:"itemDescription"`
	Metric          string `json:"metric" bson:"metric"`

	ReferenceNumber string `json:"referenceNumber" bson:"referenceNumber"`
	Unlimited       bool   `json:"unlimited" bson:"unlimited"` // Or "ULA"
	// Number of licenses or users set by user.
	// If agreement is Named User, Count number express users, not licenses
	Count float64 `json:"count" bson:"count"`

	CatchAll bool                                      `json:"catchAll" bson:"catchAll"` //TODO Rename in basket
	Hosts    []OracleDatabaseAgreementAssociatedHostFE `json:"hosts" bson:"hosts"`

	// Value of licenses/users yet available to be assigned to hosts
	AvailableCount float64 `json:"availableCount" bson:"availableCount"`
	// Number of licenses
	LicensesCount float64 `json:"licensesCount" bson:"licensesCount"`
	// Number of users
	UsersCount float64 `json:"usersCount" bson:"usersCount"`
}

OracleDatabaseAgreementFE contains the informations about an AssociatedPart in an Agreement for the frontend

type OracleDatabaseLicenseUsage

type OracleDatabaseLicenseUsage struct {
	PartID          string `json:"partID" bson:"partID"`
	ItemDescription string `json:"itemDescription" bson:"itemDescription"`
	Metric          string `json:"metric" bson:"metric"`

	Consumed   float64 `json:"consumed"`
	Covered    float64 `json:"covered"`
	Compliance float64 `json:"compliance"`
	Unlimited  bool    `json:"unlimited"`
}

OracleDatabaseLicenseUsage contains the information about usage of a license

type OracleDatabaseUsedLicense

type OracleDatabaseUsedLicense struct {
	LicenseName  string  `json:"licenseName" bson:"licenseName"`
	DbName       string  `json:"dbName" bson:"dbName"`
	Hostname     string  `json:"hostname" bson:"hostname"`
	UsedLicenses float64 `json:"usedLicenses" bson:"usedLicenses"`
}

OracleDatabaseUsedLicense dto

type OracleDatabaseUsedLicenseSearchResponse

type OracleDatabaseUsedLicenseSearchResponse struct {
	Content  []OracleDatabaseUsedLicense `json:"content" bson:"content"`
	Metadata PagingMetadata              `json:"metadata" bson:"metadata"`
}

OracleDatabaseUsedLicenseSearchResponse dto

type PagingMetadata

type PagingMetadata struct {
	Empty         bool `json:"empty"`
	First         bool `json:"first"`
	Last          bool `json:"last"`
	Number        int  `json:"number"`
	Size          int  `json:"size"`
	TotalElements int  `json:"totalElements"`
	TotalPages    int  `json:"totalPages"`
}

PagingMetadata contains metadata for pagination listings

type SearchOracleDatabaseAgreementsFilter

type SearchOracleDatabaseAgreementsFilter struct {
	AgreementID       string
	PartID            string
	ItemDescription   string
	CSI               string
	Metric            string
	ReferenceNumber   string
	Unlimited         string //"" -> Ignore, "true" -> true, "false" -> false
	CatchAll          string //"" -> Ignore, "true" -> true, "false" -> false //TODO Rename in Basket
	LicensesCountLTE  int
	LicensesCountGTE  int
	UsersCountLTE     int
	UsersCountGTE     int
	AvailableCountLTE int
	AvailableCountGTE int
}

SearchOracleDatabaseAgreementsFilter contains the filter used to get the list of Oracle/Database agreements

Jump to

Keyboard shortcuts

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