pyfarm.agent.http.system module

pyfarm.agent.http.system.mb(value)[source]
pyfarm.agent.http.system.seconds(value)[source]
class pyfarm.agent.http.system.HTMLResource[source]

Bases: pyfarm.agent.http.core.resource.Resource

ALLOWED_CONTENT_TYPE = frozenset(['', 'text/html'])
ALLOWED_ACCEPT = frozenset(['*/*', 'text/html'])
class pyfarm.agent.http.system.Index[source]

Bases: pyfarm.agent.http.system.HTMLResource

serves request for the root, ‘/’, target

TEMPLATE = 'index.html'
get(**_)[source]
class pyfarm.agent.http.system.Configuration[source]

Bases: pyfarm.agent.http.system.HTMLResource

TEMPLATE = 'configuration.html'
HIDDEN_FIELDS = ('agent', 'agent_pretty_json')
EDITABLE_FIELDS = ('agent_cpus', 'agent_hostname', 'master_api', 'master', 'agent_ram_check_interval', 'agent_ram', 'agent_ram_report_delta', 'agent_time_offset', 'state', 'agent_http_retry_delay_factor', 'agent_http_retry_delay_offset')
get(**_)[source]