WindowsAzure/azure-sdk-for-media-services — pull request #35 by liushengpu (2013-09-19 07:24:49+00:00)
Title: Create Origin Metric SDK

I created SDK for origin metrics. This is not finalized yet and I can expect large changes :)
Usage:
OriginMetricBaseCollection originMetrics = context.OriginMetrics;
IOriginMetric metric1 = originMetrics.GetMetric(originId);
IOriginMetric metric2 = originMetrics.Where(m => m.Id == metricId).SingleOrDefault();
originMetrics.Monitor.OnMetricsReceived += OnMetricsReceived;
originMetrics.Monitor.Start();
originMetrics.Monitor.Stop();

IOrigin origin = context.Origins.Where(o => o.Id == originId).Single();
origin.GetMetric();
origin.MetricMonitor = new SingleOriginMetricMonitor(origin);
origin.MetricMonitor.OnMetricsReceived += OnMetricsReceived;
origin.MetricMonitor.Start();
origin.MetricMonitor.Stop();

Thanks
Shengpu