schema

package
v0.0.0-...-a1c510b Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemaVersionRawData         = "2024-02-20"
	SchemaVersionTransformedData = "2024-02-20"
)

Functions

This section is empty.

Types

type RawData

type RawData struct {
	Time          time.Time         `json:"time"`
	SchemaVersion string            `json:"schema_version"`
	Onwer         string            `json:"owner"`
	Project       string            `json:"project"`
	Service       string            `json:"service"`
	Tags          map[string]string `json:"tags"`
	Data          []byte            `json:"data"`
}

type TransformedData

type TransformedData struct {
	Time              time.Time `json:"time"`
	SchemaVersion     string    `json:"schema_version"`
	Metadata          string    `json:"metadata"`
	Owner             string    `json:"owner"`
	Project           string    `json:"project"`
	Provider          string    `json:"provider"`
	Service           string    `json:"service"`
	SKU               string    `json:"sku"`
	CostAmount        float64   `json:"cost_amount"`
	CostAmountUnit    string    `json:"cost_amount_unit"`
	UsageQuantity     float64   `json:"usage_quantity"`
	UsageQuantityUnit string    `json:"usage_quantity_unit"`
	ExchangeRate      float64   `json:"exchange_rate"`
	TotalCost         float64   `json:"total_cost"`
	TotalCostUnit     string    `json:"total_cost_unit"`
}

Jump to

Keyboard shortcuts

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