github.com/google/cloudprober@v0.11.3/targets/file/proto/config.proto (about) 1 // Configuration proto for File targets. 2 syntax = "proto2"; 3 4 package cloudprober.targets.file; 5 6 import "github.com/google/cloudprober/rds/file/proto/config.proto"; 7 import "github.com/google/cloudprober/rds/proto/rds.proto"; 8 9 option go_package = "github.com/google/cloudprober/targets/file/proto"; 10 11 message TargetsConf { 12 // File that contains resources in either textproto or json format. 13 // Example in textproto format: 14 // 15 // resource { 16 // name: "switch-xx-01" 17 // ip: "10.11.112.3" 18 // port: 8080 19 // labels { 20 // key: "device_type" 21 // value: "switch" 22 // } 23 // } 24 // resource { 25 // name: "switch-yy-01" 26 // ip: "10.16.110.12" 27 // port: 8080 28 // } 29 optional string file_path = 1; 30 31 repeated .cloudprober.rds.Filter filter = 2; 32 33 optional .cloudprober.rds.file.ProviderConfig.Format format = 3; 34 35 // If specified, file will be re-read at the given interval. 36 optional int32 re_eval_sec = 4; 37 }