-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
insight_type_config.proto
85 lines (72 loc) · 3.23 KB
/
insight_type_config.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Copyright 2022 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.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "Google.Cloud.Recommender.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/recommender/v1;recommender";
option java_multiple_files = true;
option java_outer_classname = "InsightTypeConfigProto";
option java_package = "com.google.cloud.recommender.v1";
option objc_class_prefix = "CREC";
// Configuration for an InsightType.
message InsightTypeConfig {
option (google.api.resource) = {
type: "recommender.googleapis.com/InsightTypeConfig"
pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}/config"
pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/config"
};
// Name of insight type config.
// Eg,
// projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
string name = 1;
// InsightTypeGenerationConfig which configures the generation of
// insights for this insight type.
InsightTypeGenerationConfig insight_type_generation_config = 2;
// Fingerprint of the InsightTypeConfig. Provides optimistic locking when
// updating.
string etag = 3;
// Last time when the config was updated.
google.protobuf.Timestamp update_time = 4;
// Output only. Immutable. The revision ID of the config.
// A new revision is committed whenever the config is changed in any way.
// The format is an 8-character hexadecimal string.
string revision_id = 5 [
(google.api.field_behavior) = IMMUTABLE,
(google.api.field_behavior) = OUTPUT_ONLY
];
// Allows clients to store small amounts of arbitrary data. Annotations must
// follow the Kubernetes syntax.
// The total size of all keys and values combined is limited to 256k.
// Key can have 2 segments: prefix (optional) and name (required),
// separated by a slash (/).
// Prefix must be a DNS subdomain.
// Name must be 63 characters or less, begin and end with alphanumerics,
// with dashes (-), underscores (_), dots (.), and alphanumerics between.
map<string, string> annotations = 6;
// A user-settable field to provide a human-readable name to be used in user
// interfaces.
string display_name = 7;
}
// A configuration to customize the generation of insights.
// Eg, customizing the lookback period considered when generating a
// insight.
message InsightTypeGenerationConfig {
// Parameters for this InsightTypeGenerationConfig. These configs can be used
// by or are applied to all subtypes.
google.protobuf.Struct params = 1;
}