16 using Newtonsoft.Json;
20 using System.Collections.Generic;
33 [JsonProperty(PropertyName =
"succeeded-data-requests-count")]
39 [JsonProperty(PropertyName =
"failed-data-requests-count")]
45 [JsonProperty(PropertyName =
"succeeded-universe-data-requests-count")]
51 [JsonProperty(PropertyName =
"failed-universe-data-requests-count")]
57 [JsonProperty(PropertyName =
"total-data-requests-count")]
66 [JsonProperty(PropertyName =
"failed-data-requests-percentage")]
75 [JsonProperty(PropertyName =
"total-universe-data-requests-count")]
84 [JsonProperty(PropertyName =
"failed-universe-data-requests-percentage")]
93 [JsonProperty(PropertyName =
"data-request-rates")]
112 long failedDataRequestsCount,
113 long succeededUniverseDataRequestsCount,
114 long failedUniverseDataRequestsCount,
115 IReadOnlyList<double> dataRequestRates)
124 private static double GetPercentage(
long total,
long value)
131 return Math.Round(value / (
double)total * 100);