system

class platypush.message.response.system.ConnectUserResponse(name: str, terminal: str, host: str, started: datetime, pid: Optional[int] = None, *args, **kwargs)[source]

Bases: SystemResponse

__init__(name: str, terminal: str, host: str, started: datetime, pid: Optional[int] = None, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.ConnectedUserResponseList(responses: List[ConnectUserResponse], *args, **kwargs)[source]

Bases: SystemResponseList

__init__(responses: List[ConnectUserResponse], *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.CpuFrequencyResponse(min: int, max: int, current: int, *args, **kwargs)[source]

Bases: CpuResponse

__init__(min: int, max: int, current: int, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.CpuInfoResponse(arch: str, bits: int, count: int, vendor_id: str, brand: str, hz_advertised: int, hz_actual: int, model: int, flags: List[str], family: Optional[int], stepping: Optional[int], l1_instruction_cache_size: Optional[Union[int, str]], l1_data_cache_size: Optional[Union[int, str]], l2_cache_size: Optional[Union[int, str]], l3_cache_size: Optional[Union[int, str]], *args, **kwargs)[source]

Bases: CpuResponse

__init__(arch: str, bits: int, count: int, vendor_id: str, brand: str, hz_advertised: int, hz_actual: int, model: int, flags: List[str], family: Optional[int], stepping: Optional[int], l1_instruction_cache_size: Optional[Union[int, str]], l1_data_cache_size: Optional[Union[int, str]], l2_cache_size: Optional[Union[int, str]], l3_cache_size: Optional[Union[int, str]], *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.CpuResponse(target=None, origin=None, id=None, output=None, errors=None, timestamp=None, logging_level=20)[source]

Bases: SystemResponse

class platypush.message.response.system.CpuResponseList(responses: List[CpuResponse], *args, **kwargs)[source]

Bases: CpuResponse, SystemResponseList

__init__(responses: List[CpuResponse], *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.CpuStatsResponse(ctx_switches: int, interrupts: int, soft_interrupts: int, syscalls: int, *args, **kwargs)[source]

Bases: CpuResponse

__init__(ctx_switches: int, interrupts: int, soft_interrupts: int, syscalls: int, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.CpuTimesResponse(user: float, nice: float, system: float, idle: float, iowait: float, irq: float, softirq: float, steal: float, guest: float, guest_nice: float, *args, **kwargs)[source]

Bases: CpuResponse

__init__(user: float, nice: float, system: float, idle: float, iowait: float, irq: float, softirq: float, steal: float, guest: float, guest_nice: float, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.DiskIoCountersResponse(read_count: int, write_count: int, read_bytes: int, write_bytes: int, read_time: int, write_time: int, read_merged_count: int, write_merged_count: int, busy_time: int, disk: Optional[str] = None, *args, **kwargs)[source]

Bases: DiskResponse

__init__(read_count: int, write_count: int, read_bytes: int, write_bytes: int, read_time: int, write_time: int, read_merged_count: int, write_merged_count: int, busy_time: int, disk: Optional[str] = None, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.DiskPartitionResponse(device: str, mount_point: str, fstype: Optional[str] = None, opts: Optional[str] = None, *args, **kwargs)[source]

Bases: DiskResponse

__init__(device: str, mount_point: str, fstype: Optional[str] = None, opts: Optional[str] = None, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.DiskResponse(target=None, origin=None, id=None, output=None, errors=None, timestamp=None, logging_level=20)[source]

Bases: SystemResponse

class platypush.message.response.system.DiskResponseList(responses: List[DiskResponse], *args, **kwargs)[source]

Bases: DiskResponse, SystemResponseList

__init__(responses: List[DiskResponse], *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.DiskUsageResponse(path: str, total: int, used: int, free: int, percent: float, *args, **kwargs)[source]

Bases: DiskResponse

__init__(path: str, total: int, used: int, free: int, percent: float, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.MemoryResponse(target=None, origin=None, id=None, output=None, errors=None, timestamp=None, logging_level=20)[source]

Bases: SystemResponse

class platypush.message.response.system.NetworkAddressResponse(nic: str, ipv4_address: Optional[str] = None, ipv4_netmask: Optional[str] = None, ipv4_broadcast: Optional[str] = None, ipv6_address: Optional[str] = None, ipv6_netmask: Optional[str] = None, ipv6_broadcast: Optional[str] = None, mac_address: Optional[str] = None, mac_broadcast: Optional[str] = None, ptp: Optional[str] = None, *args, **kwargs)[source]

Bases: NetworkResponse

__init__(nic: str, ipv4_address: Optional[str] = None, ipv4_netmask: Optional[str] = None, ipv4_broadcast: Optional[str] = None, ipv6_address: Optional[str] = None, ipv6_netmask: Optional[str] = None, ipv6_broadcast: Optional[str] = None, mac_address: Optional[str] = None, mac_broadcast: Optional[str] = None, ptp: Optional[str] = None, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.NetworkConnectionResponse(fd: int, family: str, type: str, local_address: str, local_port: int, remote_address: str, remote_port: int, status: str, pid: int, *args, **kwargs)[source]

Bases: NetworkResponse

__init__(fd: int, family: str, type: str, local_address: str, local_port: int, remote_address: str, remote_port: int, status: str, pid: int, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.NetworkInterfaceStatsResponse(nic: str, is_up: bool, duplex: str, speed: int, mtu: int, *args, **kwargs)[source]

Bases: NetworkResponse

__init__(nic: str, is_up: bool, duplex: str, speed: int, mtu: int, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.NetworkIoCountersResponse(bytes_sent: int, bytes_recv: int, packets_sent: int, packets_recv: int, errin: int, errout: int, dropin: int, dropout: int, nic: Optional[str] = None, *args, **kwargs)[source]

Bases: NetworkResponse

__init__(bytes_sent: int, bytes_recv: int, packets_sent: int, packets_recv: int, errin: int, errout: int, dropin: int, dropout: int, nic: Optional[str] = None, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.NetworkResponse(target=None, origin=None, id=None, output=None, errors=None, timestamp=None, logging_level=20)[source]

Bases: SystemResponse

class platypush.message.response.system.NetworkResponseList(responses: List[NetworkResponse], *args, **kwargs)[source]

Bases: NetworkResponse, SystemResponseList

__init__(responses: List[NetworkResponse], *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.ProcessResponse(pid: int, name: str, started: datetime, ppid: Optional[int], children: Optional[List[int]] = None, exe: Optional[List[str]] = None, status: Optional[str] = None, username: Optional[str] = None, terminal: Optional[str] = None, cpu_user_time: Optional[float] = None, cpu_system_time: Optional[float] = None, cpu_children_user_time: Optional[float] = None, cpu_children_system_time: Optional[float] = None, mem_rss: Optional[int] = None, mem_vms: Optional[int] = None, mem_shared: Optional[int] = None, mem_text: Optional[int] = None, mem_data: Optional[int] = None, mem_lib: Optional[int] = None, mem_dirty: Optional[int] = None, mem_percent: Optional[float] = None, *args, **kwargs)[source]

Bases: SystemResponse

__init__(pid: int, name: str, started: datetime, ppid: Optional[int], children: Optional[List[int]] = None, exe: Optional[List[str]] = None, status: Optional[str] = None, username: Optional[str] = None, terminal: Optional[str] = None, cpu_user_time: Optional[float] = None, cpu_system_time: Optional[float] = None, cpu_children_user_time: Optional[float] = None, cpu_children_system_time: Optional[float] = None, mem_rss: Optional[int] = None, mem_vms: Optional[int] = None, mem_shared: Optional[int] = None, mem_text: Optional[int] = None, mem_data: Optional[int] = None, mem_lib: Optional[int] = None, mem_dirty: Optional[int] = None, mem_percent: Optional[float] = None, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.ProcessResponseList(responses: List[ProcessResponse], *args, **kwargs)[source]

Bases: SystemResponseList

__init__(responses: List[ProcessResponse], *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.SensorBatteryResponse(percent: float, secs_left: int, power_plugged: bool, *args, **kwargs)[source]

Bases: SensorResponse

__init__(percent: float, secs_left: int, power_plugged: bool, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.SensorFanResponse(name: str, current: int, label: Optional[str] = None, *args, **kwargs)[source]

Bases: SensorResponse

__init__(name: str, current: int, label: Optional[str] = None, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.SensorResponse(target=None, origin=None, id=None, output=None, errors=None, timestamp=None, logging_level=20)[source]

Bases: SystemResponse

class platypush.message.response.system.SensorResponseList(responses: List[SensorResponse], *args, **kwargs)[source]

Bases: SensorResponse, SystemResponseList

__init__(responses: List[SensorResponse], *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.SensorTemperatureResponse(name: str, current: float, high: Optional[float] = None, critical: Optional[float] = None, label: Optional[str] = None, *args, **kwargs)[source]

Bases: SensorResponse

__init__(name: str, current: float, high: Optional[float] = None, critical: Optional[float] = None, label: Optional[str] = None, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.SwapMemoryUsageResponse(total: int, percent: float, used: int, free: int, sin: int, sout: int, *args, **kwargs)[source]

Bases: MemoryResponse

__init__(total: int, percent: float, used: int, free: int, sin: int, sout: int, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.SystemResponse(target=None, origin=None, id=None, output=None, errors=None, timestamp=None, logging_level=20)[source]

Bases: Response

class platypush.message.response.system.SystemResponseList(responses: List[SystemResponse], *args, **kwargs)[source]

Bases: SystemResponse

__init__(responses: List[SystemResponse], *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp

class platypush.message.response.system.VirtualMemoryUsageResponse(total: int, available: int, percent: float, used: int, free: int, active: int, inactive: int, buffers: int, cached: int, shared: int, *args, **kwargs)[source]

Bases: MemoryResponse

__init__(total: int, available: int, percent: float, used: int, free: int, active: int, inactive: int, buffers: int, cached: int, shared: int, *args, **kwargs)[source]
Parameters:
  • target (str) – Target

  • origin (str) – Origin

  • output – Output

  • errors – Errors

  • id (str) – Message ID this response refers to

  • timestamp (float) – Message timestamp