Class RuleCondition

    • Constructor Detail

      • RuleCondition

        public RuleCondition()
    • Method Detail

      • dataSource

        public RuleDataSource dataSource()
        Get the dataSource property: the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
        Returns:
        the dataSource value.
      • withDataSource

        public RuleCondition withDataSource​(RuleDataSource dataSource)
        Set the dataSource property: the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
        Parameters:
        dataSource - the dataSource value to set.
        Returns:
        the RuleCondition object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.