integration/example/protos/configuration.proto (35 lines of code) (raw):
/*
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
https://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 workloadagenplatform.protos.example.configuration;
import "google/protobuf/wrappers.proto";
import "integration/common/protos/integration.proto";
option go_package = "github.com/GoogleCloudPlatform/workloadagentplatform/integration/example/protos";
message Configuration {
enum LogLevel {
UNDEFINED = 0;
DEBUG = 1;
INFO = 2;
WARNING = 3;
ERROR = 4;
}
// Common configurations for all integrations.
string service_endpoint_override = 1;
LogLevel log_level = 2;
google.protobuf.BoolValue log_to_cloud = 3;
integration.CloudProperties cloud_properties = 4;
// Duration in seconds for the fast and slow services to run.
// Integrations should replace these with their own configuration.
int64 fast_service_loop_seconds = 5;
int64 slow_service_loop_seconds = 6;
}