scan_run_error_trace.proto 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Copyright 2019 Google LLC.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. syntax = "proto3";
  16. package google.cloud.websecurityscanner.v1beta;
  17. import "google/cloud/websecurityscanner/v1beta/scan_config_error.proto";
  18. option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "ScanRunErrorTraceProto";
  22. option java_package = "com.google.cloud.websecurityscanner.v1beta";
  23. option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta";
  24. option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta";
  25. // Output only.
  26. // Defines an error trace message for a ScanRun.
  27. message ScanRunErrorTrace {
  28. // Output only.
  29. // Defines an error reason code.
  30. // Next id: 7
  31. enum Code {
  32. // Default value is never used.
  33. CODE_UNSPECIFIED = 0;
  34. // Indicates that the scan run failed due to an internal server error.
  35. INTERNAL_ERROR = 1;
  36. // Indicates a scan configuration error, usually due to outdated ScanConfig
  37. // settings, such as starting_urls or the DNS configuration.
  38. SCAN_CONFIG_ISSUE = 2;
  39. // Indicates an authentication error, usually due to outdated ScanConfig
  40. // authentication settings.
  41. AUTHENTICATION_CONFIG_ISSUE = 3;
  42. // Indicates a scan operation timeout, usually caused by a very large site.
  43. TIMED_OUT_WHILE_SCANNING = 4;
  44. // Indicates that a scan encountered excessive redirects, either to
  45. // authentication or some other page outside of the scan scope.
  46. TOO_MANY_REDIRECTS = 5;
  47. // Indicates that a scan encountered numerous errors from the web site
  48. // pages. When available, most_common_http_error_code field indicates the
  49. // most common HTTP error code encountered during the scan.
  50. TOO_MANY_HTTP_ERRORS = 6;
  51. }
  52. // Indicates the error reason code.
  53. Code code = 1;
  54. // If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
  55. // message encountered during scan configuration validation that is performed
  56. // before each scan run.
  57. ScanConfigError scan_config_error = 2;
  58. // If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
  59. // common HTTP error code, if such is available. For example, if this code is
  60. // 404, the scan has encountered too many NOT_FOUND responses.
  61. int32 most_common_http_error_code = 3;
  62. }