|
|
|
@ -68,10 +68,10 @@ public class TenantApiUsageState extends BaseApiUsageState { |
|
|
|
for (ApiUsageRecordKey recordKey : ApiUsageRecordKey.getKeys(feature)) { |
|
|
|
long value = get(recordKey); |
|
|
|
boolean featureEnabled = getProfileFeatureEnabled(recordKey); |
|
|
|
long threshold = getProfileThreshold(recordKey); |
|
|
|
long warnThreshold = getProfileWarnThreshold(recordKey); |
|
|
|
ApiUsageStateValue tmpValue; |
|
|
|
if (featureEnabled) { |
|
|
|
long threshold = getProfileThreshold(recordKey); |
|
|
|
long warnThreshold = getProfileWarnThreshold(recordKey); |
|
|
|
if (threshold == 0 || value == 0 || value < warnThreshold) { |
|
|
|
tmpValue = ApiUsageStateValue.ENABLED; |
|
|
|
} else if (value < threshold) { |
|
|
|
|