private static ICollection<ChartInfo> GetWebsiteCharts(string serviceName, AzureWebsite website) { Func<string,string,ChartInfo> initChartInfo = (name,uri)=> new ChartInfo { ResourceName = website.Name, ResourceType = "website", ServiceName = serviceName, ServiceType = "Azure Subscription", Name = string.Format("{0} {1} (website)", website.Name, name), Uri = uri }; return new ChartInfo[] { initChartInfo("Requests", website.Uri.ToString()+"/requests"), initChartInfo("Memory", website.Uri.ToString()+"/memory"), initChartInfo("CPU", website.Uri.ToString()+"/cpu"), initChartInfo("Traffic", website.Uri.ToString()+"/traffic"), initChartInfo("Response Times", website.Uri.ToString()+"/response-times"), }; }
private static ICollection <ChartInfo> GetWebsiteCharts(string serviceName, AzureWebsite website) { Func <string, string, ChartInfo> initChartInfo = (name, uri) => new ChartInfo { ResourceName = website.Name, ResourceType = "website", ServiceName = serviceName, ServiceType = "Azure Subscription", Name = string.Format("{0} {1} (website)", website.Name, name), Uri = uri }; return(new ChartInfo[] { initChartInfo("Requests", website.Uri.ToString() + "/requests"), initChartInfo("Memory", website.Uri.ToString() + "/memory"), initChartInfo("CPU", website.Uri.ToString() + "/cpu"), initChartInfo("Traffic", website.Uri.ToString() + "/traffic"), initChartInfo("Response Times", website.Uri.ToString() + "/response-times"), }); }