-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
action_log.proto
58 lines (46 loc) · 2.41 KB
/
action_log.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.recommender.logging.v1beta1;
import "google/api/field_behavior.proto";
import "google/cloud/recommender/v1beta1/insight.proto";
import "google/cloud/recommender/v1beta1/recommendation.proto";
option go_package = "cloud.google.com/go/recommender/logging/apiv1beta1/loggingpb;loggingpb";
option java_multiple_files = true;
option java_outer_classname = "ActionLogProto";
option java_package = "com.google.cloud.recommender.logging.v1beta1";
// Log content of an action on a recommendation. This includes Mark* actions.
message ActionLog {
// Required. User that executed this action. Eg, [email protected]
string actor = 1;
// Required. State change that was made by the actor. Eg, SUCCEEDED.
google.cloud.recommender.v1beta1.RecommendationStateInfo.State state = 2;
// Optional. Metadata that was included with the action that was taken.
map<string, string> state_metadata = 3;
// Required. Name of the recommendation which was acted on. Eg, :
// 'projects/foo/locations/global/recommenders/roleReco/recommendations/r1'
string recommendation_name = 4;
}
// Log content of an action on an insight. This includes Mark* actions.
message InsightActionLog {
// Required. User that executed this action. Eg, [email protected]
string actor = 1 [(google.api.field_behavior) = REQUIRED];
// Required. State change that was made by the actor. Eg, ACCEPTED.
google.cloud.recommender.v1beta1.InsightStateInfo.State state = 2 [(google.api.field_behavior) = REQUIRED];
// Optional. Metadata that was included with the action that was taken.
map<string, string> state_metadata = 3 [(google.api.field_behavior) = OPTIONAL];
// Required. Name of the insight which was acted on. Eg, :
// 'projects/foo/locations/global/insightTypes/roleInsight/insights/i1'
string insight = 4 [(google.api.field_behavior) = REQUIRED];
}