|  | 
| 53 | 53 |  * @alias module:trakerr/model/AppEvent | 
| 54 | 54 |  * @class | 
| 55 | 55 |  * @param apiKey {String} API key generated for the application | 
| 56 |  | - * @param classification {String} (optional) one of 'error' or a custom string for non-errors, defaults to 'error' | 
|  | 56 | + * @param classification {String} (optional) one of 'issue' or a custom string for non-issues, defaults to 'issue' | 
| 57 | 57 |  * @param eventType {String} type of the event or error (eg. NullPointerException) | 
| 58 | 58 |  * @param eventMessage {String} message containing details of the event or error | 
| 59 | 59 |  */ | 
| 60 | 60 |  var exports = function(apiKey, logLevel, classification, eventType, eventMessage) { | 
| 61 | 61 |  var _this = this; | 
| 62 | 62 | 
 | 
| 63 | 63 |  _this['apiKey'] = apiKey; | 
| 64 |  | - _this['logLevel'] = logLevel | 
|  | 64 | + _this['logLevel'] = logLevel; | 
| 65 | 65 |  _this['classification'] = classification; | 
| 66 | 66 |  _this['eventType'] = eventType; | 
| 67 | 67 |  _this['eventMessage'] = eventMessage; | 
| 68 | 68 | 
 | 
| 69 |  | - | 
| 70 |  | - | 
| 71 |  | - | 
| 72 |  | - | 
| 73 |  | - | 
| 74 |  | - | 
| 75 |  | - | 
| 76 |  | - | 
| 77 |  | - | 
| 78 |  | - | 
| 79 |  | - | 
| 80 |  | - | 
| 81 |  | - | 
| 82 |  | - | 
| 83 |  | - | 
| 84 |  | - | 
| 85 |  | - | 
| 86 | 69 |  }; | 
| 87 | 70 | 
 | 
| 88 | 71 |  /** | 
|  | 
| 159 | 142 |  if (data.hasOwnProperty('contextDataCenterRegion')) { | 
| 160 | 143 |  obj['contextDataCenterRegion'] = ApiClient.convertToType(data['contextDataCenterRegion'], 'String'); | 
| 161 | 144 |  } | 
|  | 145 | + if (data.hasOwnProperty('contextTags')) { | 
|  | 146 | + obj['contextTags'] = ApiClient.convertToType(data['contextTags'], ['String']); | 
|  | 147 | + } | 
|  | 148 | + if (data.hasOwnProperty('contextURL')) { | 
|  | 149 | + obj['contextURL'] = ApiClient.convertToType(data['contextURL'], 'String'); | 
|  | 150 | + } | 
|  | 151 | + if (data.hasOwnProperty('contextOperationTimeMillis')) { | 
|  | 152 | + obj['contextOperationTimeMillis'] = ApiClient.convertToType(data['contextOperationTimeMillis'], 'Integer'); | 
|  | 153 | + } | 
|  | 154 | + if (data.hasOwnProperty('contextCpuPercentage')) { | 
|  | 155 | + obj['contextCpuPercentage'] = ApiClient.convertToType(data['contextCpuPercentage'], 'Integer'); | 
|  | 156 | + } | 
|  | 157 | + if (data.hasOwnProperty('contextMemoryPercentage')) { | 
|  | 158 | + obj['contextMemoryPercentage'] = ApiClient.convertToType(data['contextMemoryPercentage'], 'Integer'); | 
|  | 159 | + } | 
|  | 160 | + if (data.hasOwnProperty('contextCrossAppCorrelationId')) { | 
|  | 161 | + obj['contextCrossAppCorrelationId'] = ApiClient.convertToType(data['contextCrossAppCorrelationId'], 'String'); | 
|  | 162 | + } | 
|  | 163 | + if (data.hasOwnProperty('contextDevice')) { | 
|  | 164 | + obj['contextDevice'] = ApiClient.convertToType(data['contextDevice'], 'String'); | 
|  | 165 | + } | 
|  | 166 | + if (data.hasOwnProperty('contextAppSku')) { | 
|  | 167 | + obj['contextAppSku'] = ApiClient.convertToType(data['contextAppSku'], 'String'); | 
|  | 168 | + } | 
| 162 | 169 |  if (data.hasOwnProperty('customProperties')) { | 
| 163 | 170 |  obj['customProperties'] = CustomData.constructFromObject(data['customProperties']); | 
| 164 | 171 |  } | 
|  | 
| 180 | 187 |  */ | 
| 181 | 188 |  exports.prototype['logLevel'] = undefined; | 
| 182 | 189 |  /** | 
| 183 |  | - * (optional) one of 'error' or a custom string for non-errors, defaults to 'error' | 
|  | 190 | + * (optional) one of 'issue' or a custom string for non-issues, defaults to 'issue' | 
| 184 | 191 |  * @member {String} classification | 
| 185 | 192 |  */ | 
| 186 | 193 |  exports.prototype['classification'] = undefined; | 
|  | 
| 273 | 280 |  * @member {String} contextDataCenterRegion | 
| 274 | 281 |  */ | 
| 275 | 282 |  exports.prototype['contextDataCenterRegion'] = undefined; | 
|  | 283 | + /** | 
|  | 284 | + * @member {Array.<String>} contextTags | 
|  | 285 | + */ | 
|  | 286 | + exports.prototype['contextTags'] = undefined; | 
|  | 287 | + /** | 
|  | 288 | + * (optional) The full URL when running in a browser when the event was generated. | 
|  | 289 | + * @member {String} contextURL | 
|  | 290 | + */ | 
|  | 291 | + exports.prototype['contextURL'] = undefined; | 
|  | 292 | + /** | 
|  | 293 | + * (optional) duration that this event took to occur in millis. Example - database call time in millis. | 
|  | 294 | + * @member {Integer} contextOperationTimeMillis | 
|  | 295 | + */ | 
|  | 296 | + exports.prototype['contextOperationTimeMillis'] = undefined; | 
|  | 297 | + /** | 
|  | 298 | + * (optional) CPU utilization as a percent when event occured | 
|  | 299 | + * @member {Integer} contextCpuPercentage | 
|  | 300 | + */ | 
|  | 301 | + exports.prototype['contextCpuPercentage'] = undefined; | 
|  | 302 | + /** | 
|  | 303 | + * (optional) Memory utilization as a percent when event occured | 
|  | 304 | + * @member {Integer} contextMemoryPercentage | 
|  | 305 | + */ | 
|  | 306 | + exports.prototype['contextMemoryPercentage'] = undefined; | 
|  | 307 | + /** | 
|  | 308 | + * (optional) Cross application correlation ID | 
|  | 309 | + * @member {String} contextCrossAppCorrelationId | 
|  | 310 | + */ | 
|  | 311 | + exports.prototype['contextCrossAppCorrelationId'] = undefined; | 
|  | 312 | + /** | 
|  | 313 | + * (optional) Device information | 
|  | 314 | + * @member {String} contextDevice | 
|  | 315 | + */ | 
|  | 316 | + exports.prototype['contextDevice'] = undefined; | 
|  | 317 | + /** | 
|  | 318 | + * (optional) Application SKU | 
|  | 319 | + * @member {String} contextAppSku | 
|  | 320 | + */ | 
|  | 321 | + exports.prototype['contextAppSku'] = undefined; | 
| 276 | 322 |  /** | 
| 277 | 323 |  * @member {module:trakerr/model/CustomData} customProperties | 
| 278 | 324 |  */ | 
|  | 
0 commit comments