bqpb

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package bqpb is the generated bigquery protos for the fleet cost service.

Index

Constants

This section is empty.

Variables

View Source
var File_go_chromium_org_infra_cros_fleetcost_api_bigquery_result_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CostResult

type CostResult struct {

	// Name is the hostname or device id of the entity with the cost associated with it, as appropriate.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Namespace is the namespace that the record resides in, valid namespaces are:
	// - OS
	// - BROWSER
	// - ANDROID
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// hourly_total_cost is the total hourly cost.
	HourlyTotalCost float64 `protobuf:"fixed64,3,opt,name=hourly_total_cost,json=hourlyTotalCost,proto3" json:"hourly_total_cost,omitempty"`
	// hourly_dedicated_cost is the cost for this specific device.
	HourlyDedicatedCost float64 `protobuf:"fixed64,4,opt,name=hourly_dedicated_cost,json=hourlyDedicatedCost,proto3" json:"hourly_dedicated_cost,omitempty"`
	// hourly_shared_cost is the pro-rated share of costs that aren't specific to this device.
	HourlySharedCost float64 `protobuf:"fixed64,5,opt,name=hourly_shared_cost,json=hourlySharedCost,proto3" json:"hourly_shared_cost,omitempty"`
	// hourly_cloud_cost is the pro-rated share of the cloud costs.
	HourlyCloudCost float64 `protobuf:"fixed64,6,opt,name=hourly_cloud_cost,json=hourlyCloudCost,proto3" json:"hourly_cloud_cost,omitempty"`
	// contains filtered or unexported fields
}

CostResult is a cached cost result.

For simplicity, the cost result table will be partitioned by ingestion time, but there is no dedicated field for ingestion time in this schema.

func (*CostResult) Descriptor deprecated

func (*CostResult) Descriptor() ([]byte, []int)

Deprecated: Use CostResult.ProtoReflect.Descriptor instead.

func (*CostResult) GetHourlyCloudCost

func (x *CostResult) GetHourlyCloudCost() float64

func (*CostResult) GetHourlyDedicatedCost

func (x *CostResult) GetHourlyDedicatedCost() float64

func (*CostResult) GetHourlySharedCost

func (x *CostResult) GetHourlySharedCost() float64

func (*CostResult) GetHourlyTotalCost

func (x *CostResult) GetHourlyTotalCost() float64

func (*CostResult) GetName

func (x *CostResult) GetName() string

func (*CostResult) GetNamespace

func (x *CostResult) GetNamespace() string

func (*CostResult) ProtoMessage

func (*CostResult) ProtoMessage()

func (*CostResult) ProtoReflect

func (x *CostResult) ProtoReflect() protoreflect.Message

func (*CostResult) Reset

func (x *CostResult) Reset()

func (*CostResult) String

func (x *CostResult) String() string

Directories

Path Synopsis
Package bqvaluesavers wraps saveable-to-bigquery proto types so that we don't have to put methods on the proto message, which is bad style.
Package bqvaluesavers wraps saveable-to-bigquery proto types so that we don't have to put methods on the proto message, which is bad style.

Jump to

Keyboard shortcuts

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