xref: /aosp_15_r20/external/googleapis/google/cloud/securitycenter/v1/log_entry.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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
15syntax = "proto3";
16
17package google.cloud.securitycenter.v1;
18
19import "google/protobuf/timestamp.proto";
20
21option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
22option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
23option java_multiple_files = true;
24option java_outer_classname = "LogEntryProto";
25option java_package = "com.google.cloud.securitycenter.v1";
26option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
27option ruby_package = "Google::Cloud::SecurityCenter::V1";
28
29// An individual entry in a log.
30message 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)
39message 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}
56