Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "azure"
Variables ¶
View Source
var DefaultArguments = Config{ ResourceAttributes: ResourceAttributesConfig{ AzureResourcegroupName: rac.ResourceAttributeConfig{Enabled: true}, AzureVMName: rac.ResourceAttributeConfig{Enabled: true}, AzureVMScalesetName: rac.ResourceAttributeConfig{Enabled: true}, AzureVMSize: rac.ResourceAttributeConfig{Enabled: true}, CloudAccountID: rac.ResourceAttributeConfig{Enabled: true}, CloudPlatform: rac.ResourceAttributeConfig{Enabled: true}, CloudProvider: rac.ResourceAttributeConfig{Enabled: true}, CloudRegion: rac.ResourceAttributeConfig{Enabled: true}, HostID: rac.ResourceAttributeConfig{Enabled: true}, HostName: rac.ResourceAttributeConfig{Enabled: true}, }, }
DefaultArguments holds default settings for Config.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ResourceAttributes ResourceAttributesConfig `alloy:"resource_attributes,block,optional"` Tags []string `alloy:"tags,attr,optional"` }
func (*Config) SetToDefault ¶
func (args *Config) SetToDefault()
SetToDefault implements syntax.Defaulter.
type ResourceAttributesConfig ¶
type ResourceAttributesConfig struct { AzureResourcegroupName rac.ResourceAttributeConfig `alloy:"azure.resourcegroup.name,block,optional"` AzureVMName rac.ResourceAttributeConfig `alloy:"azure.vm.name,block,optional"` AzureVMScalesetName rac.ResourceAttributeConfig `alloy:"azure.vm.scaleset.name,block,optional"` AzureVMSize rac.ResourceAttributeConfig `alloy:"azure.vm.size,block,optional"` CloudAccountID rac.ResourceAttributeConfig `alloy:"cloud.account.id,block,optional"` CloudPlatform rac.ResourceAttributeConfig `alloy:"cloud.platform,block,optional"` CloudProvider rac.ResourceAttributeConfig `alloy:"cloud.provider,block,optional"` CloudRegion rac.ResourceAttributeConfig `alloy:"cloud.region,block,optional"` HostID rac.ResourceAttributeConfig `alloy:"host.id,block,optional"` HostName rac.ResourceAttributeConfig `alloy:"host.name,block,optional"` }
ResourceAttributesConfig provides config for azure resource attributes.
func (ResourceAttributesConfig) Convert ¶
func (r ResourceAttributesConfig) Convert() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.