Show / Hide Table of Contents

    Class Device

    Describes the device that caused the event. This is most appropriate for mobile applications.

    Inheritance
    Object
    Device
    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 Device

    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 = "device"
    Field Value
    Type Description
    String

    Properties

    | Improve this Doc View Source

    Architecture

    The CPU architecture.

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

    BatteryLevel

    If the device has a battery an integer defining the battery level (in the range 0-100).

    Declaration
    [DataMember(Name = "battery_level", EmitDefaultValue = false)]
    public short? BatteryLevel { get; set; }
    Property Value
    Type Description
    Nullable<Int16>
    | Improve this Doc View Source

    BootTime

    A formatted UTC timestamp when the system was booted.

    Declaration
    [DataMember(Name = "boot_time", EmitDefaultValue = false)]
    public DateTimeOffset? BootTime { get; set; }
    Property Value
    Type Description
    Nullable<DateTimeOffset>
    Examples

    018-02-08T12:52:12Z

    | Improve this Doc View Source

    Brand

    The brand of the device

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

    ExternalFreeStorage

    Free size of an attached external storage in bytes (e.g.: android SDK card).

    Declaration
    [DataMember(Name = "external_free_storage", EmitDefaultValue = false)]
    public long? ExternalFreeStorage { get; set; }
    Property Value
    Type Description
    Nullable<Int64>
    | Improve this Doc View Source

    ExternalStorageSize

    Total size of an attached external storage in bytes (e.g.: android SDK card).

    Declaration
    [DataMember(Name = "external_storage_size", EmitDefaultValue = false)]
    public long? ExternalStorageSize { get; set; }
    Property Value
    Type Description
    Nullable<Int64>
    | Improve this Doc View Source

    Family

    The family of the device.

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

    This is normally the common part of model names across generations.

    Examples

    iPhone, Samsung Galaxy

    | Improve this Doc View Source

    FreeMemory

    Free system memory in bytes.

    Declaration
    [DataMember(Name = "free_memory", EmitDefaultValue = false)]
    public long? FreeMemory { get; set; }
    Property Value
    Type Description
    Nullable<Int64>
    | Improve this Doc View Source

    FreeStorage

    Free device storage in bytes.

    Declaration
    [DataMember(Name = "free_storage", EmitDefaultValue = false)]
    public long? FreeStorage { get; set; }
    Property Value
    Type Description
    Nullable<Int64>
    | Improve this Doc View Source

    IsCharging

    True if the device is charging.

    Declaration
    [DataMember(Name = "charging", EmitDefaultValue = false)]
    public bool? IsCharging { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    IsOnline

    True if the device has a internet connection

    Declaration
    [DataMember(Name = "online", EmitDefaultValue = false)]
    public bool? IsOnline { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    LowMemory

    True, if the device memory is low.

    Declaration
    [DataMember(Name = "low_memory")]
    public bool? LowMemory { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    Manufacturer

    The manufacturer of the device

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

    MemorySize

    Total system memory available in bytes.

    Declaration
    [DataMember(Name = "memory_size", EmitDefaultValue = false)]
    public long? MemorySize { get; set; }
    Property Value
    Type Description
    Nullable<Int64>
    | Improve this Doc View Source

    Model

    The model name.

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

    Samsung Galaxy S3

    | Improve this Doc View Source

    ModelId

    An internal hardware revision to identify the device exactly.

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

    Name

    The name of the device. This is typically a hostname.

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

    Orientation

    This can be a string portrait or landscape to define the orientation of a device.

    Declaration
    [DataMember(Name = "orientation", EmitDefaultValue = false)]
    public DeviceOrientation? Orientation { get; set; }
    Property Value
    Type Description
    Nullable<DeviceOrientation>
    | Improve this Doc View Source

    ScreenDensity

    The logical density of the display.

    Declaration
    [DataMember(Name = "screen_density", EmitDefaultValue = false)]
    public float? ScreenDensity { get; set; }
    Property Value
    Type Description
    Nullable<Single>
    | Improve this Doc View Source

    ScreenDpi

    The screen density as dots-per-inch.

    Declaration
    [DataMember(Name = "screen_dpi", EmitDefaultValue = false)]
    public int? ScreenDpi { get; set; }
    Property Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    ScreenResolution

    The resolution of the screen.

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

    800x600

    | Improve this Doc View Source

    Simulator

    A boolean defining whether this device is a simulator or an actual device.

    Declaration
    [DataMember(Name = "simulator", EmitDefaultValue = false)]
    public bool? Simulator { get; set; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    StorageSize

    Total device storage in bytes.

    Declaration
    [DataMember(Name = "storage_size", EmitDefaultValue = false)]
    public long? StorageSize { get; set; }
    Property Value
    Type Description
    Nullable<Int64>
    | Improve this Doc View Source

    Timezone

    The timezone of the device.

    Declaration
    public TimeZoneInfo Timezone { get; set; }
    Property Value
    Type Description
    TimeZoneInfo
    Examples

    Europe/Vienna

    | Improve this Doc View Source

    UsableMemory

    Memory usable for the app in bytes.

    Declaration
    [DataMember(Name = "usable_memory", EmitDefaultValue = false)]
    public long? UsableMemory { get; set; }
    Property Value
    Type Description
    Nullable<Int64>

    See Also

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