From 7de095302bf645191bb55218750161f59987af88 Mon Sep 17 00:00:00 2001 From: Nikita Sorokin Date: Fri, 25 Aug 2023 13:53:43 +0300 Subject: [PATCH] v1.5.5 --- CHANGELOG.md | 10 +++------- pkg/cloudbroker/sep/models.go | 26 +++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0405059..bc3600d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,5 @@ -## Version 1.5.4 - -### Feature -- Added cloudbroker/stack group of endpoints support. Added the possibility to get information about stacks (list handler) and about a specific stack by ID (get handler) -- Added cloudbroker/flipgroup group of endpoints support. Added the possibility to get information about flipgroup (list handler) and about a specific flipgroup by ID (get handler), add and remote compute, create, edit and delete flipgroup. - +## Version 1.5.5 ### Bugfix -- Fixed the field image/models/history.guid, added a custom unmarshall. Fixed an error with get information about images (handlers - list, get) in cloudbroker \ No newline at end of file +- Added missing field cloudbroker/sep/RecordPool/UsageLimit +- Fixed the field cloudbroker/sep/RecordConsumption/ByPool \ No newline at end of file diff --git a/pkg/cloudbroker/sep/models.go b/pkg/cloudbroker/sep/models.go index 17c2e6f..39bfb5d 100644 --- a/pkg/cloudbroker/sep/models.go +++ b/pkg/cloudbroker/sep/models.go @@ -24,10 +24,31 @@ type Total struct { UsageLimit uint64 `json:"usage_limit"` } +type ByPool struct { + + // Disk count + DiskCount uint64 `json:"disk_count"` + + // Disk usage + DiskUsage uint64 `json:"disk_usage"` + + // Snapshot count + SnapshotCount uint64 `json:"snapshot_count"` + + // Snapshot usage + SnapshotUsage uint64 `json:"snapshot_usage"` + + // Usage + Usage uint64 `json:"usage"` + + // Usage limit + UsageLimit uint64 `json:"usage_limit"` +} + // Main information about consumption type RecordConsumption struct { // By pool - ByPool map[string]interface{} `json:"byPool"` + ByPool map[string]ByPool `json:"byPool"` // Total resource information Total Total `json:"total"` @@ -70,6 +91,9 @@ type RecordPool struct { // List URIs URIs ListURIs `json:"uris"` + + // Usage Limit + UsageLimit uint64 `json:"usage_limit"` } // SEP config