api

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2018 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

annotations.proto
base.proto
demo.proto
logs.proto
rds.proto
scrape_configs.proto

It has these top-level messages:

AnnotationsCreateRequest
AnnotationsCreateResponse
BaseVersionRequest
BaseVersionResponse
DemoErrorRequest
DemoErrorResponse
Log
LogsAllRequest
LogsAllResponse
RDSNode
RDSService
RDSInstanceID
RDSInstance
RDSDiscoverRequest
RDSDiscoverResponse
RDSListRequest
RDSListResponse
RDSAddRequest
RDSAddResponse
RDSRemoveRequest
RDSRemoveResponse
LabelPair
StaticConfig
BasicAuth
TLSConfig
ScrapeConfig
ScrapeTargetHealth
ScrapeConfigsListRequest
ScrapeConfigsListResponse
ScrapeConfigsGetRequest
ScrapeConfigsGetResponse
ScrapeConfigsCreateRequest
ScrapeConfigsCreateResponse
ScrapeConfigsUpdateRequest
ScrapeConfigsUpdateResponse
ScrapeConfigsDeleteRequest
ScrapeConfigsDeleteResponse

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.

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

Constants

This section is empty.

Variables

View Source
var ScrapeTargetHealth_Health_name = map[int32]string{
	0: "UNKNOWN",
	1: "DOWN",
	2: "UP",
}
View Source
var ScrapeTargetHealth_Health_value = map[string]int32{
	"UNKNOWN": 0,
	"DOWN":    1,
	"UP":      2,
}

Functions

func RegisterAnnotationsHandler added in v1.14.1

func RegisterAnnotationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAnnotationsHandler registers the http handlers for service Annotations to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAnnotationsHandlerClient added in v1.14.1

func RegisterAnnotationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnnotationsClient) error

RegisterAnnotationsHandler registers the http handlers for service Annotations to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AnnotationsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AnnotationsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AnnotationsClient" to call the correct interceptors.

func RegisterAnnotationsHandlerFromEndpoint added in v1.14.1

func RegisterAnnotationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAnnotationsHandlerFromEndpoint is same as RegisterAnnotationsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAnnotationsServer added in v1.14.1

func RegisterAnnotationsServer(s *grpc.Server, srv AnnotationsServer)

func RegisterBaseHandler

func RegisterBaseHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterBaseHandler registers the http handlers for service Base to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterBaseHandlerClient

func RegisterBaseHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BaseClient) error

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

func RegisterDemoHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDemoHandler registers the http handlers for service Demo to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDemoHandlerClient

func RegisterDemoHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DemoClient) error

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 RegisterLogsHandler added in v1.14.1

func RegisterLogsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLogsHandler registers the http handlers for service Logs to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLogsHandlerClient added in v1.14.1

func RegisterLogsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogsClient) error

RegisterLogsHandler registers the http handlers for service Logs to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LogsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LogsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LogsClient" to call the correct interceptors.

func RegisterLogsHandlerFromEndpoint added in v1.14.1

func RegisterLogsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLogsHandlerFromEndpoint is same as RegisterLogsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLogsServer added in v1.14.1

func RegisterLogsServer(s *grpc.Server, srv LogsServer)

func RegisterRDSHandler added in v1.5.0

func RegisterRDSHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

func RegisterRDSHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RDSClient) error

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 RegisterRDSServer(s *grpc.Server, srv RDSServer)

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 AnnotationsClient added in v1.14.1

type AnnotationsClient interface {
	Create(ctx context.Context, in *AnnotationsCreateRequest, opts ...grpc.CallOption) (*AnnotationsCreateResponse, error)
}

func NewAnnotationsClient added in v1.14.1

func NewAnnotationsClient(cc *grpc.ClientConn) AnnotationsClient

type AnnotationsCreateRequest added in v1.14.1

type AnnotationsCreateRequest struct {
	Tags []string `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
	Text string   `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
}

func (*AnnotationsCreateRequest) Descriptor added in v1.14.1

func (*AnnotationsCreateRequest) Descriptor() ([]byte, []int)

func (*AnnotationsCreateRequest) GetTags added in v1.14.1

func (m *AnnotationsCreateRequest) GetTags() []string

func (*AnnotationsCreateRequest) GetText added in v1.14.1

func (m *AnnotationsCreateRequest) GetText() string

func (*AnnotationsCreateRequest) ProtoMessage added in v1.14.1

func (*AnnotationsCreateRequest) ProtoMessage()

func (*AnnotationsCreateRequest) Reset added in v1.14.1

func (m *AnnotationsCreateRequest) Reset()

func (*AnnotationsCreateRequest) String added in v1.14.1

