/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/TelemetryConsumption/NameResolution/NameResolutionMetrics.cs
34 строки
1 KB
Miha Zupan
Drop 3.1 and 5.0 TFMs (#1728)
23 май 2022, 20:08
Не верифицирован
23 май 2022, 20:08
94bd127
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; namespace Yarp.Telemetry.Consumption; /// <summary> /// Represents metrics reported by the System.Net.NameResolution event counters. /// </summary> public sealed class NameResolutionMetrics { public NameResolutionMetrics() => Timestamp = DateTime.UtcNow; /// <summary> /// Timestamp of when this <see cref="NameResolutionMetrics"/> instance was created. /// </summary> public DateTime Timestamp { get; internal set; } /// <summary> /// Number of DNS lookups requested since telemetry was enabled. /// </summary> public long DnsLookupsRequested { get; internal set; } /// <summary> /// Average DNS lookup duration in the last metrics interval. /// </summary> public TimeSpan AverageLookupDuration { get; internal set; } /// <summary> /// Number of DNS lookups that have started but not yet completed or failed. /// </summary> public long CurrentDnsLookups { get; internal set; } }