diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts b/ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts index 2a3eca6f1b..c53f400916 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts @@ -105,6 +105,7 @@ export class RelatedEntitiesAggregationComponentComponent implements ControlValu map(argumentsObj => getCalculatedFieldArgumentsHighlights(argumentsObj)) ); + private readonly minAllowedScheduledUpdateIntervalInSecForCF = getCurrentAuthState(this.store).minAllowedScheduledUpdateIntervalInSecForCF; private propagateChange: (config: CalculatedFieldRelatedAggregationConfiguration) => void = () => { }; constructor(private fb: FormBuilder, @@ -149,6 +150,7 @@ export class RelatedEntitiesAggregationComponentComponent implements ControlValu private updatedModel(value: CalculatedFieldRelatedAggregationConfiguration): void { value.type = CalculatedFieldType.RELATED_ENTITIES_AGGREGATION; + value.scheduledUpdateInterval = this.minAllowedScheduledUpdateIntervalInSecForCF; this.propagateChange(value); } } diff --git a/ui-ngx/src/app/shared/models/calculated-field.models.ts b/ui-ngx/src/app/shared/models/calculated-field.models.ts index 5988c308de..1b43700ebe 100644 --- a/ui-ngx/src/app/shared/models/calculated-field.models.ts +++ b/ui-ngx/src/app/shared/models/calculated-field.models.ts @@ -142,6 +142,7 @@ export interface CalculatedFieldRelatedAggregationConfiguration { arguments: Record; metrics: Record; deduplicationIntervalInSec: number; + scheduledUpdateInterval?: number; useLatestTs: boolean; output: CalculatedFieldOutput & { decimalsByDefault?: number; }; }