Documentation ¶
Index ¶
Constants ¶
View Source
const ( SectionKey = "collectd" SectionMappedKey = "socket_listener" )
"collectd" : { "service_address": "udp://127.0.0.1:25826", "name_prefix": "collectd_", "collectd_auth_file": "/etc/collectd/auth_file", "collectd_security_level": "encrypt", "collectd_typesdb": ["/usr/share/collectd/types.db"], "metrics_aggregation_interval": 60 }
View Source
const SectionKey_AuthFile = "collectd_auth_file"
View Source
const SectionKey_DataFormat = "data_format"
View Source
const SectionKey_MetricsAggregationInterval = "metrics_aggregation_interval"
View Source
const SectionKey_NamePrefix = "name_prefix"
View Source
const SectionKey_SecurityLevel = "collectd_security_level"
View Source
const SectionKey_ServiceAddress = "service_address"
View Source
const SectionKey_TypesDB = "collectd_typesdb"
View Source
const SectionkeyDeploymentEnvironment = "deployment.environment"
View Source
const SectionkeyServicename = "service.name"
Variables ¶
View Source
var ChildRule = map[string]translator.Rule{}
Functions ¶
func GetCurPath ¶
func GetCurPath() string
func RegisterRule ¶
func RegisterRule(fieldname string, r translator.Rule)
Types ¶
type DeploymentEnvironment ¶ added in v1.300049.0
type DeploymentEnvironment struct { }
func (*DeploymentEnvironment) ApplyRule ¶ added in v1.300049.0
func (obj *DeploymentEnvironment) ApplyRule(input interface{}) (string, interface{})
type MetricsAggregationInterval ¶
type MetricsAggregationInterval struct { }
func (*MetricsAggregationInterval) ApplyRule ¶
func (obj *MetricsAggregationInterval) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type NamePrefix ¶
type NamePrefix struct { }
func (*NamePrefix) ApplyRule ¶
func (obj *NamePrefix) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type SecurityLevel ¶
type SecurityLevel struct { }
func (*SecurityLevel) ApplyRule ¶
func (obj *SecurityLevel) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type ServiceAddress ¶
type ServiceAddress struct { }
func (*ServiceAddress) ApplyRule ¶
func (obj *ServiceAddress) ApplyRule(input interface{}) (returnKey string, returnVal interface{})
type ServiceName ¶ added in v1.300049.0
type ServiceName struct { }
func (*ServiceName) ApplyRule ¶ added in v1.300049.0
func (obj *ServiceName) ApplyRule(input interface{}) (string, interface{})
Click to show internal directories.
Click to hide internal directories.