コード例 #1
0
        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");
        }
コード例 #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");
        }