From e5d9a4fcfa1f06cadcfdf615f8424e80b3f374b8 Mon Sep 17 00:00:00 2001 From: zionwu Date: Fri, 23 Mar 2018 10:53:25 +0800 Subject: [PATCH] Change type to eventType for TargetEvent --- apis/management.cattle.io/v3/alerting_types.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apis/management.cattle.io/v3/alerting_types.go b/apis/management.cattle.io/v3/alerting_types.go index f96aa39e..0467ac6b 100644 --- a/apis/management.cattle.io/v3/alerting_types.go +++ b/apis/management.cattle.io/v3/alerting_types.go @@ -81,13 +81,12 @@ type TargetPod struct { } type TargetEvent struct { - Type string `json:"type,omitempty" norman:"required,options=Normal|Warning,default=Warning"` + EventType string `json:"eventType,omitempty" norman:"required,options=Normal|Warning,default=Warning"` ResourceKind string `json:"resourceKind,omitempty" norman:"required,options=Pod|Node|Deployment|Statefulset|Daemonset"` } type TargetWorkload struct { WorkloadID string `json:"workloadId,omitempty"` - Type string `json:"type,omitempty" norman:"required,options=deployment|statefulset|daemonset,default=deployment"` Selector map[string]string `json:"selector,omitempty"` AvailablePercentage int `json:"availablePercentage,omitempty" norman:"required,min=1,max=100,default=70"` }