Documentation ¶
Index ¶
- Variables
- type Type
- func (Type) Descriptor() protoreflect.EnumDescriptor
- func (x Type) Enum() *Type
- func (Type) EnumDescriptor() ([]byte, []int)deprecated
- func (t Type) Equal(target Type) bool
- func (t Type) IsIn(targets ...Type) bool
- func (t Type) MarshalJSON() ([]byte, error)
- func (x Type) Number() protoreflect.EnumNumber
- func (x Type) String() string
- func (Type) Type() protoreflect.EnumType
- func (t *Type) UnmarshalJSON(b []byte) error
- type Unit
- func (*Unit) Descriptor() ([]byte, []int)deprecated
- func (x *Unit) GetDeltaCost() float64
- func (x *Unit) GetDeltaPercent() float64
- func (x *Unit) GetDescription() string
- func (x *Unit) GetDomain() Type
- func (x *Unit) GetMonth() int32
- func (x *Unit) GetName() string
- func (x *Unit) GetRealCost() float64
- func (x *Unit) GetTaskId() float64
- func (x *Unit) GetType() Type
- func (x *Unit) GetYear() int32
- func (*Unit) ProtoMessage()
- func (x *Unit) ProtoReflect() protoreflect.Message
- func (x *Unit) Reset()
- func (x *Unit) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Type_name = map[int32]string{ 0: "DOMAIN", 1: "NAMESPACE", 2: "VENDOR", 3: "ACCOUNT", 4: "REGION", 5: "RESOURCE_TYPE", 6: "ENV", } Type_value = map[string]int32{ "DOMAIN": 0, "NAMESPACE": 1, "VENDOR": 2, "ACCOUNT": 3, "REGION": 4, "RESOURCE_TYPE": 5, "ENV": 6, } )
Enum value maps for Type.
View Source
var (
AppName = "cost"
)
View Source
var File_apps_cost_pb_cost_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type int32
成本单元类型
func ParseTypeFromString ¶
ParseTypeFromString Parse Type from string
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type Unit ¶
type Unit struct { // 财务单元类型 // @gotags: json:"type" Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=infraboard.cmdb.cost.Type" json:"type"` // 财务单元所属域, 到统计域时,该值为空 // @gotags: json:"domain" Domain Type `protobuf:"varint,2,opt,name=domain,proto3,enum=infraboard.cmdb.cost.Type" json:"domain"` // 财务单元的名称 // @gotags: json:"name" Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"` // 财务单元的描述信息 // @gotags: json:"description" Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description"` // 年份 // @gotags: json:"year" Year int32 `protobuf:"varint,5,opt,name=year,proto3" json:"year"` // 月份 // @gotags: json:"month" Month int32 `protobuf:"varint,6,opt,name=month,proto3" json:"month"` // 月账单 // @gotags: json:"real_cost" RealCost float64 `protobuf:"fixed64,7,opt,name=real_cost,json=realCost,proto3" json:"real_cost"` // 同步增长金额 // @gotags: json:"delta_cost" DeltaCost float64 `protobuf:"fixed64,8,opt,name=delta_cost,json=deltaCost,proto3" json:"delta_cost"` // 同步增长比例 // @gotags: json:"delta_percent" DeltaPercent float64 `protobuf:"fixed64,9,opt,name=delta_percent,json=deltaPercent,proto3" json:"delta_percent"` // 关联的具体详情Task // @gotags: json:"task_id" TaskId float64 `protobuf:"fixed64,15,opt,name=task_id,json=taskId,proto3" json:"task_id"` // contains filtered or unexported fields }
用于成本聚合统计的单元
func (*Unit) Descriptor
deprecated
func (*Unit) GetDeltaCost ¶
func (*Unit) GetDeltaPercent ¶
func (*Unit) GetDescription ¶
func (*Unit) GetRealCost ¶
func (*Unit) ProtoMessage ¶
func (*Unit) ProtoMessage()
func (*Unit) ProtoReflect ¶
func (x *Unit) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.