package event

import (
	"time"
)

type ClusterThresholdStateChanged struct {
	TenantID    uint64
	ProjectID   uint64
	ClusterID   uint64
	TriggerTime time.Time

	IsDevTier bool

	IngressThrottled bool
	EgressThrottled  bool
}

func (ev *ClusterThresholdStateChanged) AnyThrottled() bool {
	return ev.IngressThrottled || ev.EgressThrottled
}
