public HystrixDashboardStream.DashboardData GetTestData() { var commandKey = new HystrixCommandKeyDefault("command"); var tpKey = new HystrixThreadPoolKeyDefault("threadPool"); var collapserKey = new HystrixCollapserKeyDefault("collapser"); var commandMetric = new HystrixCommandMetrics( commandKey, new HystrixCommandGroupKeyDefault("group"), tpKey, new HystrixCommandOptions(), HystrixEventNotifierDefault.GetInstance()); var threadPoolMetric = HystrixThreadPoolMetrics.GetInstance( tpKey, new HystrixSyncTaskScheduler(new HystrixThreadPoolOptions()), new HystrixThreadPoolOptions()); var commandMetrics = new List <HystrixCommandMetrics>() { commandMetric }; var collapserOptions = new HystrixCollapserOptions(collapserKey); var threadPoolMetrics = new List <HystrixThreadPoolMetrics>() { threadPoolMetric }; var collapserMetrics = new List <HystrixCollapserMetrics>() { HystrixCollapserMetrics.GetInstance(collapserKey, collapserOptions) }; return(new HystrixDashboardStream.DashboardData(commandMetrics, threadPoolMetrics, collapserMetrics)); }