Report

A Report object represents a single problem report in the uReport format.

class satyr.Report

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

component_name

Name of the software component this report pertains to (string)

operating_system

Operating system (OperatingSystem object)

packages

List of packages (currently a list of RpmPackage objects)

report_type

Report type (string)

report_version

Version of the report (int)

reporter_name

Name of the reporting software (string)

reporter_version

Version of the reporting software (string)

stacktrace

Problem stacktrace (SingleThreadStacktrace or MultiThreadStacktrace object)

to_json()

Usage: report.to_json()

Returns: string - the report serialized as JSON

user_local

Did the problem originate in a program executed by local user? (bool)

user_root

Did the problem originate in a program running as root? (bool)

Operating system

Data about operating system are stored in the OperatingSystem object.

class satyr.OperatingSystem

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

Architecture (string)

cpe

Common platform enumeration identifier (string)

name

Operating system name (string)

uptime

Machine uptime (long)

version

Version (string)

Package

The Report can contain a list of software packages. Currently, only RPM packages are supported.

class satyr.RpmPackage

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

Architecture (string)

epoch

Epoch (int)

install_time

Time of installation (long)

name

Package name (string)

release

Release (string)

role

Role the package plays in the problem. Currently ROLE_UNKNOWN or ROLE_AFFECTED.

version

Version (string)

Table Of Contents

Previous topic

Welcome to satyr-python documentation!

Next topic

Stacktrace

This Page