Class KpiMonitorBuilder.ConfigurableBuilder

    • Method Detail

      • withContextValue

        public KpiMonitorBuilder.ConfigurableBuilder withContextValue​(String key,
                                                                      String value)
        Sets a - flat - context value for this monitor execution.
        Parameters:
        key - context value key
        value - context value "value"
        Returns:
        this builder
      • refreshManually

        public KpiMonitorBuilder.WorkflowMissing refreshManually()
        Configures this monitor to refresh manually on user demand.

        By default, this monitor is configured to be in real-time, using the mode KpiMonitorConfigurationDto.Mode.CONTINUOUS;

        Returns:
        builder at the next step
      • refreshEvery

        public KpiMonitorBuilder.WorkflowMissing refreshEvery​(long period,
                                                              TimeUnit unit)
        Configures this monitor to refresh periodically.

        By default, this monitor is configured to be in real-time, using the mode KpiMonitorConfigurationDto.Mode.CONTINUOUS;

        Parameters:
        period - duration between each refresh
        unit - time unit of the period
        Returns:
        builder at the next step