github.com/google/cloudprober@v0.11.3/rds/client/proto/config.proto (about) 1 // Configuration proto for RDS targets. 2 // Example: 3 // { 4 // request { 5 // resource_uri: "gcp://gce_instances/google.com:bbmc-stackdriver/*" 6 // } 7 // } 8 syntax = "proto2"; 9 10 package cloudprober.rds; 11 12 import "github.com/google/cloudprober/common/oauth/proto/config.proto"; 13 import "github.com/google/cloudprober/common/tlsconfig/proto/config.proto"; 14 import "github.com/google/cloudprober/rds/proto/rds.proto"; 15 16 option go_package = "github.com/google/cloudprober/rds/client/proto"; 17 18 // ClientConf represents resource discovery service (RDS) based targets. 19 // Next tag: 6 20 message ClientConf { 21 message ServerOptions { 22 optional string server_address = 1; 23 24 // Optional oauth config for authentication. 25 optional oauth.Config oauth_config = 2; 26 27 // TLS config, it can be used to: 28 // - Specify a CA cert for server cert verification: 29 // tls_config { 30 // ca_cert_file: "...." 31 // } 32 // 33 // - Specify client's TLS cert and key: 34 // tls_config { 35 // tls_cert_file: "..." 36 // tls_key_file: "..." 37 // } 38 optional tlsconfig.TLSConfig tls_config = 3; 39 } 40 optional ServerOptions server_options = 1; 41 42 required ListResourcesRequest request = 2; 43 44 // How often targets should be evaluated. Any number less than or equal to 0 45 // will result in no target caching (targets will be reevaluated on demand). 46 // Note that individual target types may have their own caches implemented 47 // (specifically GCE instances/forwarding rules). This does not impact those 48 // caches. 49 optional int32 re_eval_sec = 3 [default = 30]; 50 }