Skip to content

Commit eb1550a

Browse files
authored
Commit for api v1.3 (#13)
* Commit for api v1.3 * Update AppEvent.js * Update AppEvent.js
1 parent f371e7b commit eb1550a

File tree

3 files changed

+76
-22
lines changed

3 files changed

+76
-22
lines changed

generated/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This SDK is automatically generated by the [Swagger Codegen](https://github.com/
66

77
- API version: 1.0.0
88
- Package version: 1.0.0
9-
- Build date: 2017-03-13T16:35:17.206-07:00
9+
- Build date: 2017-05-05T15:16:43.345-07:00
1010
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
1111

1212
## Installation

generated/docs/AppEvent.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**apiKey** | **String** | API key generated for the application |
77
**logLevel** | **String** | (optional) Logging level, one of 'debug','info','warning','error', 'fatal', defaults to 'error' | [optional]
8-
**classification** | **String** | (optional) one of 'error' or a custom string for non-errors, defaults to 'error' |
8+
**classification** | **String** | (optional) one of 'issue' or a custom string for non-issues, defaults to 'issue' |
99
**eventType** | **String** | type of the event or error (eg. NullPointerException) |
1010
**eventMessage** | **String** | message containing details of the event or error |
1111
**eventTime** | **Integer** | (optional) event time in ms since epoch | [optional]
@@ -24,6 +24,14 @@ Name | Type | Description | Notes
2424
**contextAppOSVersion** | **String** | (optional) OS version the application is running on | [optional]
2525
**contextDataCenter** | **String** | (optional) Data center the application is running on or connected to | [optional]
2626
**contextDataCenterRegion** | **String** | (optional) Data center region | [optional]
27+
**contextTags** | **[String]** | | [optional]
28+
**contextURL** | **String** | (optional) The full URL when running in a browser when the event was generated. | [optional]
29+
**contextOperationTimeMillis** | **Integer** | (optional) duration that this event took to occur in millis. Example - database call time in millis. | [optional]
30+
**contextCpuPercentage** | **Integer** | (optional) CPU utilization as a percent when event occured | [optional]
31+
**contextMemoryPercentage** | **Integer** | (optional) Memory utilization as a percent when event occured | [optional]
32+
**contextCrossAppCorrelationId** | **String** | (optional) Cross application correlation ID | [optional]
33+
**contextDevice** | **String** | (optional) Device information | [optional]
34+
**contextAppSku** | **String** | (optional) Application SKU | [optional]
2735
**customProperties** | [**CustomData**](CustomData.md) | | [optional]
2836
**customSegments** | [**CustomData**](CustomData.md) | | [optional]
2937

generated/src/trakerr/model/AppEvent.js

Lines changed: 66 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,36 +53,19 @@
5353
* @alias module:trakerr/model/AppEvent
5454
* @class
5555
* @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'
5757
* @param eventType {String} type of the event or error (eg. NullPointerException)
5858
* @param eventMessage {String} message containing details of the event or error
5959
*/
6060
var exports = function(apiKey, logLevel, classification, eventType, eventMessage) {
6161
var _this = this;
6262

6363
_this['apiKey'] = apiKey;
64-
_this['logLevel'] = logLevel
64+
_this['logLevel'] = logLevel;
6565
_this['classification'] = classification;
6666
_this['eventType'] = eventType;
6767
_this['eventMessage'] = eventMessage;
6868

69-
70-
71-
72-
73-
74-
75-
76-
77-
78-
79-
80-
81-
82-
83-
84-
85-
8669
};
8770

8871
/**
@@ -159,6 +142,30 @@
159142
if (data.hasOwnProperty('contextDataCenterRegion')) {
160143
obj['contextDataCenterRegion'] = ApiClient.convertToType(data['contextDataCenterRegion'], 'String');
161144
}
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+
}
162169
if (data.hasOwnProperty('customProperties')) {
163170
obj['customProperties'] = CustomData.constructFromObject(data['customProperties']);
164171
}
@@ -180,7 +187,7 @@
180187
*/
181188
exports.prototype['logLevel'] = undefined;
182189
/**
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'
184191
* @member {String} classification
185192
*/
186193
exports.prototype['classification'] = undefined;
@@ -273,6 +280,45 @@
273280
* @member {String} contextDataCenterRegion
274281
*/
275282
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;
276322
/**
277323
* @member {module:trakerr/model/CustomData} customProperties
278324
*/

0 commit comments

Comments
 (0)