C# Class BoxedIce.ServerDensity.Agent.AgentConfiguration

Helper class for managing the configuration file for the monitoring agent Windows service.
Mostra file Open project: serverdensity/sd-agent-windows Class Usage Examples

Public Methods

Method Description
AgentConfiguration ( string url, string agentKey, bool iisChecks, string pluginDirectory, string mongoDBConnectionString, bool mongoDBDBStats, bool mongoDBReplSet, bool sqlServerChecks, string customPrefix, bool eventViewer ) : System

Initialises a new instance of the AgentConfiguration class with the provided values.

Load ( ) : AgentConfiguration

Reads the configuration file.

Write ( ) : void

Writes the configuration file.

Method Details

AgentConfiguration() public method

Initialises a new instance of the AgentConfiguration class with the provided values.
public AgentConfiguration ( string url, string agentKey, bool iisChecks, string pluginDirectory, string mongoDBConnectionString, bool mongoDBDBStats, bool mongoDBReplSet, bool sqlServerChecks, string customPrefix, bool eventViewer ) : System
url string The URL.
agentKey string The agent key.
iisChecks bool A value indicating whether or not to perform IIS checks.
pluginDirectory string A directory to search in for plugins.
mongoDBConnectionString string A connection string for MongoDB monitoring.
mongoDBDBStats bool
mongoDBReplSet bool
sqlServerChecks bool
customPrefix string
eventViewer bool
return System

Load() public static method

Reads the configuration file.
public static Load ( ) : AgentConfiguration
return AgentConfiguration

Write() public method

Writes the configuration file.
public Write ( ) : void
return void