heroku

package
v0.40.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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) Convert

func (args Config) Convert() map[string]interface{}

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{}

Jump to

Keyboard shortcuts

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