scan_run_log.proto 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_run.proto";
  17. import "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto";
  18. option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1";
  19. option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "ScanRunLogProto";
  22. option java_package = "com.google.cloud.websecurityscanner.v1";
  23. option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1";
  24. option ruby_package = "Google::Cloud::WebSecurityScanner::V1";
  25. // A ScanRunLog is an output-only proto used for Stackdriver customer logging.
  26. // It is used for logs covering the start and end of scan pipelines.
  27. // Other than an added summary, this is a subset of the ScanRun.
  28. // Representation in logs is either a proto Struct, or converted to JSON.
  29. // Next id: 9
  30. message ScanRunLog {
  31. // Human friendly message about the event.
  32. string summary = 1;
  33. // The resource name of the ScanRun being logged.
  34. string name = 2;
  35. // The execution state of the ScanRun.
  36. google.cloud.websecurityscanner.v1.ScanRun.ExecutionState execution_state = 3;
  37. // The result state of the ScanRun.
  38. google.cloud.websecurityscanner.v1.ScanRun.ResultState result_state = 4;
  39. int64 urls_crawled_count = 5;
  40. int64 urls_tested_count = 6;
  41. bool has_findings = 7;
  42. google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8;
  43. }