Documentation ¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
base.proto demo.proto rds.proto scrape_configs.proto
It has these top-level messages:
BaseVersionRequest BaseVersionResponse DemoErrorRequest DemoErrorResponse RDSNode RDSService RDSInstanceID RDSInstance RDSDiscoverRequest RDSDiscoverResponse RDSListRequest RDSListResponse RDSAddRequest RDSAddResponse RDSRemoveRequest RDSRemoveResponse LabelPair StaticConfig BasicAuth TLSConfig ScrapeConfig ScrapeConfigsListRequest ScrapeConfigsListResponse ScrapeConfigsGetRequest ScrapeConfigsGetResponse ScrapeConfigsCreateRequest ScrapeConfigsCreateResponse ScrapeConfigsDeleteRequest ScrapeConfigsDeleteResponse ScrapeConfigsAddStaticTargetsRequest ScrapeConfigsAddStaticTargetsResponse ScrapeConfigsRemoveStaticTargetsRequest ScrapeConfigsRemoveStaticTargetsResponse
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package api is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterBaseHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBaseHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BaseClient) error
- func RegisterBaseHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBaseServer(s *grpc.Server, srv BaseServer)
- func RegisterDemoHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDemoHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DemoClient) error
- func RegisterDemoHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDemoServer(s *grpc.Server, srv DemoServer)
- func RegisterRDSHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RDSClient) error
- func RegisterRDSHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRDSServer(s *grpc.Server, srv RDSServer)
- func RegisterScrapeConfigsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterScrapeConfigsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ScrapeConfigsClient) error
- func RegisterScrapeConfigsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterScrapeConfigsServer(s *grpc.Server, srv ScrapeConfigsServer)
- type BaseClient
- type BaseServer
- type BaseVersionRequest
- type BaseVersionResponse
- type BasicAuth
- type Client
- type DemoClient
- type DemoErrorRequest
- func (*DemoErrorRequest) Descriptor() ([]byte, []int)
- func (m *DemoErrorRequest) GetCode() uint32
- func (m *DemoErrorRequest) GetKey() string
- func (m *DemoErrorRequest) GetValue() string
- func (*DemoErrorRequest) ProtoMessage()
- func (m *DemoErrorRequest) Reset()
- func (m *DemoErrorRequest) String() string
- type DemoErrorResponse
- type DemoServer
- type LabelPair
- type RDSAddRequest
- func (*RDSAddRequest) Descriptor() ([]byte, []int)
- func (m *RDSAddRequest) GetAwsAccessKeyId() string
- func (m *RDSAddRequest) GetAwsSecretAccessKey() string
- func (m *RDSAddRequest) GetId() *RDSInstanceID
- func (m *RDSAddRequest) GetPassword() string
- func (m *RDSAddRequest) GetUsername() string
- func (*RDSAddRequest) ProtoMessage()
- func (m *RDSAddRequest) Reset()
- func (m *RDSAddRequest) String() string
- type RDSAddResponse
- type RDSClient
- type RDSDiscoverRequest
- type RDSDiscoverResponse
- type RDSInstance
- type RDSInstanceID
- type RDSListRequest
- type RDSListResponse
- type RDSNode
- type RDSRemoveRequest
- type RDSRemoveResponse
- type RDSServer
- type RDSService
- func (*RDSService) Descriptor() ([]byte, []int)
- func (m *RDSService) GetAddress() string
- func (m *RDSService) GetEngine() string
- func (m *RDSService) GetEngineVersion() string
- func (m *RDSService) GetPort() uint32
- func (*RDSService) ProtoMessage()
- func (m *RDSService) Reset()
- func (m *RDSService) String() string
- type ScrapeConfig
- func (*ScrapeConfig) Descriptor() ([]byte, []int)
- func (m *ScrapeConfig) GetBasicAuth() *BasicAuth
- func (m *ScrapeConfig) GetJobName() string
- func (m *ScrapeConfig) GetMetricsPath() string
- func (m *ScrapeConfig) GetScheme() string
- func (m *ScrapeConfig) GetScrapeInterval() string
- func (m *ScrapeConfig) GetScrapeTimeout() string
- func (m *ScrapeConfig) GetStaticConfigs() []*StaticConfig
- func (m *ScrapeConfig) GetTlsConfig() *TLSConfig
- func (*ScrapeConfig) ProtoMessage()
- func (m *ScrapeConfig) Reset()
- func (m *ScrapeConfig) String() string
- type ScrapeConfigsAddStaticTargetsRequest
- func (*ScrapeConfigsAddStaticTargetsRequest) Descriptor() ([]byte, []int)
- func (m *ScrapeConfigsAddStaticTargetsRequest) GetJobName() string
- func (m *ScrapeConfigsAddStaticTargetsRequest) GetTargets() []string
- func (*ScrapeConfigsAddStaticTargetsRequest) ProtoMessage()
- func (m *ScrapeConfigsAddStaticTargetsRequest) Reset()
- func (m *ScrapeConfigsAddStaticTargetsRequest) String() string
- type ScrapeConfigsAddStaticTargetsResponse
- type ScrapeConfigsClient
- type ScrapeConfigsCreateRequest
- type ScrapeConfigsCreateResponse
- type ScrapeConfigsDeleteRequest
- type ScrapeConfigsDeleteResponse
- type ScrapeConfigsGetRequest
- type ScrapeConfigsGetResponse
- type ScrapeConfigsListRequest
- type ScrapeConfigsListResponse
- type ScrapeConfigsRemoveStaticTargetsRequest
- func (*ScrapeConfigsRemoveStaticTargetsRequest) Descriptor() ([]byte, []int)
- func (m *ScrapeConfigsRemoveStaticTargetsRequest) GetJobName() string
- func (m *ScrapeConfigsRemoveStaticTargetsRequest) GetTargets() []string
- func (*ScrapeConfigsRemoveStaticTargetsRequest) ProtoMessage()
- func (m *ScrapeConfigsRemoveStaticTargetsRequest) Reset()
- func (m *ScrapeConfigsRemoveStaticTargetsRequest) String() string
- type ScrapeConfigsRemoveStaticTargetsResponse
- type ScrapeConfigsServer
- type StaticConfig
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBaseHandler ¶
RegisterBaseHandler registers the http handlers for service Base to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBaseHandlerClient ¶
RegisterBaseHandler registers the http handlers for service Base to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BaseClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BaseClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BaseClient" to call the correct interceptors.
func RegisterBaseHandlerFromEndpoint ¶
func RegisterBaseHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBaseHandlerFromEndpoint is same as RegisterBaseHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBaseServer ¶
func RegisterBaseServer(s *grpc.Server, srv BaseServer)
func RegisterDemoHandler ¶
RegisterDemoHandler registers the http handlers for service Demo to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDemoHandlerClient ¶
RegisterDemoHandler registers the http handlers for service Demo to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DemoClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DemoClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DemoClient" to call the correct interceptors.
func RegisterDemoHandlerFromEndpoint ¶
func RegisterDemoHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDemoHandlerFromEndpoint is same as RegisterDemoHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDemoServer ¶
func RegisterDemoServer(s *grpc.Server, srv DemoServer)
func RegisterRDSHandler ¶ added in v1.5.0
RegisterRDSHandler registers the http handlers for service RDS to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRDSHandlerClient ¶ added in v1.5.0
RegisterRDSHandler registers the http handlers for service RDS to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RDSClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RDSClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RDSClient" to call the correct interceptors.
func RegisterRDSHandlerFromEndpoint ¶ added in v1.5.0
func RegisterRDSHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRDSHandlerFromEndpoint is same as RegisterRDSHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRDSServer ¶ added in v1.5.0
func RegisterScrapeConfigsHandler ¶
func RegisterScrapeConfigsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterScrapeConfigsHandler registers the http handlers for service ScrapeConfigs to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterScrapeConfigsHandlerClient ¶
func RegisterScrapeConfigsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ScrapeConfigsClient) error
RegisterScrapeConfigsHandler registers the http handlers for service ScrapeConfigs to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ScrapeConfigsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ScrapeConfigsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ScrapeConfigsClient" to call the correct interceptors.
func RegisterScrapeConfigsHandlerFromEndpoint ¶
func RegisterScrapeConfigsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterScrapeConfigsHandlerFromEndpoint is same as RegisterScrapeConfigsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterScrapeConfigsServer ¶
func RegisterScrapeConfigsServer(s *grpc.Server, srv ScrapeConfigsServer)
Types ¶
type BaseClient ¶
type BaseClient interface {
Version(ctx context.Context, in *BaseVersionRequest, opts ...grpc.CallOption) (*BaseVersionResponse, error)
}
func NewBaseClient ¶
func NewBaseClient(cc *grpc.ClientConn) BaseClient
type BaseServer ¶
type BaseServer interface {
Version(context.Context, *BaseVersionRequest) (*BaseVersionResponse, error)
}
type BaseVersionRequest ¶
type BaseVersionRequest struct { }
func (*BaseVersionRequest) Descriptor ¶
func (*BaseVersionRequest) Descriptor() ([]byte, []int)
func (*BaseVersionRequest) ProtoMessage ¶
func (*BaseVersionRequest) ProtoMessage()
func (*BaseVersionRequest) Reset ¶
func (m *BaseVersionRequest) Reset()
func (*BaseVersionRequest) String ¶
func (m *BaseVersionRequest) String() string
type BaseVersionResponse ¶
type BaseVersionResponse struct {
Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}
func (*BaseVersionResponse) Descriptor ¶
func (*BaseVersionResponse) Descriptor() ([]byte, []int)
func (*BaseVersionResponse) GetVersion ¶
func (m *BaseVersionResponse) GetVersion() string
func (*BaseVersionResponse) ProtoMessage ¶
func (*BaseVersionResponse) ProtoMessage()
func (*BaseVersionResponse) Reset ¶
func (m *BaseVersionResponse) Reset()
func (*BaseVersionResponse) String ¶
func (m *BaseVersionResponse) String() string
type BasicAuth ¶
type BasicAuth struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` }
func (*BasicAuth) Descriptor ¶
func (*BasicAuth) GetPassword ¶
func (*BasicAuth) GetUsername ¶
func (*BasicAuth) ProtoMessage ¶
func (*BasicAuth) ProtoMessage()
type Client ¶
type Client struct { BaseClient ScrapeConfigsClient }
Client is a client for pmm-managed APIs.
func NewClient ¶
func NewClient(cc *grpc.ClientConn) *Client
NewClient creates new Client for a given connection.
type DemoClient ¶
type DemoClient interface {
Error(ctx context.Context, in *DemoErrorRequest, opts ...grpc.CallOption) (*DemoErrorResponse, error)
}
func NewDemoClient ¶
func NewDemoClient(cc *grpc.ClientConn) DemoClient
type DemoErrorRequest ¶
type DemoErrorRequest struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"` Key string `protobuf:"bytes,2,opt,name=key" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"` }
func (*DemoErrorRequest) Descriptor ¶
func (*DemoErrorRequest) Descriptor() ([]byte, []int)
func (*DemoErrorRequest) GetCode ¶
func (m *DemoErrorRequest) GetCode() uint32
func (*DemoErrorRequest) GetKey ¶
func (m *DemoErrorRequest) GetKey() string
func (*DemoErrorRequest) GetValue ¶
func (m *DemoErrorRequest) GetValue() string
func (*DemoErrorRequest) ProtoMessage ¶
func (*DemoErrorRequest) ProtoMessage()
func (*DemoErrorRequest) Reset ¶
func (m *DemoErrorRequest) Reset()
func (*DemoErrorRequest) String ¶
func (m *DemoErrorRequest) String() string
type DemoErrorResponse ¶
type DemoErrorResponse struct { }
func (*DemoErrorResponse) Descriptor ¶
func (*DemoErrorResponse) Descriptor() ([]byte, []int)
func (*DemoErrorResponse) ProtoMessage ¶
func (*DemoErrorResponse) ProtoMessage()
func (*DemoErrorResponse) Reset ¶
func (m *DemoErrorResponse) Reset()
func (*DemoErrorResponse) String ¶
func (m *DemoErrorResponse) String() string
type DemoServer ¶
type DemoServer interface {
Error(context.Context, *DemoErrorRequest) (*DemoErrorResponse, error)
}
type LabelPair ¶
type LabelPair struct { // Label name Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Label value Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*LabelPair) Descriptor ¶
func (*LabelPair) ProtoMessage ¶
func (*LabelPair) ProtoMessage()
type RDSAddRequest ¶ added in v1.5.0
type RDSAddRequest struct { AwsAccessKeyId string `protobuf:"bytes,1,opt,name=aws_access_key_id,json=awsAccessKeyId" json:"aws_access_key_id,omitempty"` AwsSecretAccessKey string `protobuf:"bytes,2,opt,name=aws_secret_access_key,json=awsSecretAccessKey" json:"aws_secret_access_key,omitempty"` Id *RDSInstanceID `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` Username string `protobuf:"bytes,4,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,5,opt,name=password" json:"password,omitempty"` }
func (*RDSAddRequest) Descriptor ¶ added in v1.5.0
func (*RDSAddRequest) Descriptor() ([]byte, []int)
func (*RDSAddRequest) GetAwsAccessKeyId ¶ added in v1.5.0
func (m *RDSAddRequest) GetAwsAccessKeyId() string
func (*RDSAddRequest) GetAwsSecretAccessKey ¶ added in v1.5.0
func (m *RDSAddRequest) GetAwsSecretAccessKey() string
func (*RDSAddRequest) GetId ¶ added in v1.5.0
func (m *RDSAddRequest) GetId() *RDSInstanceID
func (*RDSAddRequest) GetPassword ¶ added in v1.5.0
func (m *RDSAddRequest) GetPassword() string
func (*RDSAddRequest) GetUsername ¶ added in v1.5.0
func (m *RDSAddRequest) GetUsername() string
func (*RDSAddRequest) ProtoMessage ¶ added in v1.5.0
func (*RDSAddRequest) ProtoMessage()
func (*RDSAddRequest) Reset ¶ added in v1.5.0
func (m *RDSAddRequest) Reset()
func (*RDSAddRequest) String ¶ added in v1.5.0
func (m *RDSAddRequest) String() string
type RDSAddResponse ¶ added in v1.5.0
type RDSAddResponse struct { }
func (*RDSAddResponse) Descriptor ¶ added in v1.5.0
func (*RDSAddResponse) Descriptor() ([]byte, []int)
func (*RDSAddResponse) ProtoMessage ¶ added in v1.5.0
func (*RDSAddResponse) ProtoMessage()
func (*RDSAddResponse) Reset ¶ added in v1.5.0
func (m *RDSAddResponse) Reset()
func (*RDSAddResponse) String ¶ added in v1.5.0
func (m *RDSAddResponse) String() string
type RDSClient ¶ added in v1.5.0
type RDSClient interface { Discover(ctx context.Context, in *RDSDiscoverRequest, opts ...grpc.CallOption) (*RDSDiscoverResponse, error) List(ctx context.Context, in *RDSListRequest, opts ...grpc.CallOption) (*RDSListResponse, error) Add(ctx context.Context, in *RDSAddRequest, opts ...grpc.CallOption) (*RDSAddResponse, error) Remove(ctx context.Context, in *RDSRemoveRequest, opts ...grpc.CallOption) (*RDSRemoveResponse, error) }
func NewRDSClient ¶ added in v1.5.0
func NewRDSClient(cc *grpc.ClientConn) RDSClient
type RDSDiscoverRequest ¶ added in v1.5.0
type RDSDiscoverRequest struct { AwsAccessKeyId string `protobuf:"bytes,1,opt,name=aws_access_key_id,json=awsAccessKeyId" json:"aws_access_key_id,omitempty"` AwsSecretAccessKey string `protobuf:"bytes,2,opt,name=aws_secret_access_key,json=awsSecretAccessKey" json:"aws_secret_access_key,omitempty"` }
func (*RDSDiscoverRequest) Descriptor ¶ added in v1.5.0
func (*RDSDiscoverRequest) Descriptor() ([]byte, []int)
func (*RDSDiscoverRequest) GetAwsAccessKeyId ¶ added in v1.5.0
func (m *RDSDiscoverRequest) GetAwsAccessKeyId() string
func (*RDSDiscoverRequest) GetAwsSecretAccessKey ¶ added in v1.5.0
func (m *RDSDiscoverRequest) GetAwsSecretAccessKey() string
func (*RDSDiscoverRequest) ProtoMessage ¶ added in v1.5.0
func (*RDSDiscoverRequest) ProtoMessage()
func (*RDSDiscoverRequest) Reset ¶ added in v1.5.0
func (m *RDSDiscoverRequest) Reset()
func (*RDSDiscoverRequest) String ¶ added in v1.5.0
func (m *RDSDiscoverRequest) String() string
type RDSDiscoverResponse ¶ added in v1.5.0
type RDSDiscoverResponse struct {
Instances []*RDSInstance `protobuf:"bytes,1,rep,name=instances" json:"instances,omitempty"`
}
func (*RDSDiscoverResponse) Descriptor ¶ added in v1.5.0
func (*RDSDiscoverResponse) Descriptor() ([]byte, []int)
func (*RDSDiscoverResponse) GetInstances ¶ added in v1.5.0
func (m *RDSDiscoverResponse) GetInstances() []*RDSInstance
func (*RDSDiscoverResponse) ProtoMessage ¶ added in v1.5.0
func (*RDSDiscoverResponse) ProtoMessage()
func (*RDSDiscoverResponse) Reset ¶ added in v1.5.0
func (m *RDSDiscoverResponse) Reset()
func (*RDSDiscoverResponse) String ¶ added in v1.5.0
func (m *RDSDiscoverResponse) String() string
type RDSInstance ¶ added in v1.5.0
type RDSInstance struct { Node *RDSNode `protobuf:"bytes,1,opt,name=node" json:"node,omitempty"` Service *RDSService `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"` }
func (*RDSInstance) Descriptor ¶ added in v1.5.0
func (*RDSInstance) Descriptor() ([]byte, []int)
func (*RDSInstance) GetNode ¶ added in v1.5.0
func (m *RDSInstance) GetNode() *RDSNode
func (*RDSInstance) GetService ¶ added in v1.5.0
func (m *RDSInstance) GetService() *RDSService
func (*RDSInstance) ProtoMessage ¶ added in v1.5.0
func (*RDSInstance) ProtoMessage()
func (*RDSInstance) Reset ¶ added in v1.5.0
func (m *RDSInstance) Reset()
func (*RDSInstance) String ¶ added in v1.5.0
func (m *RDSInstance) String() string
type RDSInstanceID ¶ added in v1.5.0
type RDSInstanceID struct { Region string `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` }
func (*RDSInstanceID) Descriptor ¶ added in v1.5.0
func (*RDSInstanceID) Descriptor() ([]byte, []int)
func (*RDSInstanceID) GetName ¶ added in v1.5.0
func (m *RDSInstanceID) GetName() string
func (*RDSInstanceID) GetRegion ¶ added in v1.5.0
func (m *RDSInstanceID) GetRegion() string
func (*RDSInstanceID) ProtoMessage ¶ added in v1.5.0
func (*RDSInstanceID) ProtoMessage()
func (*RDSInstanceID) Reset ¶ added in v1.5.0
func (m *RDSInstanceID) Reset()
func (*RDSInstanceID) String ¶ added in v1.5.0
func (m *RDSInstanceID) String() string
type RDSListRequest ¶ added in v1.5.0
type RDSListRequest struct { }
func (*RDSListRequest) Descriptor ¶ added in v1.5.0
func (*RDSListRequest) Descriptor() ([]byte, []int)
func (*RDSListRequest) ProtoMessage ¶ added in v1.5.0
func (*RDSListRequest) ProtoMessage()
func (*RDSListRequest) Reset ¶ added in v1.5.0
func (m *RDSListRequest) Reset()
func (*RDSListRequest) String ¶ added in v1.5.0
func (m *RDSListRequest) String() string
type RDSListResponse ¶ added in v1.5.0
type RDSListResponse struct {
Instances []*RDSInstance `protobuf:"bytes,1,rep,name=instances" json:"instances,omitempty"`
}
func (*RDSListResponse) Descriptor ¶ added in v1.5.0
func (*RDSListResponse) Descriptor() ([]byte, []int)
func (*RDSListResponse) GetInstances ¶ added in v1.5.0
func (m *RDSListResponse) GetInstances() []*RDSInstance
func (*RDSListResponse) ProtoMessage ¶ added in v1.5.0
func (*RDSListResponse) ProtoMessage()
func (*RDSListResponse) Reset ¶ added in v1.5.0
func (m *RDSListResponse) Reset()
func (*RDSListResponse) String ¶ added in v1.5.0
func (m *RDSListResponse) String() string
type RDSNode ¶ added in v1.5.0
type RDSNode struct { Region string `protobuf:"bytes,3,opt,name=region" json:"region,omitempty"` Name string `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"` }
func (*RDSNode) Descriptor ¶ added in v1.5.0
func (*RDSNode) ProtoMessage ¶ added in v1.5.0
func (*RDSNode) ProtoMessage()
type RDSRemoveRequest ¶ added in v1.5.0
type RDSRemoveRequest struct {
Id *RDSInstanceID `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}
func (*RDSRemoveRequest) Descriptor ¶ added in v1.5.0
func (*RDSRemoveRequest) Descriptor() ([]byte, []int)
func (*RDSRemoveRequest) GetId ¶ added in v1.5.0
func (m *RDSRemoveRequest) GetId() *RDSInstanceID
func (*RDSRemoveRequest) ProtoMessage ¶ added in v1.5.0
func (*RDSRemoveRequest) ProtoMessage()
func (*RDSRemoveRequest) Reset ¶ added in v1.5.0
func (m *RDSRemoveRequest) Reset()
func (*RDSRemoveRequest) String ¶ added in v1.5.0
func (m *RDSRemoveRequest) String() string
type RDSRemoveResponse ¶ added in v1.5.0
type RDSRemoveResponse struct { }
func (*RDSRemoveResponse) Descriptor ¶ added in v1.5.0
func (*RDSRemoveResponse) Descriptor() ([]byte, []int)
func (*RDSRemoveResponse) ProtoMessage ¶ added in v1.5.0
func (*RDSRemoveResponse) ProtoMessage()
func (*RDSRemoveResponse) Reset ¶ added in v1.5.0
func (m *RDSRemoveResponse) Reset()
func (*RDSRemoveResponse) String ¶ added in v1.5.0
func (m *RDSRemoveResponse) String() string
type RDSServer ¶ added in v1.5.0
type RDSServer interface { Discover(context.Context, *RDSDiscoverRequest) (*RDSDiscoverResponse, error) List(context.Context, *RDSListRequest) (*RDSListResponse, error) Add(context.Context, *RDSAddRequest) (*RDSAddResponse, error) Remove(context.Context, *RDSRemoveRequest) (*RDSRemoveResponse, error) }
type RDSService ¶ added in v1.5.0
type RDSService struct { Address string `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"` Port uint32 `protobuf:"varint,5,opt,name=port" json:"port,omitempty"` Engine string `protobuf:"bytes,6,opt,name=engine" json:"engine,omitempty"` EngineVersion string `protobuf:"bytes,7,opt,name=engine_version,json=engineVersion" json:"engine_version,omitempty"` }
func (*RDSService) Descriptor ¶ added in v1.5.0
func (*RDSService) Descriptor() ([]byte, []int)
func (*RDSService) GetAddress ¶ added in v1.5.0
func (m *RDSService) GetAddress() string
func (*RDSService) GetEngine ¶ added in v1.5.0
func (m *RDSService) GetEngine() string
func (*RDSService) GetEngineVersion ¶ added in v1.5.0
func (m *RDSService) GetEngineVersion() string
func (*RDSService) GetPort ¶ added in v1.5.0
func (m *RDSService) GetPort() uint32
func (*RDSService) ProtoMessage ¶ added in v1.5.0
func (*RDSService) ProtoMessage()
func (*RDSService) Reset ¶ added in v1.5.0
func (m *RDSService) Reset()
func (*RDSService) String ¶ added in v1.5.0
func (m *RDSService) String() string
type ScrapeConfig ¶
type ScrapeConfig struct { // The job name assigned to scraped metrics by default: "example-job" (required) JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"` // How frequently to scrape targets from this job: "10s" ScrapeInterval string `protobuf:"bytes,2,opt,name=scrape_interval,json=scrapeInterval" json:"scrape_interval,omitempty"` // Per-scrape timeout when scraping this job: "5s" ScrapeTimeout string `protobuf:"bytes,3,opt,name=scrape_timeout,json=scrapeTimeout" json:"scrape_timeout,omitempty"` // The HTTP resource path on which to fetch metrics from targets: "/metrics" MetricsPath string `protobuf:"bytes,4,opt,name=metrics_path,json=metricsPath" json:"metrics_path,omitempty"` // Configures the protocol scheme used for requests: "http" or "https" Scheme string `protobuf:"bytes,5,opt,name=scheme" json:"scheme,omitempty"` // Sets the `Authorization` header on every scrape request with the configured username and password BasicAuth *BasicAuth `protobuf:"bytes,6,opt,name=basic_auth,json=basicAuth" json:"basic_auth,omitempty"` // Configures the scrape request's TLS settings TlsConfig *TLSConfig `protobuf:"bytes,7,opt,name=tls_config,json=tlsConfig" json:"tls_config,omitempty"` // List of labeled statically configured targets for this job StaticConfigs []*StaticConfig `protobuf:"bytes,8,rep,name=static_configs,json=staticConfigs" json:"static_configs,omitempty"` }
func (*ScrapeConfig) Descriptor ¶
func (*ScrapeConfig) Descriptor() ([]byte, []int)
func (*ScrapeConfig) GetBasicAuth ¶
func (m *ScrapeConfig) GetBasicAuth() *BasicAuth
func (*ScrapeConfig) GetJobName ¶
func (m *ScrapeConfig) GetJobName() string
func (*ScrapeConfig) GetMetricsPath ¶
func (m *ScrapeConfig) GetMetricsPath() string
func (*ScrapeConfig) GetScheme ¶
func (m *ScrapeConfig) GetScheme() string
func (*ScrapeConfig) GetScrapeInterval ¶
func (m *ScrapeConfig) GetScrapeInterval() string
func (*ScrapeConfig) GetScrapeTimeout ¶
func (m *ScrapeConfig) GetScrapeTimeout() string
func (*ScrapeConfig) GetStaticConfigs ¶
func (m *ScrapeConfig) GetStaticConfigs() []*StaticConfig
func (*ScrapeConfig) GetTlsConfig ¶
func (m *ScrapeConfig) GetTlsConfig() *TLSConfig
func (*ScrapeConfig) ProtoMessage ¶
func (*ScrapeConfig) ProtoMessage()
func (*ScrapeConfig) Reset ¶
func (m *ScrapeConfig) Reset()
func (*ScrapeConfig) String ¶
func (m *ScrapeConfig) String() string
type ScrapeConfigsAddStaticTargetsRequest ¶
type ScrapeConfigsAddStaticTargetsRequest struct { JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"` // Hostnames or IPs followed by an optional port number: "1.2.3.4:9090" Targets []string `protobuf:"bytes,2,rep,name=targets" json:"targets,omitempty"` }
func (*ScrapeConfigsAddStaticTargetsRequest) Descriptor ¶
func (*ScrapeConfigsAddStaticTargetsRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsAddStaticTargetsRequest) GetJobName ¶
func (m *ScrapeConfigsAddStaticTargetsRequest) GetJobName() string
func (*ScrapeConfigsAddStaticTargetsRequest) GetTargets ¶
func (m *ScrapeConfigsAddStaticTargetsRequest) GetTargets() []string
func (*ScrapeConfigsAddStaticTargetsRequest) ProtoMessage ¶
func (*ScrapeConfigsAddStaticTargetsRequest) ProtoMessage()
func (*ScrapeConfigsAddStaticTargetsRequest) Reset ¶
func (m *ScrapeConfigsAddStaticTargetsRequest) Reset()
func (*ScrapeConfigsAddStaticTargetsRequest) String ¶
func (m *ScrapeConfigsAddStaticTargetsRequest) String() string
type ScrapeConfigsAddStaticTargetsResponse ¶
type ScrapeConfigsAddStaticTargetsResponse struct { }
func (*ScrapeConfigsAddStaticTargetsResponse) Descriptor ¶
func (*ScrapeConfigsAddStaticTargetsResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsAddStaticTargetsResponse) ProtoMessage ¶
func (*ScrapeConfigsAddStaticTargetsResponse) ProtoMessage()
func (*ScrapeConfigsAddStaticTargetsResponse) Reset ¶
func (m *ScrapeConfigsAddStaticTargetsResponse) Reset()
func (*ScrapeConfigsAddStaticTargetsResponse) String ¶
func (m *ScrapeConfigsAddStaticTargetsResponse) String() string
type ScrapeConfigsClient ¶
type ScrapeConfigsClient interface { // List returns all scrape configs. List(ctx context.Context, in *ScrapeConfigsListRequest, opts ...grpc.CallOption) (*ScrapeConfigsListResponse, error) // Get returns a scrape config by job name. // Errors: NotFound(5) if no such scrape config is present. Get(ctx context.Context, in *ScrapeConfigsGetRequest, opts ...grpc.CallOption) (*ScrapeConfigsGetResponse, error) // Create creates a new scrape config. // Errors: InvalidArgument(3) if some argument is not valid, // AlreadyExists(6) if scrape config with that job name is already present. Create(ctx context.Context, in *ScrapeConfigsCreateRequest, opts ...grpc.CallOption) (*ScrapeConfigsCreateResponse, error) // Delete removes existing scrape config by job name. // Errors: NotFound(5) if no such scrape config is present. Delete(ctx context.Context, in *ScrapeConfigsDeleteRequest, opts ...grpc.CallOption) (*ScrapeConfigsDeleteResponse, error) AddStaticTargets(ctx context.Context, in *ScrapeConfigsAddStaticTargetsRequest, opts ...grpc.CallOption) (*ScrapeConfigsAddStaticTargetsResponse, error) RemoveStaticTargets(ctx context.Context, in *ScrapeConfigsRemoveStaticTargetsRequest, opts ...grpc.CallOption) (*ScrapeConfigsRemoveStaticTargetsResponse, error) }
func NewScrapeConfigsClient ¶
func NewScrapeConfigsClient(cc *grpc.ClientConn) ScrapeConfigsClient
type ScrapeConfigsCreateRequest ¶
type ScrapeConfigsCreateRequest struct {
ScrapeConfig *ScrapeConfig `protobuf:"bytes,1,opt,name=scrape_config,json=scrapeConfig" json:"scrape_config,omitempty"`
}
func (*ScrapeConfigsCreateRequest) Descriptor ¶
func (*ScrapeConfigsCreateRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsCreateRequest) GetScrapeConfig ¶
func (m *ScrapeConfigsCreateRequest) GetScrapeConfig() *ScrapeConfig
func (*ScrapeConfigsCreateRequest) ProtoMessage ¶
func (*ScrapeConfigsCreateRequest) ProtoMessage()
func (*ScrapeConfigsCreateRequest) Reset ¶
func (m *ScrapeConfigsCreateRequest) Reset()
func (*ScrapeConfigsCreateRequest) String ¶
func (m *ScrapeConfigsCreateRequest) String() string
type ScrapeConfigsCreateResponse ¶
type ScrapeConfigsCreateResponse struct { }
func (*ScrapeConfigsCreateResponse) Descriptor ¶
func (*ScrapeConfigsCreateResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsCreateResponse) ProtoMessage ¶
func (*ScrapeConfigsCreateResponse) ProtoMessage()
func (*ScrapeConfigsCreateResponse) Reset ¶
func (m *ScrapeConfigsCreateResponse) Reset()
func (*ScrapeConfigsCreateResponse) String ¶
func (m *ScrapeConfigsCreateResponse) String() string
type ScrapeConfigsDeleteRequest ¶
type ScrapeConfigsDeleteRequest struct {
JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"`
}
func (*ScrapeConfigsDeleteRequest) Descriptor ¶
func (*ScrapeConfigsDeleteRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsDeleteRequest) GetJobName ¶
func (m *ScrapeConfigsDeleteRequest) GetJobName() string
func (*ScrapeConfigsDeleteRequest) ProtoMessage ¶
func (*ScrapeConfigsDeleteRequest) ProtoMessage()
func (*ScrapeConfigsDeleteRequest) Reset ¶
func (m *ScrapeConfigsDeleteRequest) Reset()
func (*ScrapeConfigsDeleteRequest) String ¶
func (m *ScrapeConfigsDeleteRequest) String() string
type ScrapeConfigsDeleteResponse ¶
type ScrapeConfigsDeleteResponse struct { }
func (*ScrapeConfigsDeleteResponse) Descriptor ¶
func (*ScrapeConfigsDeleteResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsDeleteResponse) ProtoMessage ¶
func (*ScrapeConfigsDeleteResponse) ProtoMessage()
func (*ScrapeConfigsDeleteResponse) Reset ¶
func (m *ScrapeConfigsDeleteResponse) Reset()
func (*ScrapeConfigsDeleteResponse) String ¶
func (m *ScrapeConfigsDeleteResponse) String() string
type ScrapeConfigsGetRequest ¶
type ScrapeConfigsGetRequest struct {
JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"`
}
func (*ScrapeConfigsGetRequest) Descriptor ¶
func (*ScrapeConfigsGetRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsGetRequest) GetJobName ¶
func (m *ScrapeConfigsGetRequest) GetJobName() string
func (*ScrapeConfigsGetRequest) ProtoMessage ¶
func (*ScrapeConfigsGetRequest) ProtoMessage()
func (*ScrapeConfigsGetRequest) Reset ¶
func (m *ScrapeConfigsGetRequest) Reset()
func (*ScrapeConfigsGetRequest) String ¶
func (m *ScrapeConfigsGetRequest) String() string
type ScrapeConfigsGetResponse ¶
type ScrapeConfigsGetResponse struct {
ScrapeConfig *ScrapeConfig `protobuf:"bytes,1,opt,name=scrape_config,json=scrapeConfig" json:"scrape_config,omitempty"`
}
func (*ScrapeConfigsGetResponse) Descriptor ¶
func (*ScrapeConfigsGetResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsGetResponse) GetScrapeConfig ¶
func (m *ScrapeConfigsGetResponse) GetScrapeConfig() *ScrapeConfig
func (*ScrapeConfigsGetResponse) ProtoMessage ¶
func (*ScrapeConfigsGetResponse) ProtoMessage()
func (*ScrapeConfigsGetResponse) Reset ¶
func (m *ScrapeConfigsGetResponse) Reset()
func (*ScrapeConfigsGetResponse) String ¶
func (m *ScrapeConfigsGetResponse) String() string
type ScrapeConfigsListRequest ¶
type ScrapeConfigsListRequest struct { }
func (*ScrapeConfigsListRequest) Descriptor ¶
func (*ScrapeConfigsListRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsListRequest) ProtoMessage ¶
func (*ScrapeConfigsListRequest) ProtoMessage()
func (*ScrapeConfigsListRequest) Reset ¶
func (m *ScrapeConfigsListRequest) Reset()
func (*ScrapeConfigsListRequest) String ¶
func (m *ScrapeConfigsListRequest) String() string
type ScrapeConfigsListResponse ¶
type ScrapeConfigsListResponse struct {
ScrapeConfigs []*ScrapeConfig `protobuf:"bytes,1,rep,name=scrape_configs,json=scrapeConfigs" json:"scrape_configs,omitempty"`
}
func (*ScrapeConfigsListResponse) Descriptor ¶
func (*ScrapeConfigsListResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsListResponse) GetScrapeConfigs ¶
func (m *ScrapeConfigsListResponse) GetScrapeConfigs() []*ScrapeConfig
func (*ScrapeConfigsListResponse) ProtoMessage ¶
func (*ScrapeConfigsListResponse) ProtoMessage()
func (*ScrapeConfigsListResponse) Reset ¶
func (m *ScrapeConfigsListResponse) Reset()
func (*ScrapeConfigsListResponse) String ¶
func (m *ScrapeConfigsListResponse) String() string
type ScrapeConfigsRemoveStaticTargetsRequest ¶
type ScrapeConfigsRemoveStaticTargetsRequest struct { JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"` // Hostnames or IPs followed by an optional port number: "1.2.3.4:9090" Targets []string `protobuf:"bytes,2,rep,name=targets" json:"targets,omitempty"` }
func (*ScrapeConfigsRemoveStaticTargetsRequest) Descriptor ¶
func (*ScrapeConfigsRemoveStaticTargetsRequest) Descriptor() ([]byte, []int)
func (*ScrapeConfigsRemoveStaticTargetsRequest) GetJobName ¶
func (m *ScrapeConfigsRemoveStaticTargetsRequest) GetJobName() string
func (*ScrapeConfigsRemoveStaticTargetsRequest) GetTargets ¶
func (m *ScrapeConfigsRemoveStaticTargetsRequest) GetTargets() []string
func (*ScrapeConfigsRemoveStaticTargetsRequest) ProtoMessage ¶
func (*ScrapeConfigsRemoveStaticTargetsRequest) ProtoMessage()
func (*ScrapeConfigsRemoveStaticTargetsRequest) Reset ¶
func (m *ScrapeConfigsRemoveStaticTargetsRequest) Reset()
func (*ScrapeConfigsRemoveStaticTargetsRequest) String ¶
func (m *ScrapeConfigsRemoveStaticTargetsRequest) String() string
type ScrapeConfigsRemoveStaticTargetsResponse ¶
type ScrapeConfigsRemoveStaticTargetsResponse struct { }
func (*ScrapeConfigsRemoveStaticTargetsResponse) Descriptor ¶
func (*ScrapeConfigsRemoveStaticTargetsResponse) Descriptor() ([]byte, []int)
func (*ScrapeConfigsRemoveStaticTargetsResponse) ProtoMessage ¶
func (*ScrapeConfigsRemoveStaticTargetsResponse) ProtoMessage()
func (*ScrapeConfigsRemoveStaticTargetsResponse) Reset ¶
func (m *ScrapeConfigsRemoveStaticTargetsResponse) Reset()
func (*ScrapeConfigsRemoveStaticTargetsResponse) String ¶
func (m *ScrapeConfigsRemoveStaticTargetsResponse) String() string
type ScrapeConfigsServer ¶
type ScrapeConfigsServer interface { // List returns all scrape configs. List(context.Context, *ScrapeConfigsListRequest) (*ScrapeConfigsListResponse, error) // Get returns a scrape config by job name. // Errors: NotFound(5) if no such scrape config is present. Get(context.Context, *ScrapeConfigsGetRequest) (*ScrapeConfigsGetResponse, error) // Create creates a new scrape config. // Errors: InvalidArgument(3) if some argument is not valid, // AlreadyExists(6) if scrape config with that job name is already present. Create(context.Context, *ScrapeConfigsCreateRequest) (*ScrapeConfigsCreateResponse, error) // Delete removes existing scrape config by job name. // Errors: NotFound(5) if no such scrape config is present. Delete(context.Context, *ScrapeConfigsDeleteRequest) (*ScrapeConfigsDeleteResponse, error) AddStaticTargets(context.Context, *ScrapeConfigsAddStaticTargetsRequest) (*ScrapeConfigsAddStaticTargetsResponse, error) RemoveStaticTargets(context.Context, *ScrapeConfigsRemoveStaticTargetsRequest) (*ScrapeConfigsRemoveStaticTargetsResponse, error) }
type StaticConfig ¶
type StaticConfig struct { // Hostnames or IPs followed by an optional port number: "1.2.3.4:9090" Targets []string `protobuf:"bytes,1,rep,name=targets" json:"targets,omitempty"` // Labels assigned to all metrics scraped from the targets Labels []*LabelPair `protobuf:"bytes,2,rep,name=labels" json:"labels,omitempty"` }
func (*StaticConfig) Descriptor ¶
func (*StaticConfig) Descriptor() ([]byte, []int)
func (*StaticConfig) GetLabels ¶
func (m *StaticConfig) GetLabels() []*LabelPair
func (*StaticConfig) GetTargets ¶
func (m *StaticConfig) GetTargets() []string
func (*StaticConfig) ProtoMessage ¶
func (*StaticConfig) ProtoMessage()
func (*StaticConfig) Reset ¶
func (m *StaticConfig) Reset()
func (*StaticConfig) String ¶
func (m *StaticConfig) String() string
type TLSConfig ¶
type TLSConfig struct {
InsecureSkipVerify bool `protobuf:"varint,5,opt,name=insecure_skip_verify,json=insecureSkipVerify" json:"insecure_skip_verify,omitempty"`
}
func (*TLSConfig) Descriptor ¶
func (*TLSConfig) GetInsecureSkipVerify ¶
func (*TLSConfig) ProtoMessage ¶
func (*TLSConfig) ProtoMessage()