@@ 4108-4157 (lines=50) @@ | ||
4105 | cmd.set_attribute("setting_id", setting_id) |
|
4106 | return self._send_xml_command(cmd) |
|
4107 | ||
4108 | def get_system_reports( |
|
4109 | self, |
|
4110 | *, |
|
4111 | name: Optional[str] = None, |
|
4112 | duration: Optional[int] = None, |
|
4113 | start_time: Optional[str] = None, |
|
4114 | end_time: Optional[str] = None, |
|
4115 | brief: Optional[bool] = None, |
|
4116 | slave_id: Optional[str] = None, |
|
4117 | ) -> Any: |
|
4118 | """Request a list of system reports |
|
4119 | ||
4120 | Arguments: |
|
4121 | name: A string describing the required system report |
|
4122 | duration: The number of seconds into the past that the system report |
|
4123 | should include |
|
4124 | start_time: The start of the time interval the system report should |
|
4125 | include in ISO time format |
|
4126 | end_time: The end of the time interval the system report should |
|
4127 | include in ISO time format |
|
4128 | brief: Whether to include the actual system reports |
|
4129 | slave_id: UUID of GMP scanner from which to get the system reports |
|
4130 | ||
4131 | Returns: |
|
4132 | The response. See :py:meth:`send_command` for details. |
|
4133 | """ |
|
4134 | cmd = XmlCommand("get_system_reports") |
|
4135 | ||
4136 | if name: |
|
4137 | cmd.set_attribute("name", name) |
|
4138 | ||
4139 | if duration is not None: |
|
4140 | if not isinstance(duration, numbers.Integral): |
|
4141 | raise InvalidArgument("duration needs to be an integer number") |
|
4142 | ||
4143 | cmd.set_attribute("duration", str(duration)) |
|
4144 | ||
4145 | if start_time: |
|
4146 | cmd.set_attribute("start_time", str(start_time)) |
|
4147 | ||
4148 | if end_time: |
|
4149 | cmd.set_attribute("end_time", str(end_time)) |
|
4150 | ||
4151 | if brief is not None: |
|
4152 | cmd.set_attribute("brief", _to_bool(brief)) |
|
4153 | ||
4154 | if slave_id: |
|
4155 | cmd.set_attribute("slave_id", slave_id) |
|
4156 | ||
4157 | return self._send_xml_command(cmd) |
|
4158 | ||
4159 | def get_tags( |
|
4160 | self, |
@@ 5774-5823 (lines=50) @@ | ||
5771 | cmd.set_attribute("setting_id", setting_id) |
|
5772 | return self._send_xml_command(cmd) |
|
5773 | ||
5774 | def get_system_reports( |
|
5775 | self, |
|
5776 | *, |
|
5777 | name: Optional[str] = None, |
|
5778 | duration: Optional[int] = None, |
|
5779 | start_time: Optional[str] = None, |
|
5780 | end_time: Optional[str] = None, |
|
5781 | brief: Optional[bool] = None, |
|
5782 | slave_id: Optional[str] = None, |
|
5783 | ) -> Any: |
|
5784 | """Request a list of system reports |
|
5785 | ||
5786 | Arguments: |
|
5787 | name: A string describing the required system report |
|
5788 | duration: The number of seconds into the past that the system report |
|
5789 | should include |
|
5790 | start_time: The start of the time interval the system report should |
|
5791 | include in ISO time format |
|
5792 | end_time: The end of the time interval the system report should |
|
5793 | include in ISO time format |
|
5794 | brief: Whether to include the actual system reports |
|
5795 | slave_id: UUID of GMP scanner from which to get the system reports |
|
5796 | ||
5797 | Returns: |
|
5798 | The response. See :py:meth:`send_command` for details. |
|
5799 | """ |
|
5800 | cmd = XmlCommand("get_system_reports") |
|
5801 | ||
5802 | if name: |
|
5803 | cmd.set_attribute("name", name) |
|
5804 | ||
5805 | if duration is not None: |
|
5806 | if not isinstance(duration, numbers.Integral): |
|
5807 | raise InvalidArgument("duration needs to be an integer number") |
|
5808 | ||
5809 | cmd.set_attribute("duration", str(duration)) |
|
5810 | ||
5811 | if start_time: |
|
5812 | cmd.set_attribute("start_time", str(start_time)) |
|
5813 | ||
5814 | if end_time: |
|
5815 | cmd.set_attribute("end_time", str(end_time)) |
|
5816 | ||
5817 | if brief is not None: |
|
5818 | cmd.set_attribute("brief", _to_bool(brief)) |
|
5819 | ||
5820 | if slave_id: |
|
5821 | cmd.set_attribute("slave_id", slave_id) |
|
5822 | ||
5823 | return self._send_xml_command(cmd) |
|
5824 | ||
5825 | def get_tags( |
|
5826 | self, |