C# Класс BoxedIce.ServerDensity.Agent.AgentConfiguration

Helper class for managing the configuration file for the monitoring agent Windows service.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AgentConfiguration() публичный Метод

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
Результат System

Load() публичный статический Метод

Reads the configuration file.
public static Load ( ) : AgentConfiguration
Результат AgentConfiguration

Write() публичный Метод

Writes the configuration file.
public Write ( ) : void
Результат void