lemur/plugins/lemur_atlas/plugin.py [52:71]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def submit(
        self, metric_name, metric_type, metric_value, metric_tags=None, options=None
    ):
        if not options:
            options = self.options

        # TODO marshmallow schema?
        valid_types = ["COUNTER", "GAUGE", "TIMER"]
        if metric_type.upper() not in valid_types:
            raise Exception(
                "Invalid Metric Type for Atlas: '{metric}' choose from: {options}".format(
                    metric=metric_type, options=",".join(valid_types)
                )
            )

        if metric_tags:
            if not isinstance(metric_tags, dict):
                raise Exception(
                    "Invalid Metric Tags for Atlas: Tags must be in dict format"
                )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



lemur/plugins/lemur_atlas_redis/plugin.py [52:70]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    def submit(
        self, metric_name, metric_type, metric_value, metric_tags=None, options=None
    ):
        if not options:
            options = self.options

        valid_types = ["COUNTER", "GAUGE", "TIMER"]
        if metric_type.upper() not in valid_types:
            raise Exception(
                "Invalid Metric Type for Atlas: '{metric}' choose from: {options}".format(
                    metric=metric_type, options=",".join(valid_types)
                )
            )

        if metric_tags:
            if not isinstance(metric_tags, dict):
                raise Exception(
                    "Invalid Metric Tags for Atlas: Tags must be in dict format"
                )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



