|
| 1 | +// Copyright 2024 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 | + |
| 17 | +package google.cloud.securitycenter.v1; |
| 18 | + |
| 19 | +import "google/protobuf/timestamp.proto"; |
| 20 | + |
| 21 | +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; |
| 22 | +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; |
| 23 | +option java_multiple_files = true; |
| 24 | +option java_outer_classname = "LogEntryProto"; |
| 25 | +option java_package = "com.google.cloud.securitycenter.v1"; |
| 26 | +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; |
| 27 | +option ruby_package = "Google::Cloud::SecurityCenter::V1"; |
| 28 | + |
| 29 | +// An individual entry in a log. |
| 30 | +message LogEntry { |
| 31 | + oneof log_entry { |
| 32 | + // An individual entry in a log stored in Cloud Logging. |
| 33 | + CloudLoggingEntry cloud_logging_entry = 1; |
| 34 | + } |
| 35 | +} |
| 36 | + |
| 37 | +// Metadata taken from a [Cloud Logging |
| 38 | +// LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) |
| 39 | +message CloudLoggingEntry { |
| 40 | + // A unique identifier for the log entry. |
| 41 | + string insert_id = 1; |
| 42 | + |
| 43 | + // The type of the log (part of `log_name`. `log_name` is the resource name of |
| 44 | + // the log to which this log entry belongs). For example: |
| 45 | + // `cloudresourcemanager.googleapis.com/activity`. Note that this field is not |
| 46 | + // URL-encoded, unlike the `LOG_ID` field in `LogEntry`. |
| 47 | + string log_id = 2; |
| 48 | + |
| 49 | + // The organization, folder, or project of the monitored resource that |
| 50 | + // produced this log entry. |
| 51 | + string resource_container = 3; |
| 52 | + |
| 53 | + // The time the event described by the log entry occurred. |
| 54 | + google.protobuf.Timestamp timestamp = 4; |
| 55 | +} |
0 commit comments