Пример #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]
Пример #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]
Пример #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)
Пример #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]
Пример #5
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
Пример #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]
Пример #7
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)
Пример #8
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]