Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectorConfiguration ¶
type CollectorConfiguration struct { // PodSelector and NodeSelector are used to only match with those resources that real-time pipeline needed PodSelector labels.Selector NodeSelector labels.Selector SyncInterval time.Duration // ShardNum is used to indicate which shard splits current collector will be responsible for // todo: currently, we don't support to ShardNum to be set > 1 ShardNum int // CollectorName is used to switch from different collector implementations. CollectorName string // CredentialPath is the path where the credential files should be in. Which and how many files should be in it // depends on the authentication method. For now, we only support basic auth,so there should be two files with name // username and password. CredentialPath string }
func NewCollectorConfiguration ¶
func NewCollectorConfiguration() *CollectorConfiguration
type CustomMetricConfiguration ¶
type CustomMetricConfiguration struct { WorkMode []string *MockConfiguration *CollectorConfiguration *StoreConfiguration *ProviderConfiguration }
func NewCustomMetricConfiguration ¶
func NewCustomMetricConfiguration() *CustomMetricConfiguration
type GenericMetricConfiguration ¶
type GenericMetricConfiguration struct { // leaderElection defines the configuration of leader election client. LeaderElection componentbaseconfig.LeaderElectionConfiguration OutOfDataPeriod time.Duration }
func NewGenericMetricConfiguration ¶
func NewGenericMetricConfiguration() *GenericMetricConfiguration
type MockConfiguration ¶ added in v0.4.0
func NewMockConfiguration ¶ added in v0.4.0
func NewMockConfiguration() *MockConfiguration
type ProviderConfiguration ¶
type ProviderConfiguration struct {
Adapter *basecmd.AdapterBase
}
func NewProviderConfiguration ¶
func NewProviderConfiguration() *ProviderConfiguration
type StoreConfiguration ¶
type StoreConfiguration struct { StoreName string GCPeriod time.Duration PurgePeriod time.Duration IndexLabelKeys []string StoreServerShardCount int StoreServerReplicaTotal int *generic.ServiceDiscoveryConf }
func NewStoreConfiguration ¶
func NewStoreConfiguration() *StoreConfiguration
Click to show internal directories.
Click to hide internal directories.