Browse Source

Added tenant config model and default value

pull/12791/head
mpetrov 2 years ago
parent
commit
c9b6a9e17c
  1. 15
      ui-ngx/src/app/shared/models/tenant.model.ts

15
ui-ngx/src/app/shared/models/tenant.model.ts

@ -95,6 +95,13 @@ export interface DefaultTenantProfileConfiguration {
rpcTtlDays: number;
queueStatsTtlDays: number;
ruleEngineExceptionsTtlDays: number;
maxCalculatedFieldsPerEntity: number;
maxArgumentsPerCF: number;
maxDataPointsPerRollingArg: number;
maxStateSizeInKBytes: number;
maxSingleValueArgumentSizeInKBytes: number;
calculatedFieldDebugEventsRateLimit: string;
}
export type TenantProfileConfigurations = DefaultTenantProfileConfiguration;
@ -148,7 +155,13 @@ export function createTenantProfileConfiguration(type: TenantProfileType): Tenan
alarmsTtlDays: 0,
rpcTtlDays: 0,
queueStatsTtlDays: 0,
ruleEngineExceptionsTtlDays: 0
ruleEngineExceptionsTtlDays: 0,
maxCalculatedFieldsPerEntity: 0,
maxArgumentsPerCF: 0,
maxDataPointsPerRollingArg: 0,
maxStateSizeInKBytes: 0,
maxSingleValueArgumentSizeInKBytes: 0,
calculatedFieldDebugEventsRateLimit: ''
};
configuration = {...defaultConfiguration, type: TenantProfileType.DEFAULT};
break;

Loading…
Cancel
Save