A Report object represents a single problem report in the uReport format.
satyr.Report - report containing all data relevant to a software problem
Usage:
satyr.Report() - creates an empty report object
satyr.Report(json_string) - creates a report from its JSON representation
Name of the software component this report pertains to (string)
Operating system (OperatingSystem object)
List of packages (currently a list of RpmPackage objects)
Report type (string)
Version of the report (int)
Name of the reporting software (string)
Version of the reporting software (string)
Problem stacktrace (SingleThreadStacktrace or MultiThreadStacktrace object)
Usage: report.to_json()
Returns: string - the report serialized as JSON
Did the problem originate in a program executed by local user? (bool)
Did the problem originate in a program running as root? (bool)
Data about operating system are stored in the OperatingSystem object.
satyr.OperatingSystem - describes an operating system
Usage:
satyr.OperatingSystem() - creates an empty operating system object
satyr.OperatingSystem(name, version, arch) - creates an operating system object with given properties (all arguments are strings or None)
Architecture (string)
Common platform enumeration identifier (string)
Operating system name (string)
Machine uptime (long)
Version (string)
The Report can contain a list of software packages. Currently, only RPM packages are supported.
satyr.RpmPackage - RPM package representation
Usage:
satyr.RpmPackage() - creates an empty RPM package object
satyr.RpmPackage(name, epoch, version, release, arch) - creates RPM package object with given properties
Architecture (string)
Epoch (int)
Time of installation (long)
Package name (string)
Release (string)
Role the package plays in the problem. Currently ROLE_UNKNOWN or ROLE_AFFECTED.
Version (string)