missing Instance hit per Purchase +Booking

This commit is contained in:
mr
2026-02-23 15:08:27 +01:00
parent 19b0f10e71
commit 25e4e67111
2 changed files with 6 additions and 2 deletions

View File

@@ -34,6 +34,8 @@ type Booking struct {
ResourceType tools.DataType `json:"resource_type,omitempty" bson:"resource_type,omitempty" validate:"required"` // ResourceType is the type of the resource
ResourceID string `json:"resource_id,omitempty" bson:"resource_id,omitempty" validate:"required"` // could be a Compute or a Storage
InstanceID string `json:"instance_id,omitempty" bson:"instance_id,omitempty" validate:"required"` // could be a Compute or a Storage
}
func (b *Booking) CalcDeltaOfExecution() map[string]map[string]models.MetricResume {