func (m *AnnotationsCreateRequest) String() string

type AnnotationsCreateResponse added in v1.14.1

type AnnotationsCreateResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

func (*AnnotationsCreateResponse) Descriptor added in v1.14.1

func (*AnnotationsCreateResponse) Descriptor() ([]byte, []int)

func (*AnnotationsCreateResponse) GetMessage added in v1.14.1

func (m *AnnotationsCreateResponse) GetMessage() string

func (*AnnotationsCreateResponse) ProtoMessage added in v1.14.1

func (*AnnotationsCreateResponse) ProtoMessage()

func (*AnnotationsCreateResponse) Reset added in v1.14.1

func (m *AnnotationsCreateResponse) Reset()

func (*AnnotationsCreateResponse) String added in v1.14.1

func (m *AnnotationsCreateResponse) String() string

type AnnotationsServer added in v1.14.1

type AnnotationsServer interface {
	Create(context.Context, *AnnotationsCreateRequest) (*AnnotationsCreateResponse, error)
}

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) Descriptor() ([]byte, []int)

func (*BasicAuth) GetPassword

func (m *BasicAuth) GetPassword() string

func (*BasicAuth) GetUsername

func (m *BasicAuth) GetUsername() string

func (*BasicAuth) ProtoMessage

func (*BasicAuth) ProtoMessage()

func (*BasicAuth) Reset

func (m *BasicAuth) Reset()

func (*BasicAuth) String

func (m *BasicAuth) String() string

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) Descriptor() ([]byte, []int)

func (*LabelPair) GetName

func (m *LabelPair) GetName() string

func (*LabelPair) GetValue

func (m *LabelPair) GetValue() string

func (*LabelPair) ProtoMessage

func (*LabelPair) ProtoMessage()

func (*LabelPair) Reset

func (m *LabelPair) Reset()

func (*LabelPair) String

func (m *LabelPair) String() string

type Log added in v1.14.1

type Log struct {
	// Last lines of log file
	Lines []string `protobuf:"bytes,1,rep,name=lines" json:"lines,omitempty"`
}

func (*Log) Descriptor added in v1.14.1

func (*Log) Descriptor() ([]byte, []int)

func (*Log) GetLines added in v1.14.1

func (m *Log) GetLines() []string

func (*Log) ProtoMessage added in v1.14.1

func (*Log) ProtoMessage()

func (*Log) Reset added in v1.14.1

func (m *Log) Reset()

func (*Log) String added in v1.14.1

func (m *Log) String() string

type LogsAllRequest added in v1.14.1

type LogsAllRequest struct {
}

func (*LogsAllRequest) Descriptor added in v1.14.1

func (*LogsAllRequest) Descriptor() ([]byte, []int)

func (*LogsAllRequest) ProtoMessage added in v1.14.1

func (*LogsAllRequest) ProtoMessage()

func (*LogsAllRequest) Reset added in v1.14.1

func (m *LogsAllRequest) Reset()

func (*LogsAllRequest) String added in v1.14.1

func (m *LogsAllRequest) String() string

type LogsAllResponse added in v1.14.1

type LogsAllResponse struct {
	// Maps log file name to content
	Logs map[string]*Log `` /* 128-byte string literal not displayed */
}

func (*LogsAllResponse) Descriptor added in v1.14.1

func (*LogsAllResponse) Descriptor() ([]byte, []int)

func (*LogsAllResponse) GetLogs added in v1.14.1

func (m *LogsAllResponse) GetLogs() map[string]*Log

func (*LogsAllResponse) ProtoMessage added in v1.14.1

func (*LogsAllResponse) ProtoMessage()

func (*LogsAllResponse) Reset added in v1.14.1

func (m *LogsAllResponse) Reset()

func (*LogsAllResponse) String added in v1.14.1

func (m *LogsAllResponse) String() string

type LogsClient added in v1.14.1

type LogsClient interface {
	// All returns last lines of all log files.
	All(ctx context.Context, in *LogsAllRequest, opts ...grpc.CallOption) (*LogsAllResponse, error)
}

func NewLogsClient added in v1.14.1

func NewLogsClient(cc *grpc.ClientConn) LogsClient

type LogsServer added in v1.14.1

type LogsServer interface {
	// All returns last lines of all log files.
	All(context.Context, *LogsAllRequest) (*LogsAllResponse, error)
}

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) Descriptor() ([]byte, []int)

func (*RDSNode) GetName added in v1.5.0

func (m *RDSNode) GetName() string

func (*RDSNode) GetRegion added in v1.5.0

func (m *RDSNode) GetRegion() string

func (*RDSNode) ProtoMessage added in v1.5.0

