Class HtmlReporter

    • Constructor Detail

      • HtmlReporter

        public HtmlReporter​(String reportsDirectoryPath,
                            String name)
    • Method Detail

      • timeGraphsGranularity

        public HtmlReporter timeGraphsGranularity​(Duration granularity)
        Allows specifying the granularity for time graphs.

        This is handy if you need to get more or less detail presented in time graphs.

        Parameters:
        granularity - specifies the granularity to be set. When not specified, the default value is 1 minute. Due to existing bug, set this value to a duration greater than 1 second to avoid issues with TPS graphs.
        Returns:
        the HtmlReporter for further configuration and usage.
        Since:
        1.9
      • apdexThresholds

        public HtmlReporter apdexThresholds​(Duration satisfiedThreshold,
                                            Duration toleratedThreshold)
        Allows to configure general Apdex thresholds for all requests.

        Apdex allows to evaluate user satisfaction according to response times. You may find more about this here.

        Parameters:
        satisfiedThreshold - specifies the satisfaction threshold. When not specified this value defaults to 1500.
        toleratedThreshold - specifies the tolerance threshold. When not specified this value defaults to 3000.
        Returns:
        the HtmlReporter for further configuration and usage.
        Since:
        0.59
      • transactionApdexThresholds

        public HtmlReporter transactionApdexThresholds​(String sampleLabelRegex,
                                                       Duration satisfiedThreshold,
                                                       Duration toleratedThreshold)
        Allows to configure a particular sample label Apdex thresholds.

        You can use it to control the apdex thresholds for a set of samplers or transactions that share same label.

        Parameters:
        sampleLabelRegex - regular expression used to match sample labels to apply the thresholds to.
        satisfiedThreshold - specifies the satisfaction threshold. When not specified, the general apdex thresholds for all requests are applied.
        toleratedThreshold - specifies the tolerance threshold. When not specified, the general apdex thresholds for all requests are applied.
        Returns:
        the HtmlReporter for further configuration and usage.
        Since:
        0.59
        See Also:
        apdexThresholds(Duration, Duration)