scan_run_error_trace.proto 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.cloud.websecurityscanner.v1;
  16. import "google/cloud/websecurityscanner/v1/scan_config_error.proto";
  17. option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "ScanRunErrorTraceProto";
  21. option java_package = "com.google.cloud.websecurityscanner.v1";
  22. option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
  23. option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
  24. // Output only.
  25. // Defines an error trace message for a ScanRun.
  26. message ScanRunErrorTrace {
  27. // Output only.
  28. // Defines an error reason code.
  29. // Next id: 8
  30. enum Code {
  31. // Default value is never used.
  32. CODE_UNSPECIFIED = 0;
  33. // Indicates that the scan run failed due to an internal server error.
  34. INTERNAL_ERROR = 1;
  35. // Indicates a scan configuration error, usually due to outdated ScanConfig
  36. // settings, such as starting_urls or the DNS configuration.
  37. SCAN_CONFIG_ISSUE = 2;
  38. // Indicates an authentication error, usually due to outdated ScanConfig
  39. // authentication settings.
  40. AUTHENTICATION_CONFIG_ISSUE = 3;
  41. // Indicates a scan operation timeout, usually caused by a very large site.
  42. TIMED_OUT_WHILE_SCANNING = 4;
  43. // Indicates that a scan encountered excessive redirects, either to
  44. // authentication or some other page outside of the scan scope.
  45. TOO_MANY_REDIRECTS = 5;
  46. // Indicates that a scan encountered numerous errors from the web site
  47. // pages. When available, most_common_http_error_code field indicates the
  48. // most common HTTP error code encountered during the scan.
  49. TOO_MANY_HTTP_ERRORS = 6;
  50. }
  51. // Output only. Indicates the error reason code.
  52. Code code = 1;
  53. // Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
  54. // message encountered during scan configuration validation that is performed
  55. // before each scan run.
  56. ScanConfigError scan_config_error = 2;
  57. // Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
  58. // common HTTP error code, if such is available. For example, if this code is
  59. // 404, the scan has encountered too many NOT_FOUND responses.
  60. int32 most_common_http_error_code = 3;
  61. }