From bb013c9803919e3a1c177e7710b6d2dfd456dc81 Mon Sep 17 00:00:00 2001 From: kooomix Date: Mon, 9 Feb 2026 16:21:25 +0200 Subject: [PATCH 1/2] feat: add HostName field to WorkloadViews for inventory host filter SUB-6828: Supports the new Host filter on the inventory page by adding a HostName field to the API model. Co-Authored-By: Claude Opus 4.6 --- armotypes/workloadview.go | 1 + 1 file changed, 1 insertion(+) diff --git a/armotypes/workloadview.go b/armotypes/workloadview.go index 86dcef6..d51c32a 100644 --- a/armotypes/workloadview.go +++ b/armotypes/workloadview.go @@ -16,4 +16,5 @@ type WorkloadViews struct { LearningPeriod string `json:"learningPeriod,omitempty"` RiskFactors []string `json:"riskFactors,omitempty"` LearningPercentage *int `json:"learningPercentage,omitempty"` + HostName string `json:"hostName,omitempty"` } From 9e3b12b40dac34bcb0f83d8b8322f54913d128e5 Mon Sep 17 00:00:00 2001 From: kooomix Date: Tue, 10 Feb 2026 07:04:55 +0200 Subject: [PATCH 2/2] feat: introduce Type field to WorkloadViews and mark Kind for future deprecation Add a new Type field to the WorkloadViews struct for enhanced workload classification. The existing Kind field is marked for deprecation in future versions, ensuring a smoother transition for API consumers. --- armotypes/workloadview.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/armotypes/workloadview.go b/armotypes/workloadview.go index d51c32a..4ada61f 100644 --- a/armotypes/workloadview.go +++ b/armotypes/workloadview.go @@ -4,7 +4,8 @@ import "time" type WorkloadViews struct { WorkloadName string `json:"workloadName"` - Kind string `json:"kind"` + Kind string `json:"kind"` // will be deprecated in the future after type is introduced + Type string `json:"type"` Cluster string `json:"cluster"` AccountID string `json:"accountId"` Region string `json:"region"`