diff --git a/ui-ngx/src/app/modules/home/components/profile/tenant-profile.component.html b/ui-ngx/src/app/modules/home/components/profile/tenant-profile.component.html
index e5a3a54293..18dd97fac4 100644
--- a/ui-ngx/src/app/modules/home/components/profile/tenant-profile.component.html
+++ b/ui-ngx/src/app/modules/home/components/profile/tenant-profile.component.html
@@ -62,14 +62,14 @@
{{'tenant.isolated-tb-rule-engine-details' | translate}}
-
-
tenant-profile.description
+
+
diff --git a/ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.html b/ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.html
index 2a975479bd..9ea904d820 100644
--- a/ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.html
+++ b/ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.html
@@ -15,87 +15,81 @@
limitations under the License.
-->
-
diff --git a/ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.ts b/ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.ts
index f9fe3bc3b1..8bcde9a68b 100644
--- a/ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.ts
+++ b/ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.ts
@@ -80,22 +80,19 @@ export class DefaultTenantProfileConfigurationComponent implements ControlValueA
defaultStorageTtlDays: [null, [Validators.required, Validators.min(0)]],
alarmsTtlDays: [null, [Validators.required, Validators.min(0)]],
rpcTtlDays: [null, [Validators.required, Validators.min(0)]],
-
- rateLimitsTenantConfiguration: [null, [Validators.pattern(this.rateLimitsPattern)]],
- rateLimitsCustomerConfiguration: [null, [Validators.pattern(this.rateLimitsPattern)]],
-
- wsLimitMaxSessionsPerTenant: [null, [Validators.min(0)]],
- wsLimitMaxSessionsPerCustomer: [null, [Validators.min(0)]],
- wsLimitMaxSessionsPerPublicUser: [null, [Validators.min(0)]],
- wsLimitQueuePerWsSession: [null, [Validators.min(0)]],
- wsLimitMaxSubscriptionsPerTenant: [null, [Validators.min(0)]],
- wsLimitMaxSubscriptionsPerCustomer: [null, [Validators.min(0)]],
- wsLimitMaxSubscriptionsPerRegularUser: [null, [Validators.min(0)]],
- wsLimitMaxSubscriptionsPerPublicUser: [null, [Validators.min(0)]],
- wsLimitUpdatesPerSession: [null, [Validators.pattern(this.rateLimitsPattern)]],
-
- cassandraTenantLimitsConfiguration: [null, [Validators.pattern(this.rateLimitsPattern)]],
- printTenantNames: [null, []]
+ tenantServerRestLimitsConfiguration: [null, [Validators.pattern(this.rateLimitsPattern)]],
+ customerServerRestLimitsConfiguration: [null, [Validators.pattern(this.rateLimitsPattern)]],
+ maxWsSessionsPerTenant: [null, [Validators.min(0)]],
+ maxWsSessionsPerCustomer: [null, [Validators.min(0)]],
+ maxWsSessionsPerRegularUser: [null, [Validators.min(0)]],
+ maxWsSessionsPerPublicUser: [null, [Validators.min(0)]],
+ wsMsgQueueLimitPerSession: [null, [Validators.min(0)]],
+ maxWsSubscriptionsPerTenant: [null, [Validators.min(0)]],
+ maxWsSubscriptionsPerCustomer: [null, [Validators.min(0)]],
+ maxWsSubscriptionsPerRegularUser: [null, [Validators.min(0)]],
+ maxWsSubscriptionsPerPublicUser: [null, [Validators.min(0)]],
+ wsUpdatesPerSessionRateLimit: [null, [Validators.pattern(this.rateLimitsPattern)]],
+ cassandraQueryTenantRateLimitsConfiguration: [null, [Validators.pattern(this.rateLimitsPattern)]]
});
this.defaultTenantProfileConfigurationFormGroup.valueChanges.subscribe(() => {
this.updateModel();
diff --git a/ui-ngx/src/app/shared/models/tenant.model.ts b/ui-ngx/src/app/shared/models/tenant.model.ts
index 910e48d0a6..26b5a0aa88 100644
--- a/ui-ngx/src/app/shared/models/tenant.model.ts
+++ b/ui-ngx/src/app/shared/models/tenant.model.ts
@@ -51,22 +51,21 @@ export interface DefaultTenantProfileConfiguration {
maxSms: number;
maxCreatedAlarms: number;
- rateLimitsTenantConfiguration: string;
- rateLimitsCustomerConfiguration: string;
-
- wsLimitMaxSessionsPerTenant: number;
- wsLimitMaxSessionsPerCustomer: number;
- wsLimitMaxSessionsPerRegularUser: number;
- wsLimitMaxSessionsPerPublicUser: number;
- wsLimitQueuePerWsSession: number;
- wsLimitMaxSubscriptionsPerTenant: number;
- wsLimitMaxSubscriptionsPerCustomer: number;
- wsLimitMaxSubscriptionsPerRegularUser: number;
- wsLimitMaxSubscriptionsPerPublicUser: number;
- wsLimitUpdatesPerSession: string;
-
- cassandraTenantLimitsConfiguration: string;
- printTenantNames: boolean;
+ tenantServerRestLimitsConfiguration: string;
+ customerServerRestLimitsConfiguration: string;
+
+ maxWsSessionsPerTenant: number;
+ maxWsSessionsPerCustomer: number;
+ maxWsSessionsPerRegularUser: number;
+ maxWsSessionsPerPublicUser: number;
+ wsMsgQueueLimitPerSession: number;
+ maxWsSubscriptionsPerTenant: number;
+ maxWsSubscriptionsPerCustomer: number;
+ maxWsSubscriptionsPerRegularUser: number;
+ maxWsSubscriptionsPerPublicUser: number;
+ wsUpdatesPerSessionRateLimit: string;
+
+ cassandraQueryTenantRateLimitsConfiguration: string;
defaultStorageTtlDays: number;
alarmsTtlDays: number;
@@ -102,26 +101,22 @@ export function createTenantProfileConfiguration(type: TenantProfileType): Tenan
maxEmails: 0,
maxSms: 0,
maxCreatedAlarms: 0,
+ tenantServerRestLimitsConfiguration: '',
+ customerServerRestLimitsConfiguration: '',
+ maxWsSessionsPerTenant: 0,
+ maxWsSessionsPerCustomer: 0,
+ maxWsSessionsPerRegularUser: 0,
+ maxWsSessionsPerPublicUser: 0,
+ wsMsgQueueLimitPerSession: 0,
+ maxWsSubscriptionsPerTenant: 0,
+ maxWsSubscriptionsPerCustomer: 0,
+ maxWsSubscriptionsPerRegularUser: 0,
+ maxWsSubscriptionsPerPublicUser: 0,
+ wsUpdatesPerSessionRateLimit: '',
+ cassandraQueryTenantRateLimitsConfiguration: '',
defaultStorageTtlDays: 0,
alarmsTtlDays: 0,
rpcTtlDays: 0,
-
- rateLimitsTenantConfiguration: '',
- rateLimitsCustomerConfiguration: '',
-
- wsLimitMaxSessionsPerTenant: 0,
- wsLimitMaxSessionsPerCustomer: 0,
- wsLimitMaxSessionsPerRegularUser: 0,
- wsLimitMaxSessionsPerPublicUser: 0,
- wsLimitQueuePerWsSession: 500,
- wsLimitMaxSubscriptionsPerTenant: 0,
- wsLimitMaxSubscriptionsPerCustomer: 0,
- wsLimitMaxSubscriptionsPerRegularUser: 0,
- wsLimitMaxSubscriptionsPerPublicUser: 0,
- wsLimitUpdatesPerSession: '' ,
-
- cassandraTenantLimitsConfiguration: '',
- printTenantNames: false
};
configuration = {...defaultConfiguration, type: TenantProfileType.DEFAULT};
break;
diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json
index c5e49e64f0..851e8933f7 100644
--- a/ui-ngx/src/assets/locale/locale.constant-en_US.json
+++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json
@@ -2814,22 +2814,21 @@
"max-created-alarms": "Maximum number of alarms created (0 - unlimited)",
"max-created-alarms-required": "Maximum number of alarms created is required.",
"max-created-alarms-range": "Maximum number of alarms created can't be negative",
- "tenant-rest-limits": "Server limits of request for Tenant",
- "customer-rest-limits": "Server limits of request for Customer",
- "incorrect-pattern-for-rate-limits": "Here should be conformity of a number of requests per seconds divided by colon, comma separated. For example: 100:1,2000:60",
- "too-small-value-zero": "Too small value specified, it should be more than 0",
- "too-small-value-one": "Too small value specified, it should be more than 1",
- "cassandra-tenant-limits-configuration": "Tenant limits configuration",
- "ws-limit-max-sessions-per-tenant": "Max sessions per Tenant",
- "ws-limit-max-sessions-per-customer": "Max sessions per Customer",
- "ws-limit-max-sessions-per-public-user": "Max sessions per Public User",
- "ws-limit-queue-per-session": "Limit queue per session",
- "ws-limit-max-subscriptions-per-tenant": "Max subscriptions per Tenant",
- "ws-limit-max-subscriptions-per-customer": "Max subscriptions per Customer",
- "ws-limit-max-subscriptions-per-regular-user": "Max subscriptions per regular User",
- "ws-limit-max-subscriptions-per-public-user": "Max subscriptions per public User",
- "ws-limit-updates-per-session": "Constraint of updates per session",
- "cassandra-print-tenant-names": "Print Tenant names to log"
+ "tenant-rest-limits": "Rate limit for REST requests for tenant",
+ "customer-rest-limits": "Rate limit for REST requests for customer",
+ "incorrect-pattern-for-rate-limits": "The format is comma separated pairs of capacity and period (in seconds) with a colon between, e.g. 100:1,2000:60",
+ "too-small-value-zero": "The value must be bigger than 0",
+ "too-small-value-one": "The value must be bigger than 1",
+ "cassandra-tenant-limits-configuration": "Cassandra query rate limit for tenant",
+ "ws-limit-max-sessions-per-tenant": "Maximum number of WS sessions per tenant",
+ "ws-limit-max-sessions-per-customer": "Maximum number of WS sessions per customer",
+ "ws-limit-max-sessions-per-public-user": "Maximum number of WS sessions per public user",
+ "ws-limit-queue-per-session": "Maximum size of WS message queue per session",
+ "ws-limit-max-subscriptions-per-tenant": "Maximum number of WS subscriptions per tenant",
+ "ws-limit-max-subscriptions-per-customer": "Maximum number of WS subscriptions per customer",
+ "ws-limit-max-subscriptions-per-regular-user": "Maximum number of WS subscriptions per regular user",
+ "ws-limit-max-subscriptions-per-public-user": "Maximum number of WS subscriptions per public user",
+ "ws-limit-updates-per-session": "Rate limit for WS updates per session"
},
"timeinterval": {
"seconds-interval": "{ seconds, plural, 1 {1 second} other {# seconds} }",