appcenter-cli
Version:
Command line tool for Visual Studio App Center
192 lines (187 loc) • 5.39 kB
JavaScript
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
;
/**
* Class representing a Crash.
*/
class Crash {
/**
* Create a Crash.
* @property {object} [details]
* @property {string} [details.carrierCountry] Carrier country code (for
* mobile devices).
* @property {string} [details.carrierName] Carrier name (for mobile
* devices).
* @property {string} [details.locale] Language code (example: en_US).
* @property {string} [details.osBuild] OS build code (example: LMY47X).
* @property {boolean} [details.rooted] Whether the device where the crash
* occurred is rooted or jailbroken
* @property {string} [details.screenSize] Screen size of the device in
* pixels (example: 640x480).
* @property {date} [details.appStartTimestamp] Application launch timestamp
* (example: 1985-04-12T23:20:50.52Z).
* @property {string} newCrashGroupId
* @property {string} crashId
* @property {string} newCrashId
* @property {string} [displayId]
* @property {date} timestamp
* @property {string} version
* @property {string} build
* @property {string} device
* @property {string} [deviceName]
* @property {string} osVersion
* @property {string} [osType]
* @property {object} [stacktrace]
* @property {string} [stacktrace.title]
* @property {string} [stacktrace.reason]
* @property {array} [stacktrace.threads]
* @property {object} [stacktrace.exception]
* @property {string} [stacktrace.exception.reason] Reason of the exception
* @property {string} [stacktrace.exception.type] Type of the exception
* (NSSomethingException, NullPointerException)
* @property {array} [stacktrace.exception.frames] frames of the excetpion
* @property {boolean} [stacktrace.exception.relevant] relevant exception
* (crashed)
* @property {array} [stacktrace.exception.innerExceptions]
* @property {string} [stacktrace.exception.platform] SDK/Platform this
* thread is beeing generated from. Possible values include: 'ios',
* 'android', 'xamarin', 'react-native', 'ndk', 'unity', 'other'
* @property {string} userName
* @property {string} [userEmail]
*/
constructor() {
}
/**
* Defines the metadata of Crash
*
* @returns {object} metadata of Crash
*
*/
mapper() {
return {
required: false,
serializedName: 'Crash',
type: {
name: 'Composite',
className: 'Crash',
modelProperties: {
details: {
required: false,
serializedName: 'details',
type: {
name: 'Composite',
className: 'CrashDetails'
}
},
newCrashGroupId: {
required: true,
serializedName: 'new_crash_group_id',
type: {
name: 'String'
}
},
crashId: {
required: true,
serializedName: 'crash_id',
type: {
name: 'String'
}
},
newCrashId: {
required: true,
serializedName: 'new_crash_id',
type: {
name: 'String'
}
},
displayId: {
required: false,
serializedName: 'display_id',
type: {
name: 'String'
}
},
timestamp: {
required: true,
serializedName: 'timestamp',
type: {
name: 'DateTime'
}
},
version: {
required: true,
serializedName: 'version',
type: {
name: 'String'
}
},
build: {
required: true,
serializedName: 'build',
type: {
name: 'String'
}
},
device: {
required: true,
serializedName: 'device',
type: {
name: 'String'
}
},
deviceName: {
required: false,
serializedName: 'device_name',
type: {
name: 'String'
}
},
osVersion: {
required: true,
serializedName: 'os_version',
type: {
name: 'String'
}
},
osType: {
required: false,
serializedName: 'os_type',
type: {
name: 'String'
}
},
stacktrace: {
required: false,
serializedName: 'stacktrace',
type: {
name: 'Composite',
className: 'Stacktrace'
}
},
userName: {
required: true,
serializedName: 'user_name',
type: {
name: 'String'
}
},
userEmail: {
required: false,
serializedName: 'user_email',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = Crash;