# Path: collectors/etc/docker_engine_conf.py
# def enabled():
# def get_config():


import time
from collectors.etc import docker_engine_conf
#!/usr/bin/env python
# This file is part of tcollector.
# Copyright (C) 2010-2013  The tcollector Authors.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.  This program is distributed in the hope that it
# will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
# General Public License for more details.  You should have received a copy
# of the GNU Lesser General Public License along with this program.  If not,
# see <http://www.gnu.org/licenses/>.



CONFIG = docker_engine_conf.get_config()
DEFAULT_DIMS = CONFIG['default_dims']


class Metric(object):
    def __init__(self, name, etime, value, tags=None):
        self.name = name
        self.value = value
        self.event_time = etime
        if tags is None:
            self.dims = set([])
        else:

# Path: collectors/etc/docker_engine_conf.py
# def enabled():
# def get_config():


# Path: collectors/lib/docker_engine/metric.py
import time
from collectors.etc import docker_engine_conf

#!/usr/bin/env python
# This file is part of tcollector.
# Copyright (C) 2010-2013  The tcollector Authors.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.  This program is distributed in the hope that it
# will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
# General Public License for more details.  You should have received a copy
# of the GNU Lesser General Public License along with this program.  If not,
# see <http://www.gnu.org/licenses/>.



CONFIG = docker_engine_conf.get_config()
DEFAULT_DIMS = CONFIG['default_dims']


class Metric(object):
    def __init__(self, name, etime, value, tags=None):
        self.name = name
        self.value = value
        self.event_time = etime
        if tags is None:
            self.dims = set([])
        else:

            self.dims = set(tags)