| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis_beta.clouderrorreporting.v1beta1; | 3 library googleapis_beta.clouderrorreporting.v1beta1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 * Request parameters: | 103 * Request parameters: |
| 104 * | 104 * |
| 105 * [projectName] - [Required] The resource name of the Google Cloud Platform | 105 * [projectName] - [Required] The resource name of the Google Cloud Platform |
| 106 * project. Written | 106 * project. Written |
| 107 * as `projects/` plus the | 107 * as `projects/` plus the |
| 108 * [Google Cloud Platform project | 108 * [Google Cloud Platform project |
| 109 * ID](https://support.google.com/cloud/answer/6158840). | 109 * ID](https://support.google.com/cloud/answer/6158840). |
| 110 * Example: `projects/my-project-123`. | 110 * Example: `projects/my-project-123`. |
| 111 * Value must have pattern "^projects/[^/]+$". | 111 * Value must have pattern "^projects/[^/]+$". |
| 112 * | 112 * |
| 113 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
| 114 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
| 115 * |
| 113 * [timeRange_period] - Restricts the query to the specified time range. | 116 * [timeRange_period] - Restricts the query to the specified time range. |
| 114 * Possible string values are: | 117 * Possible string values are: |
| 115 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 118 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
| 116 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 119 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
| 117 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 120 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
| 118 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 121 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
| 119 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 122 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
| 120 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 123 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
| 121 * | 124 * |
| 122 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 125 * [groupId] - [Required] The group for which events shall be returned. |
| 123 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 126 * |
| 127 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 128 * response. |
| 124 * | 129 * |
| 125 * [serviceFilter_service] - [Optional] The exact value to match against | 130 * [serviceFilter_service] - [Optional] The exact value to match against |
| 126 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | 131 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). |
| 127 * | 132 * |
| 128 * [groupId] - [Required] The group for which events shall be returned. | 133 * [pageSize] - [Optional] The maximum number of results to return per |
| 134 * response. |
| 129 * | 135 * |
| 130 * [serviceFilter_version] - [Optional] The exact value to match against | 136 * [serviceFilter_version] - [Optional] The exact value to match against |
| 131 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 137 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
| 132 * | 138 * |
| 133 * [pageSize] - [Optional] The maximum number of results to return per | |
| 134 * response. | |
| 135 * | |
| 136 * [pageToken] - [Optional] A `next_page_token` provided by a previous | |
| 137 * response. | |
| 138 * | |
| 139 * Completes with a [ListEventsResponse]. | 139 * Completes with a [ListEventsResponse]. |
| 140 * | 140 * |
| 141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 141 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 142 * error. | 142 * error. |
| 143 * | 143 * |
| 144 * If the used [http.Client] completes with an error when making a REST call, | 144 * If the used [http.Client] completes with an error when making a REST call, |
| 145 * this method will complete with the same error. | 145 * this method will complete with the same error. |
| 146 */ | 146 */ |
| 147 async.Future<ListEventsResponse> list(core.String projectName, {core.String ti
meRange_period, core.String serviceFilter_resourceType, core.String serviceFilte
r_service, core.String groupId, core.String serviceFilter_version, core.int page
Size, core.String pageToken}) { | 147 async.Future<ListEventsResponse> list(core.String projectName, {core.String se
rviceFilter_resourceType, core.String timeRange_period, core.String groupId, cor
e.String pageToken, core.String serviceFilter_service, core.int pageSize, core.S
tring serviceFilter_version}) { |
| 148 var _url = null; | 148 var _url = null; |
| 149 var _queryParams = new core.Map(); | 149 var _queryParams = new core.Map(); |
| 150 var _uploadMedia = null; | 150 var _uploadMedia = null; |
| 151 var _uploadOptions = null; | 151 var _uploadOptions = null; |
| 152 var _downloadOptions = commons.DownloadOptions.Metadata; | 152 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 153 var _body = null; | 153 var _body = null; |
| 154 | 154 |
| 155 if (projectName == null) { | 155 if (projectName == null) { |
| 156 throw new core.ArgumentError("Parameter projectName is required."); | 156 throw new core.ArgumentError("Parameter projectName is required."); |
| 157 } | 157 } |
| 158 if (serviceFilter_resourceType != null) { |
| 159 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 160 } |
| 158 if (timeRange_period != null) { | 161 if (timeRange_period != null) { |
| 159 _queryParams["timeRange.period"] = [timeRange_period]; | 162 _queryParams["timeRange.period"] = [timeRange_period]; |
| 160 } | 163 } |
| 161 if (serviceFilter_resourceType != null) { | 164 if (groupId != null) { |
| 162 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | 165 _queryParams["groupId"] = [groupId]; |
| 166 } |
| 167 if (pageToken != null) { |
| 168 _queryParams["pageToken"] = [pageToken]; |
| 163 } | 169 } |
| 164 if (serviceFilter_service != null) { | 170 if (serviceFilter_service != null) { |
| 165 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 171 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 166 } | 172 } |
| 167 if (groupId != null) { | 173 if (pageSize != null) { |
| 168 _queryParams["groupId"] = [groupId]; | 174 _queryParams["pageSize"] = ["${pageSize}"]; |
| 169 } | 175 } |
| 170 if (serviceFilter_version != null) { | 176 if (serviceFilter_version != null) { |
| 171 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 177 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 172 } | 178 } |
| 173 if (pageSize != null) { | |
| 174 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 175 } | |
| 176 if (pageToken != null) { | |
| 177 _queryParams["pageToken"] = [pageToken]; | |
| 178 } | |
| 179 | 179 |
| 180 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/events'; | 180 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/events'; |
| 181 | 181 |
| 182 var _response = _requester.request(_url, | 182 var _response = _requester.request(_url, |
| 183 "GET", | 183 "GET", |
| 184 body: _body, | 184 body: _body, |
| 185 queryParams: _queryParams, | 185 queryParams: _queryParams, |
| 186 uploadOptions: _uploadOptions, | 186 uploadOptions: _uploadOptions, |
| 187 uploadMedia: _uploadMedia, | 187 uploadMedia: _uploadMedia, |
| 188 downloadOptions: _downloadOptions); | 188 downloadOptions: _downloadOptions); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 * | 263 * |
| 264 * [projectName] - [Required] The resource name of the Google Cloud Platform | 264 * [projectName] - [Required] The resource name of the Google Cloud Platform |
| 265 * project. Written | 265 * project. Written |
| 266 * as <code>projects/</code> plus the | 266 * as <code>projects/</code> plus the |
| 267 * <a href="https://support.google.com/cloud/answer/6158840">Google Cloud | 267 * <a href="https://support.google.com/cloud/answer/6158840">Google Cloud |
| 268 * Platform project ID</a>. | 268 * Platform project ID</a>. |
| 269 * | 269 * |
| 270 * Example: <code>projects/my-project-123</code>. | 270 * Example: <code>projects/my-project-123</code>. |
| 271 * Value must have pattern "^projects/[^/]+$". | 271 * Value must have pattern "^projects/[^/]+$". |
| 272 * | 272 * |
| 273 * [alignment] - [Optional] The alignment of the timed counts to be returned. | 273 * [pageToken] - [Optional] A `next_page_token` provided by a previous |
| 274 * Default is `ALIGNMENT_EQUAL_AT_END`. | 274 * response. To view |
| 275 * Possible string values are: | 275 * additional results, pass this token along with the identical query |
| 276 * - "ERROR_COUNT_ALIGNMENT_UNSPECIFIED" : A | 276 * parameters as the first request. |
| 277 * ERROR_COUNT_ALIGNMENT_UNSPECIFIED. | |
| 278 * - "ALIGNMENT_EQUAL_ROUNDED" : A ALIGNMENT_EQUAL_ROUNDED. | |
| 279 * - "ALIGNMENT_EQUAL_AT_END" : A ALIGNMENT_EQUAL_AT_END. | |
| 280 * | 277 * |
| 281 * [timeRange_period] - Restricts the query to the specified time range. | 278 * [timeRange_period] - Restricts the query to the specified time range. |
| 282 * Possible string values are: | 279 * Possible string values are: |
| 283 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. | 280 * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. |
| 284 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. | 281 * - "PERIOD_1_HOUR" : A PERIOD_1_HOUR. |
| 285 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. | 282 * - "PERIOD_6_HOURS" : A PERIOD_6_HOURS. |
| 286 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. | 283 * - "PERIOD_1_DAY" : A PERIOD_1_DAY. |
| 287 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. | 284 * - "PERIOD_1_WEEK" : A PERIOD_1_WEEK. |
| 288 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. | 285 * - "PERIOD_30_DAYS" : A PERIOD_30_DAYS. |
| 289 * | 286 * |
| 290 * [serviceFilter_resourceType] - [Optional] The exact value to match against | 287 * [alignment] - [Optional] The alignment of the timed counts to be returned. |
| 291 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). | 288 * Default is `ALIGNMENT_EQUAL_AT_END`. |
| 289 * Possible string values are: |
| 290 * - "ERROR_COUNT_ALIGNMENT_UNSPECIFIED" : A |
| 291 * ERROR_COUNT_ALIGNMENT_UNSPECIFIED. |
| 292 * - "ALIGNMENT_EQUAL_ROUNDED" : A ALIGNMENT_EQUAL_ROUNDED. |
| 293 * - "ALIGNMENT_EQUAL_AT_END" : A ALIGNMENT_EQUAL_AT_END. |
| 294 * |
| 295 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these |
| 296 * IDs. |
| 297 * |
| 298 * [serviceFilter_service] - [Optional] The exact value to match against |
| 299 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). |
| 300 * |
| 301 * [pageSize] - [Optional] The maximum number of results to return per |
| 302 * response. |
| 303 * Default is 20. |
| 292 * | 304 * |
| 293 * [order] - [Optional] The sort order in which the results are returned. | 305 * [order] - [Optional] The sort order in which the results are returned. |
| 294 * Default is `COUNT_DESC`. | 306 * Default is `COUNT_DESC`. |
| 295 * Possible string values are: | 307 * Possible string values are: |
| 296 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. | 308 * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. |
| 297 * - "COUNT_DESC" : A COUNT_DESC. | 309 * - "COUNT_DESC" : A COUNT_DESC. |
| 298 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. | 310 * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. |
| 299 * - "CREATED_DESC" : A CREATED_DESC. | 311 * - "CREATED_DESC" : A CREATED_DESC. |
| 300 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. | 312 * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. |
| 301 * | 313 * |
| 302 * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these | 314 * [serviceFilter_version] - [Optional] The exact value to match against |
| 303 * IDs. | 315 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). |
| 304 * | |
| 305 * [serviceFilter_service] - [Optional] The exact value to match against | |
| 306 * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.service). | |
| 307 * | 316 * |
| 308 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned | 317 * [alignmentTime] - [Optional] Time where the timed counts shall be aligned |
| 309 * if rounded | 318 * if rounded |
| 310 * alignment is chosen. Default is 00:00 UTC. | 319 * alignment is chosen. Default is 00:00 UTC. |
| 311 * | 320 * |
| 312 * [serviceFilter_version] - [Optional] The exact value to match against | 321 * [serviceFilter_resourceType] - [Optional] The exact value to match against |
| 313 * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceC
ontext#FIELDS.version). | 322 * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/Se
rviceContext#FIELDS.resource_type). |
| 314 * | |
| 315 * [pageSize] - [Optional] The maximum number of results to return per | |
| 316 * response. | |
| 317 * Default is 20. | |
| 318 * | 323 * |
| 319 * [timedCountDuration] - [Optional] The preferred duration for a single | 324 * [timedCountDuration] - [Optional] The preferred duration for a single |
| 320 * returned `TimedCount`. | 325 * returned `TimedCount`. |
| 321 * If not set, no timed counts are returned. | 326 * If not set, no timed counts are returned. |
| 322 * | 327 * |
| 323 * [pageToken] - [Optional] A `next_page_token` provided by a previous | |
| 324 * response. To view | |
| 325 * additional results, pass this token along with the identical query | |
| 326 * parameters as the first request. | |
| 327 * | |
| 328 * Completes with a [ListGroupStatsResponse]. | 328 * Completes with a [ListGroupStatsResponse]. |
| 329 * | 329 * |
| 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 331 * error. | 331 * error. |
| 332 * | 332 * |
| 333 * If the used [http.Client] completes with an error when making a REST call, | 333 * If the used [http.Client] completes with an error when making a REST call, |
| 334 * this method will complete with the same error. | 334 * this method will complete with the same error. |
| 335 */ | 335 */ |
| 336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin
g alignment, core.String timeRange_period, core.String serviceFilter_resourceTyp
e, core.String order, core.List<core.String> groupId, core.String serviceFilter_
service, core.String alignmentTime, core.String serviceFilter_version, core.int
pageSize, core.String timedCountDuration, core.String pageToken}) { | 336 async.Future<ListGroupStatsResponse> list(core.String projectName, {core.Strin
g pageToken, core.String timeRange_period, core.String alignment, core.List<core
.String> groupId, core.String serviceFilter_service, core.int pageSize, core.Str
ing order, core.String serviceFilter_version, core.String alignmentTime, core.St
ring serviceFilter_resourceType, core.String timedCountDuration}) { |
| 337 var _url = null; | 337 var _url = null; |
| 338 var _queryParams = new core.Map(); | 338 var _queryParams = new core.Map(); |
| 339 var _uploadMedia = null; | 339 var _uploadMedia = null; |
| 340 var _uploadOptions = null; | 340 var _uploadOptions = null; |
| 341 var _downloadOptions = commons.DownloadOptions.Metadata; | 341 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 342 var _body = null; | 342 var _body = null; |
| 343 | 343 |
| 344 if (projectName == null) { | 344 if (projectName == null) { |
| 345 throw new core.ArgumentError("Parameter projectName is required."); | 345 throw new core.ArgumentError("Parameter projectName is required."); |
| 346 } | 346 } |
| 347 if (pageToken != null) { |
| 348 _queryParams["pageToken"] = [pageToken]; |
| 349 } |
| 350 if (timeRange_period != null) { |
| 351 _queryParams["timeRange.period"] = [timeRange_period]; |
| 352 } |
| 347 if (alignment != null) { | 353 if (alignment != null) { |
| 348 _queryParams["alignment"] = [alignment]; | 354 _queryParams["alignment"] = [alignment]; |
| 349 } | 355 } |
| 350 if (timeRange_period != null) { | |
| 351 _queryParams["timeRange.period"] = [timeRange_period]; | |
| 352 } | |
| 353 if (serviceFilter_resourceType != null) { | |
| 354 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; | |
| 355 } | |
| 356 if (order != null) { | |
| 357 _queryParams["order"] = [order]; | |
| 358 } | |
| 359 if (groupId != null) { | 356 if (groupId != null) { |
| 360 _queryParams["groupId"] = groupId; | 357 _queryParams["groupId"] = groupId; |
| 361 } | 358 } |
| 362 if (serviceFilter_service != null) { | 359 if (serviceFilter_service != null) { |
| 363 _queryParams["serviceFilter.service"] = [serviceFilter_service]; | 360 _queryParams["serviceFilter.service"] = [serviceFilter_service]; |
| 364 } | 361 } |
| 362 if (pageSize != null) { |
| 363 _queryParams["pageSize"] = ["${pageSize}"]; |
| 364 } |
| 365 if (order != null) { |
| 366 _queryParams["order"] = [order]; |
| 367 } |
| 368 if (serviceFilter_version != null) { |
| 369 _queryParams["serviceFilter.version"] = [serviceFilter_version]; |
| 370 } |
| 365 if (alignmentTime != null) { | 371 if (alignmentTime != null) { |
| 366 _queryParams["alignmentTime"] = [alignmentTime]; | 372 _queryParams["alignmentTime"] = [alignmentTime]; |
| 367 } | 373 } |
| 368 if (serviceFilter_version != null) { | 374 if (serviceFilter_resourceType != null) { |
| 369 _queryParams["serviceFilter.version"] = [serviceFilter_version]; | 375 _queryParams["serviceFilter.resourceType"] = [serviceFilter_resourceType]; |
| 370 } | |
| 371 if (pageSize != null) { | |
| 372 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 373 } | 376 } |
| 374 if (timedCountDuration != null) { | 377 if (timedCountDuration != null) { |
| 375 _queryParams["timedCountDuration"] = [timedCountDuration]; | 378 _queryParams["timedCountDuration"] = [timedCountDuration]; |
| 376 } | 379 } |
| 377 if (pageToken != null) { | |
| 378 _queryParams["pageToken"] = [pageToken]; | |
| 379 } | |
| 380 | 380 |
| 381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/groupStats'; | 381 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') +
'/groupStats'; |
| 382 | 382 |
| 383 var _response = _requester.request(_url, | 383 var _response = _requester.request(_url, |
| 384 "GET", | 384 "GET", |
| 385 body: _body, | 385 body: _body, |
| 386 queryParams: _queryParams, | 386 queryParams: _queryParams, |
| 387 uploadOptions: _uploadOptions, | 387 uploadOptions: _uploadOptions, |
| 388 uploadMedia: _uploadMedia, | 388 uploadMedia: _uploadMedia, |
| 389 downloadOptions: _downloadOptions); | 389 downloadOptions: _downloadOptions); |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 class ReportedErrorEvent { | 984 class ReportedErrorEvent { |
| 985 /** [Optional] A description of the context in which the error occurred. */ | 985 /** [Optional] A description of the context in which the error occurred. */ |
| 986 ErrorContext context; | 986 ErrorContext context; |
| 987 /** | 987 /** |
| 988 * [Optional] Time when the event occurred. | 988 * [Optional] Time when the event occurred. |
| 989 * If not provided, the time when the event was received by the | 989 * If not provided, the time when the event was received by the |
| 990 * Error Reporting system will be used. | 990 * Error Reporting system will be used. |
| 991 */ | 991 */ |
| 992 core.String eventTime; | 992 core.String eventTime; |
| 993 /** | 993 /** |
| 994 * [Required] A message describing the error. The message can contain an | 994 * [Required] The error message. |
| 995 * exception stack in one of the supported programming languages and formats. | 995 * If no `context.reportLocation` is provided, the message must contain a |
| 996 * In that case, the message is parsed and detailed exception information | 996 * header (typically consisting of the exception type name and an error |
| 997 * is returned when retrieving the error event again. | 997 * message) and an exception stack trace in one of the supported programming |
| 998 * languages and formats. |
| 999 * Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. |
| 1000 * Supported stack trace formats are: |
| 1001 * |
| 1002 * * **Java**: Must be the return value of |
| 1003 * [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/j
ava/lang/Throwable.html#printStackTrace%28%29). |
| 1004 * * **Python**: Must be the return value of |
| 1005 * [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html
#traceback.format_exc). |
| 1006 * * **JavaScript**: Must be the value of |
| 1007 * [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) |
| 1008 * as returned by V8. |
| 1009 * * **Ruby**: Must contain frames returned by |
| 1010 * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#meth
od-i-backtrace). |
| 1011 * * **C#**: Must be the return value of |
| 1012 * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.ex
ception.tostring.aspx). |
| 1013 * * **PHP**: Must start with `PHP (Notice|Parse error|Fatal error|Warning)` |
| 1014 * and contain the result of |
| 1015 * [`(string)$exception`](http://php.net/manual/en/exception.tostring.php). |
| 1016 * * **Go**: Must be the return value of |
| 1017 * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). |
| 998 */ | 1018 */ |
| 999 core.String message; | 1019 core.String message; |
| 1000 /** [Required] The service context in which this error has occurred. */ | 1020 /** [Required] The service context in which this error has occurred. */ |
| 1001 ServiceContext serviceContext; | 1021 ServiceContext serviceContext; |
| 1002 | 1022 |
| 1003 ReportedErrorEvent(); | 1023 ReportedErrorEvent(); |
| 1004 | 1024 |
| 1005 ReportedErrorEvent.fromJson(core.Map _json) { | 1025 ReportedErrorEvent.fromJson(core.Map _json) { |
| 1006 if (_json.containsKey("context")) { | 1026 if (_json.containsKey("context")) { |
| 1007 context = new ErrorContext.fromJson(_json["context"]); | 1027 context = new ErrorContext.fromJson(_json["context"]); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 } | 1223 } |
| 1204 | 1224 |
| 1205 core.Map toJson() { | 1225 core.Map toJson() { |
| 1206 var _json = new core.Map(); | 1226 var _json = new core.Map(); |
| 1207 if (url != null) { | 1227 if (url != null) { |
| 1208 _json["url"] = url; | 1228 _json["url"] = url; |
| 1209 } | 1229 } |
| 1210 return _json; | 1230 return _json; |
| 1211 } | 1231 } |
| 1212 } | 1232 } |
| OLD | NEW |