/// <summary> /// Creates a client with the specified host and formatter /// </summary> /// <param name="host">Graphite hostname</param> /// <param name="formatter">formatter for sending data to graphite</param> public GraphiteClient(string host, IGraphiteFormatter formatter) : this(host) { if (formatter == null) { throw new ArgumentNullException(nameof(formatter)); } Formatter = formatter; }
/// <summary> /// Creates a client with the specified host and formatter /// </summary> /// <param name="host">Graphite hostname</param> /// <param name="formatter">formatter for sending data to graphite</param> public GraphiteClient(string host, IGraphiteFormatter formatter) { if (String.IsNullOrEmpty(host)) { throw new ArgumentNullException(nameof(host)); } if (formatter == null) { throw new ArgumentNullException(nameof(formatter)); } Formatter = formatter; Host = host; UseSsl = true; HttpApiPort = 443; BatchSize = 500; UseDualStack = true; _carbonPool = new CarbonConnectionPool(Host, Formatter); }