Exemple #1
0
    def test_tags_gh442(self):
        import dogstatsd
        from aggregator import api_formatter

        serialized = dogstatsd.serialize_metrics(
            [api_formatter("foo", 12, 1, ('tag', ), 'host')])
        assert '"tags": ["tag"]' in serialized[0]
Exemple #2
0
    def test_tags_gh442(self):
        import util
        import dogstatsd
        from aggregator import api_formatter

        serialized = dogstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')])
        assert '"tags": ["tag"]' in serialized[0]
Exemple #3
0
    def test_tags_gh442(self):
        import stsstatsd
        from aggregator import api_formatter

        serialized = stsstatsd.serialize_metrics(
            [api_formatter("foo", 12, 1, ('tag', ), 'host')], "test-host")
        self.assertTrue('"tags": ["tag"]' in serialized[0], serialized)
Exemple #4
0
    def test_tags_gh442(self):
        import sdstatsd
        from aggregator import api_formatter

        serialized = sdstatsd.serialize_metrics(
            [api_formatter("foo", 12, 1,
                           ('tag', ), 'host')], "test-host", "1234567890")
        assert '"tags": ["tag"]' in serialized[0]
    def test_tags_gh442(self):
        import util
        import dogstatsd
        from aggregator import api_formatter

        json = util.generate_minjson_adapter()
        dogstatsd.json = json
        serialized = dogstatsd.serialize([api_formatter("foo", 12, 1, ('tag',), 'host')])
        assert '"tags": ["tag"]' in serialized
Exemple #6
0
    def test_tags_gh442(self):
        import util
        import dogstatsd
        from aggregator import api_formatter

        json = util.generate_minjson_adapter()
        dogstatsd.json = json
        serialized = dogstatsd.serialize_metrics(
            [api_formatter("foo", 12, 1, ('tag', ), 'host')])
        assert '"tags": ["tag"]' in serialized[0]
    def test_tags_gh442(self):
        import dogstatsd
        from aggregator import api_formatter

        serialized = dogstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')], "test-host")
        self.assertTrue('"tags": ["tag"]' in serialized[0], serialized)
    def test_tags_gh442(self):
        import sdstatsd
        from aggregator import api_formatter

        serialized = sdstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')], "test-host", "1234567890")
        assert '"tags": ["tag"]' in serialized[0]