BuildMetricFilter() статический приватный Метод

static private BuildMetricFilter ( System.DateTime startTime, System.DateTime endTime, string timeGrain, IReadOnlyList metricNames ) : string
startTime System.DateTime
endTime System.DateTime
timeGrain string
metricNames IReadOnlyList
Результат string
        public IEnumerable <ResourceMetric> GetAppServicePlanHistoricalUsageMetrics(
            string resourceGroupName,
            string appServicePlanName,
            IReadOnlyList <string> metricNames,
            DateTime?startTime,
            DateTime?endTime,
            string timeGrain,
            bool instanceDetails)
        {
            var response = WrappedWebsitesClient.AppServicePlans().GetServerFarmMetrics(
                resourceGroupName,
                appServicePlanName,
                instanceDetails,
                CmdletHelpers.BuildMetricFilter(startTime, endTime, timeGrain, metricNames));

            return(response.Value());
        }
        public IEnumerable <ResourceMetric> GetWebAppUsageMetrics(string resourceGroupName,
                                                                  string webSiteName,
                                                                  string slotName,
                                                                  IReadOnlyList <string> metricNames,
                                                                  DateTime?startTime,
                                                                  DateTime?endTime,
                                                                  string timeGrain,
                                                                  bool instanceDetails)
        {
            string qualifiedSiteName;
            var    usageMetrics = CmdletHelpers.ShouldUseDeploymentSlot(webSiteName, slotName, out qualifiedSiteName) ?
                                  WrappedWebsitesClient.WebApps().GetSiteMetricsSlot(resourceGroupName, webSiteName, slotName, instanceDetails, CmdletHelpers.BuildMetricFilter(startTime, endTime ?? DateTime.Now, timeGrain, metricNames)) :
                                  WrappedWebsitesClient.WebApps().GetSiteMetrics(resourceGroupName, webSiteName, instanceDetails, CmdletHelpers.BuildMetricFilter(startTime, endTime ?? DateTime.Now, timeGrain, metricNames));

            return(usageMetrics.Value());
        }