Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "heroku"
Variables ¶
View Source
var DefaultArguments = Config{ ResourceAttributes: ResourceAttributesConfig{ CloudProvider: rac.ResourceAttributeConfig{Enabled: true}, HerokuAppID: rac.ResourceAttributeConfig{Enabled: true}, HerokuDynoID: rac.ResourceAttributeConfig{Enabled: true}, HerokuReleaseCommit: rac.ResourceAttributeConfig{Enabled: true}, HerokuReleaseCreationTimestamp: rac.ResourceAttributeConfig{Enabled: true}, ServiceInstanceID: rac.ResourceAttributeConfig{Enabled: true}, ServiceName: rac.ResourceAttributeConfig{Enabled: true}, ServiceVersion: rac.ResourceAttributeConfig{Enabled: true}, }, }
DefaultArguments holds default settings for Config.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ResourceAttributes ResourceAttributesConfig `river:"resource_attributes,block,optional"`
}
func (*Config) SetToDefault ¶
func (args *Config) SetToDefault()
SetToDefault implements river.Defaulter.
type ResourceAttributesConfig ¶
type ResourceAttributesConfig struct { CloudProvider rac.ResourceAttributeConfig `river:"cloud.provider,block,optional"` HerokuAppID rac.ResourceAttributeConfig `river:"heroku.app.id,block,optional"` HerokuDynoID rac.ResourceAttributeConfig `river:"heroku.dyno.id,block,optional"` HerokuReleaseCommit rac.ResourceAttributeConfig `river:"heroku.release.commit,block,optional"` HerokuReleaseCreationTimestamp rac.ResourceAttributeConfig `river:"heroku.release.creation_timestamp,block,optional"` ServiceInstanceID rac.ResourceAttributeConfig `river:"service.instance.id,block,optional"` ServiceName rac.ResourceAttributeConfig `river:"service.name,block,optional"` ServiceVersion rac.ResourceAttributeConfig `river:"service.version,block,optional"` }
ResourceAttributesConfig provides config for heroku resource attributes.
func (ResourceAttributesConfig) Convert ¶
func (r ResourceAttributesConfig) Convert() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.