def add_rule(self, match_expression, sample_rate):
        self.__sampling_rules.append(SamplingRule(match_expression, sample_rate))
Appends a new sampling rule.  Any line that contains a match for match expression will be sampled with
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/log_processing.py/LogLineSampler.add_rule