func (*RDSNode) ProtoMessage()

func (*RDSNode) Reset added in v1.5.0

func (m *RDSNode) Reset()

func (*RDSNode) String added in v1.5.0

func (m *RDSNode) String() string

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 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 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,
	// FailedPrecondition(9) if reachability check was requested and some scrape target can't be reached.
	Create(ctx context.Context, in *ScrapeConfigsCreateRequest, opts ...grpc.CallOption) (*ScrapeConfigsCreateResponse, error)
	// Update updates existing scrape config by job name.
	// Errors: InvalidArgument(3) if some argument is not valid,
	// NotFound(5) if no such scrape config is present,
	// FailedPrecondition(9) if reachability check was requested and some scrape target can't be reached.
	Update(ctx context.Context, in *ScrapeConfigsUpdateRequest, opts ...grpc.CallOption) (*ScrapeConfigsUpdateResponse, 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)
}

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"`
	// Check that added targets can be scraped from PMM Server
	CheckReachability bool `protobuf:"varint,2,opt,name=check_reachability,json=checkReachability" json:"check_reachability,omitempty"`
}

func (*ScrapeConfigsCreateRequest) Descriptor

func (*ScrapeConfigsCreateRequest) Descriptor() ([]byte, []int)

func (*ScrapeConfigsCreateRequest) GetCheckReachability added in v1.7.0

func (m *ScrapeConfigsCreateRequest) GetCheckReachability() bool

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"`
	// Scrape targets health for this scrape job
	ScrapeTargetsHealth []*ScrapeTargetHealth `protobuf:"bytes,2,rep,name=scrape_targets_health,json=scrapeTargetsHealth" json:"scrape_targets_health,omitempty"`
}

func (*ScrapeConfigsGetResponse) Descriptor

func (*ScrapeConfigsGetResponse) Descriptor() ([]byte, []int)

func (*ScrapeConfigsGetResponse) GetScrapeConfig

func (m *ScrapeConfigsGetResponse) GetScrapeConfig() *ScrapeConfig

func (*ScrapeConfigsGetResponse) GetScrapeTargetsHealth added in v1.7.0

func (m *ScrapeConfigsGetResponse) GetScrapeTargetsHealth() []*ScrapeTargetHealth

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"`
	// Scrape targets health for all managed scrape jobs
	ScrapeTargetsHealth []*ScrapeTargetHealth `protobuf:"bytes,2,rep,name=scrape_targets_health,json=scrapeTargetsHealth" json:"scrape_targets_health,omitempty"`
}

func (*ScrapeConfigsListResponse) Descriptor

func (*ScrapeConfigsListResponse) Descriptor() ([]byte, []int)

func (*ScrapeConfigsListResponse) GetScrapeConfigs

func (m *ScrapeConfigsListResponse) GetScrapeConfigs() []*ScrapeConfig

func (*ScrapeConfigsListResponse) GetScrapeTargetsHealth added in v1.7.0

func (m *ScrapeConfigsListResponse) GetScrapeTargetsHealth() []*ScrapeTargetHealth

func (*ScrapeConfigsListResponse) ProtoMessage

func (*ScrapeConfigsListResponse) ProtoMessage()

func (*ScrapeConfigsListResponse) Reset

func (m *ScrapeConfigsListResponse) Reset()

func (*ScrapeConfigsListResponse) String

func (m *ScrapeConfigsListResponse) 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,
	// FailedPrecondition(9) if reachability check was requested and some scrape target can't be reached.
	Create(context.Context, *ScrapeConfigsCreateRequest) (*ScrapeConfigsCreateResponse, error)
	// Update updates existing scrape config by job name.
	// Errors: InvalidArgument(3) if some argument is not valid,
	// NotFound(5) if no such scrape config is present,
	// FailedPrecondition(9) if reachability check was requested and some scrape target can't be reached.
	Update(context.Context, *ScrapeConfigsUpdateRequest) (*ScrapeConfigsUpdateResponse, 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)
}

type ScrapeConfigsUpdateRequest added in v1.7.0

type ScrapeConfigsUpdateRequest struct {
	ScrapeConfig *ScrapeConfig `protobuf:"bytes,1,opt,name=scrape_config,json=scrapeConfig" json:"scrape_config,omitempty"`
	// Check that added targets can be scraped from PMM Server
	CheckReachability bool `protobuf:"varint,2,opt,name=check_reachability,json=checkReachability" json:"check_reachability,omitempty"`
}

func (*ScrapeConfigsUpdateRequest) Descriptor added in v1.7.0

func (*ScrapeConfigsUpdateRequest) Descriptor() ([]byte, []int)

