Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.graphite.GraphiteFeeder Class Reference
Inheritance diagram for homeassistant.components.graphite.GraphiteFeeder:
[legend]
Collaboration diagram for homeassistant.components.graphite.GraphiteFeeder:
[legend]

Public Member Functions

def __init__ (self, hass, host, port, protocol, prefix)
 
def event_listener (self, event)
 
def run (self)
 
def shutdown (self, event)
 
def start_listen (self, event)
 

Private Member Functions

def _report_attributes (self, entity_id, new_state)
 
def _send_to_graphite (self, data)
 

Private Attributes

 _hass
 
 _host
 
 _port
 
 _prefix
 
 _protocol
 
 _queue
 
 _quit_object
 
 _unsub_state_changed
 

Detailed Description

Feed data to Graphite.

Definition at line 77 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.graphite.GraphiteFeeder.__init__ (   self,
  hass,
  host,
  port,
  protocol,
  prefix 
)
Initialize the feeder.

Definition at line 80 of file __init__.py.

Member Function Documentation

◆ _report_attributes()

def homeassistant.components.graphite.GraphiteFeeder._report_attributes (   self,
  entity_id,
  new_state 
)
private
Report the attributes.

Definition at line 134 of file __init__.py.

◆ _send_to_graphite()

def homeassistant.components.graphite.GraphiteFeeder._send_to_graphite (   self,
  data 
)
private
Send data to Graphite.

Definition at line 121 of file __init__.py.

◆ event_listener()

def homeassistant.components.graphite.GraphiteFeeder.event_listener (   self,
  event 
)
Queue an event for processing.

Definition at line 113 of file __init__.py.

◆ run()

def homeassistant.components.graphite.GraphiteFeeder.run (   self)
Run the process to export the data.

Definition at line 155 of file __init__.py.

◆ shutdown()

def homeassistant.components.graphite.GraphiteFeeder.shutdown (   self,
  event 
)
Signal shutdown of processing event.

Definition at line 105 of file __init__.py.

◆ start_listen()

def homeassistant.components.graphite.GraphiteFeeder.start_listen (   self,
  event 
)
Start event-processing thread.

Definition at line 96 of file __init__.py.

Member Data Documentation

◆ _hass

homeassistant.components.graphite.GraphiteFeeder._hass
private

Definition at line 83 of file __init__.py.

◆ _host

homeassistant.components.graphite.GraphiteFeeder._host
private

Definition at line 84 of file __init__.py.

◆ _port

homeassistant.components.graphite.GraphiteFeeder._port
private

Definition at line 85 of file __init__.py.

◆ _prefix

homeassistant.components.graphite.GraphiteFeeder._prefix
private

Definition at line 88 of file __init__.py.

◆ _protocol

homeassistant.components.graphite.GraphiteFeeder._protocol
private

Definition at line 86 of file __init__.py.

◆ _queue

homeassistant.components.graphite.GraphiteFeeder._queue
private

Definition at line 89 of file __init__.py.

◆ _quit_object

homeassistant.components.graphite.GraphiteFeeder._quit_object
private

Definition at line 90 of file __init__.py.

◆ _unsub_state_changed

homeassistant.components.graphite.GraphiteFeeder._unsub_state_changed
private

Definition at line 91 of file __init__.py.


The documentation for this class was generated from the following file: