Class Device
Describes the device that caused the event. This is most appropriate for mobile applications.
Inherited Members
Namespace: Sentry.Protocol
Assembly: Sentry.Protocol.dll
Syntax
[DataContract]
public class Device
Fields
| Improve this Doc View SourceType
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 SourceArchitecture
The CPU architecture.
Declaration
[DataMember(Name = "arch", EmitDefaultValue = false)]
public string Architecture { get; set; }
Property Value
Type | Description |
---|---|
String |
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
| Improve this Doc View SourceBootTime
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<Date |
Examples
018-02-08T12:52:12Z
| Improve this Doc View SourceBrand
The brand of the device
Declaration
[DataMember(Name = "brand", EmitDefaultValue = false)]
public string Brand { get; set; }
Property Value
Type | Description |
---|---|
String |
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
| Improve this Doc View SourceExternalStorageSize
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
| Improve this Doc View SourceFamily
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 SourceFreeMemory
Free system memory in bytes.
Declaration
[DataMember(Name = "free_memory", EmitDefaultValue = false)]
public long? FreeMemory { get; set; }
Property Value
| Improve this Doc View SourceFreeStorage
Free device storage in bytes.
Declaration
[DataMember(Name = "free_storage", EmitDefaultValue = false)]
public long? FreeStorage { get; set; }
Property Value
| Improve this Doc View SourceIsCharging
True if the device is charging.
Declaration
[DataMember(Name = "charging", EmitDefaultValue = false)]
public bool? IsCharging { get; set; }
Property Value
| Improve this Doc View SourceIsOnline
True if the device has a internet connection
Declaration
[DataMember(Name = "online", EmitDefaultValue = false)]
public bool? IsOnline { get; set; }
Property Value
| Improve this Doc View SourceLowMemory
True, if the device memory is low.
Declaration
[DataMember(Name = "low_memory")]
public bool? LowMemory { get; set; }
Property Value
| Improve this Doc View SourceManufacturer
The manufacturer of the device
Declaration
[DataMember(Name = "manufacturer", EmitDefaultValue = false)]
public string Manufacturer { get; set; }
Property Value
Type | Description |
---|---|
String |
MemorySize
Total system memory available in bytes.
Declaration
[DataMember(Name = "memory_size", EmitDefaultValue = false)]
public long? MemorySize { get; set; }
Property Value
| Improve this Doc View SourceModel
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 SourceModelId
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 |
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 |
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<Device |
ScreenDensity
The logical density of the display.
Declaration
[DataMember(Name = "screen_density", EmitDefaultValue = false)]
public float? ScreenDensity { get; set; }
Property Value
| Improve this Doc View SourceScreenDpi
The screen density as dots-per-inch.
Declaration
[DataMember(Name = "screen_dpi", EmitDefaultValue = false)]
public int? ScreenDpi { get; set; }
Property Value
| Improve this Doc View SourceScreenResolution
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 SourceSimulator
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
| Improve this Doc View SourceStorageSize
Total device storage in bytes.
Declaration
[DataMember(Name = "storage_size", EmitDefaultValue = false)]
public long? StorageSize { get; set; }
Property Value
| Improve this Doc View SourceTimezone
The timezone of the device.
Declaration
public TimeZoneInfo Timezone { get; set; }
Property Value
Type | Description |
---|---|
Time |
Examples
Europe/Vienna
| Improve this Doc View SourceUsableMemory
Memory usable for the app in bytes.
Declaration
[DataMember(Name = "usable_memory", EmitDefaultValue = false)]
public long? UsableMemory { get; set; }