func (*ScrapeConfigsUpdateRequest) GetCheckReachability added in v1.7.0

func (m *ScrapeConfigsUpdateRequest) GetCheckReachability() bool

func (*ScrapeConfigsUpdateRequest) GetScrapeConfig added in v1.7.0

func (m *ScrapeConfigsUpdateRequest) GetScrapeConfig() *ScrapeConfig

func (*ScrapeConfigsUpdateRequest) ProtoMessage added in v1.7.0

func (*ScrapeConfigsUpdateRequest) ProtoMessage()

func (*ScrapeConfigsUpdateRequest) Reset added in v1.7.0

func (m *ScrapeConfigsUpdateRequest) Reset()

func (*ScrapeConfigsUpdateRequest) String added in v1.7.0

func (m *ScrapeConfigsUpdateRequest) String() string

type ScrapeConfigsUpdateResponse added in v1.7.0

type ScrapeConfigsUpdateResponse struct {
}

func (*ScrapeConfigsUpdateResponse) Descriptor added in v1.7.0

func (*ScrapeConfigsUpdateResponse) Descriptor() ([]byte, []int)

func (*ScrapeConfigsUpdateResponse) ProtoMessage added in v1.7.0

func (*ScrapeConfigsUpdateResponse) ProtoMessage()

func (*ScrapeConfigsUpdateResponse) Reset added in v1.7.0

func (m *ScrapeConfigsUpdateResponse) Reset()

func (*ScrapeConfigsUpdateResponse) String added in v1.7.0

func (m *ScrapeConfigsUpdateResponse) String() string

type ScrapeTargetHealth added in v1.7.0

type ScrapeTargetHealth struct {
	// Original scrape job name
	JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName" json:"job_name,omitempty"`
	// "job" label value, may be different from job_name due to relabeling
	Job string `protobuf:"bytes,2,opt,name=job" json:"job,omitempty"`
	// Original target
	Target string `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
	// "instance" label value, may be different from target due to relabeling
	Instance string                    `protobuf:"bytes,4,opt,name=instance" json:"instance,omitempty"`
	Health   ScrapeTargetHealth_Health `protobuf:"varint,5,opt,name=health,enum=api.ScrapeTargetHealth_Health" json:"health,omitempty"`
}

ScrapeTargetHealth represents Prometheus scrape target health: unknown, down, or up.

func (*ScrapeTargetHealth) Descriptor added in v1.7.0

func (*ScrapeTargetHealth) Descriptor() ([]byte, []int)

func (*ScrapeTargetHealth) GetHealth added in v1.7.0

func (*ScrapeTargetHealth) GetInstance added in v1.7.0

func (m *ScrapeTargetHealth) GetInstance() string

func (*ScrapeTargetHealth) GetJob added in v1.7.0

func (m *ScrapeTargetHealth) GetJob() string

func (*ScrapeTargetHealth) GetJobName added in v1.7.0

func (m *ScrapeTargetHealth) GetJobName() string

func (*ScrapeTargetHealth) GetTarget added in v1.7.0

func (m *ScrapeTargetHealth) GetTarget() string

func (*ScrapeTargetHealth) ProtoMessage added in v1.7.0

func (*ScrapeTargetHealth) ProtoMessage()

func (*ScrapeTargetHealth) Reset added in v1.7.0

func (m *ScrapeTargetHealth) Reset()

func (*ScrapeTargetHealth) String added in v1.7.0

func (m *ScrapeTargetHealth) String() string

type ScrapeTargetHealth_Health added in v1.7.0

type ScrapeTargetHealth_Health int32

Target health : unknown, down, or up.

const (
	ScrapeTargetHealth_UNKNOWN ScrapeTargetHealth_Health = 0
	ScrapeTargetHealth_DOWN    ScrapeTargetHealth_Health = 1
	ScrapeTargetHealth_UP      ScrapeTargetHealth_Health = 2
)

func (ScrapeTargetHealth_Health) EnumDescriptor added in v1.7.0

func (ScrapeTargetHealth_Health) EnumDescriptor() ([]byte, []int)

func (ScrapeTargetHealth_Health) String added in v1.7.0

func (x ScrapeTargetHealth_Health) String() string

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) Descriptor() ([]byte, []int)

func (*TLSConfig) GetInsecureSkipVerify

func (m *TLSConfig) GetInsecureSkipVerify() bool

func (*TLSConfig) ProtoMessage

func (*TLSConfig) ProtoMessage()

func (*TLSConfig) Reset

func (m *TLSConfig) Reset()

func (*TLSConfig) String

func (m *TLSConfig) String() string

Directories

Path Synopsis
swagger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL