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: 3 Imported by: 0

Documentation

Overview

Package dto is a package that provides struct that contains charts

Package dto is a package that provides struct that contains charts

Copyright (c) 2020 Sorint.lab S.p.A.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Package dto is a package that provides struct that contains charts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomColorize

func RandomColorize(rnd rand.Rand) string

RandomColorize return a good looking random color

Types

type ChangeChart

type ChangeChart struct {
	Data   []ChangeChartBubble `json:"data"`
	Legend ChartLegend         `json:"legend"`
}

type ChangeChartBubble

type ChangeChartBubble struct {
	Name   string  `json:"name" bson:"name"`
	Size   float64 `json:"size" bson:"size"`
	Change float64 `json:"change" bson:"change"`
}

type Chart

type Chart struct {
	Data   []ChartBubble `json:"data"`
	Legend ChartLegend   `json:"legend"`
}

type ChartBubble

type ChartBubble struct {
	Name  string  `json:"name" bson:"name"`
	Color string  `json:"color" bson:"color"`
	Size  float64 `json:"size" bson:"size"`
}

type ChartLegend

type ChartLegend map[string]string

type OracleDatabaseLicenseHistory

type OracleDatabaseLicenseHistory struct {
	PartID          string                  `json:"partID" bson:"partID"`
	ItemDescription string                  `json:"itemDescription" bson:"itemDescription"`
	Metric          string                  `json:"metric" bson:"metric"`
	History         []OracleDbHistoricValue `json:"history" bson:"history"`
}

type OracleDbHistoricValue

type OracleDbHistoricValue struct {
	Date     time.Time `json:"date" bson:"date"`
	Consumed float64   `json:"consumed" bson:"consumed"`
	Covered  float64   `json:"covered" bson:"covered"`
}

type TechnologyTypeChartBubble

type TechnologyTypeChartBubble struct {
	Name string  `json:"name" bson:"name"`
	Size float64 `json:"size" bson:"size"`
}

type TechnologyTypesChart

type TechnologyTypesChart struct {
	Databases        []TechnologyTypeChartBubble `json:"databases"`
	Middlewares      []TechnologyTypeChartBubble `json:"middlewares"`
	OperatingSystems []TechnologyTypeChartBubble `json:"operatingSystems"`
	Legend           ChartLegend                 `json:"legend"`
}

Jump to

Keyboard shortcuts

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