public ProxyMetrics(IMetricCreator metricCreator)
        {
            _ = metricCreator ?? throw new ArgumentNullException(nameof(metricCreator));

            _streamCopyBytes = metricCreator.Create("StreamCopyBytes", "direction", "clusterId", "routeId", "destinationId", "protocol");
            _streamCopyIops  = metricCreator.Create("StreamCopyIops", "direction", "clusterId", "routeId", "destinationId", "protocol");
        }
Beispiel #2
0
        public ProxyMetrics(IMetricCreator metricCreator)
        {
            Contracts.CheckValue(metricCreator, nameof(metricCreator));

            _streamCopyBytes = metricCreator.Create("StreamCopyBytes", "direction", "backendId", "routeId", "endpointId", "protocol");
            _streamCopyIops  = metricCreator.Create("StreamCopyIops", "direction", "backendId", "routeId", "endpointId", "protocol");
        }