Documentation
¶
Index ¶
- Variables
- type TargetsConf
- func (*TargetsConf) Descriptor() ([]byte, []int)deprecated
- func (x *TargetsConf) GetFilePath() string
- func (x *TargetsConf) GetFilter() []*proto.Filter
- func (x *TargetsConf) GetFormat() proto1.ProviderConfig_Format
- func (x *TargetsConf) GetReEvalSec() int32
- func (*TargetsConf) ProtoMessage()
- func (x *TargetsConf) ProtoReflect() protoreflect.Message
- func (x *TargetsConf) Reset()
- func (x *TargetsConf) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_google_cloudprober_targets_file_proto_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TargetsConf ¶
type TargetsConf struct { // File that contains resources in either textproto or json format. // Example in textproto format: // // resource { // name: "switch-xx-01" // ip: "10.11.112.3" // port: 8080 // labels { // key: "device_type" // value: "switch" // } // } // resource { // name: "switch-yy-01" // ip: "10.16.110.12" // port: 8080 // } FilePath *string `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"` Filter []*proto.Filter `protobuf:"bytes,2,rep,name=filter" json:"filter,omitempty"` Format *proto1.ProviderConfig_Format `protobuf:"varint,3,opt,name=format,enum=cloudprober.rds.file.ProviderConfig_Format" json:"format,omitempty"` // If specified, file will be re-read at the given interval. ReEvalSec *int32 `protobuf:"varint,4,opt,name=re_eval_sec,json=reEvalSec" json:"re_eval_sec,omitempty"` // contains filtered or unexported fields }
func (*TargetsConf) Descriptor
deprecated
func (*TargetsConf) Descriptor() ([]byte, []int)
Deprecated: Use TargetsConf.ProtoReflect.Descriptor instead.
func (*TargetsConf) GetFilePath ¶
func (x *TargetsConf) GetFilePath() string
func (*TargetsConf) GetFilter ¶
func (x *TargetsConf) GetFilter() []*proto.Filter
func (*TargetsConf) GetFormat ¶
func (x *TargetsConf) GetFormat() proto1.ProviderConfig_Format
func (*TargetsConf) GetReEvalSec ¶
func (x *TargetsConf) GetReEvalSec() int32
func (*TargetsConf) ProtoMessage ¶
func (*TargetsConf) ProtoMessage()
func (*TargetsConf) ProtoReflect ¶
func (x *TargetsConf) ProtoReflect() protoreflect.Message
func (*TargetsConf) Reset ¶
func (x *TargetsConf) Reset()
func (*TargetsConf) String ¶
func (x *TargetsConf) String() string
Click to show internal directories.
Click to hide internal directories.