ac5647a30e7e54631e371af06d88370ff90a6af7,homeassistant/components/statsd.py,,,#,13
Before Change
_LOGGER = logging.getLogger(__name__)
DOMAIN = "statsd"
DEPENDENCIES = []
DEFAULT_HOST = "localhost"
DEFAULT_PORT = 8125
DEFAULT_PREFIX = "hass"
After Change
DEFAULT_RATE = 1
DOMAIN = "statsd"
CONFIG_SCHEMA = vol.Schema({
DOMAIN: vol.Schema({
vol.Required(CONF_HOST, default=DEFAULT_HOST): cv.string,
vol.Optional(CONF_ATTR, default=False): cv.boolean,
vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
vol.Optional(CONF_PREFIX, default=DEFAULT_PREFIX): cv.string,
vol.Optional(CONF_RATE, default=DEFAULT_RATE):
vol.All(vol.Coerce(int), vol.Range(min=1)),
}),
}, extra=vol.ALLOW_EXTRA)
def setup(hass, config):
Setup the StatsD component.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 18
Instances
Project Name: home-assistant/home-assistant
Commit Name: ac5647a30e7e54631e371af06d88370ff90a6af7
Time: 2016-09-13
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/statsd.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 3bbcf4d8b1d4c10c99033c09c0fcd75c2dfabeae
Time: 2016-09-02
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/weblink.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: ac5647a30e7e54631e371af06d88370ff90a6af7
Time: 2016-09-13
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/statsd.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 6f27d58188ce908ea6f04e0f9cd7887c1201b614
Time: 2016-08-23
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/splunk.py
Class Name:
Method Name: