Class OperatingSystem
Represents Sentry's context for OS
Inherited Members
Namespace: Sentry.Protocol
Assembly: Sentry.Protocol.dll
Syntax
[DataContract]
public class OperatingSystem
Remarks
Defines the operating system that caused the event. In web contexts, this is the operating system of the browser (normally pulled from the User-Agent string).
Fields
| Improve this Doc View SourceType
Tells Sentry which type of context this is.
Declaration
[DataMember(Name = "type", EmitDefaultValue = false)]
public const string Type = "os"
Field Value
Type | Description |
---|---|
String |
Properties
| Improve this Doc View SourceBuild
The internal build revision of the operating system.
Declaration
[DataMember(Name = "build", EmitDefaultValue = false)]
public string Build { get; set; }
Property Value
Type | Description |
---|---|
String |
KernelVersion
If known, this can be an independent kernel version string. Typically this is something like the entire output of the 'uname' tool.
Declaration
[DataMember(Name = "kernel_version", EmitDefaultValue = false)]
public string KernelVersion { get; set; }
Property Value
Type | Description |
---|---|
String |
Name
The name of the operating system.
Declaration
[DataMember(Name = "name", EmitDefaultValue = false)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
RawDescription
An optional raw description that Sentry can use in an attempt to normalize OS info.
Declaration
[DataMember(Name = "raw_description", EmitDefaultValue = false)]
public string RawDescription { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
When the system doesn't expose a clear API for Name and Version this field can be used to provide a raw system info (e.g: uname)
Rooted
An optional boolean that defines if the OS has been jailbroken or rooted.
Declaration
[DataMember(Name = "rooted", EmitDefaultValue = false)]
public bool? Rooted { get; set; }
Property Value
| Improve this Doc View SourceVersion
The version of the operating system.
Declaration
[DataMember(Name = "version", EmitDefaultValue = false)]
public string Version { get; set; }
Property Value
Type | Description |
---|---|
String |