Show / Hide Table of Contents

    Class OperatingSystem

    Represents Sentry's context for OS

    Inheritance
    Object
    OperatingSystem
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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 Source

    Type

    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 Source

    Build

    The internal build revision of the operating system.

    Declaration
    [DataMember(Name = "build", EmitDefaultValue = false)]
    public string Build { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Name

    The name of the operating system.

    Declaration
    [DataMember(Name = "name", EmitDefaultValue = false)]
    public string Name { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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)

    | Improve this Doc View Source

    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
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    Version

    The version of the operating system.

    Declaration
    [DataMember(Name = "version", EmitDefaultValue = false)]
    public string Version { get; set; }
    Property Value
    Type Description
    String

    See Also

    https://docs.sentry.io/clientdev/interfaces/contexts/#context-types
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX