Documentation
¶
Overview ¶
Package iisconfig manages iis configuration
Index ¶
- type APMTags
- type DynamicIISConfig
- func (iiscfg *DynamicIISConfig) GetAPMTags(siteID uint32, urlpath string) (APMTags, APMTags)
- func (iiscfg *DynamicIISConfig) GetApplicationPath(siteID uint32, urlpath string) string
- func (iiscfg *DynamicIISConfig) GetSiteNameFromID(id uint32) string
- func (iiscfg *DynamicIISConfig) Start() error
- func (iiscfg *DynamicIISConfig) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APMTags ¶
type APMTags struct {
DDService string `json:"DD_SERVICE"`
DDEnv string `json:"DD_ENV"`
DDVersion string `json:"DD_VERSION"`
}
APMTags holds the APM tags
func ReadDatadogJSON ¶
ReadDatadogJSON reads a datadog.json file and returns the APM tags
func ReadDotNetConfig ¶
ReadDotNetConfig reads an iis config file(xml) and returns the APM tags
type DynamicIISConfig ¶
type DynamicIISConfig struct {
// contains filtered or unexported fields
}
DynamicIISConfig is an object that will watch the IIS configuration for changes, and reload the configuration when it changes. It provides additional methods for getting specific configuration items
func NewDynamicIISConfig ¶
func NewDynamicIISConfig() (*DynamicIISConfig, error)
NewDynamicIISConfig creates a new DynamicIISConfig
func (*DynamicIISConfig) GetAPMTags ¶
func (iiscfg *DynamicIISConfig) GetAPMTags(siteID uint32, urlpath string) (APMTags, APMTags)
GetAPMTags returns the APM tags for the given siteID and URL path
func (*DynamicIISConfig) GetApplicationPath ¶ added in v0.77.0
func (iiscfg *DynamicIISConfig) GetApplicationPath(siteID uint32, urlpath string) string
GetApplicationPath returns the IIS application path that handles the given URL path
func (*DynamicIISConfig) GetSiteNameFromID ¶
func (iiscfg *DynamicIISConfig) GetSiteNameFromID(id uint32) string
GetSiteNameFromID looks up a site name by its site ID