Azure-Samples / monitor-dotnet-metrics-api

Code sample of the Azure Monitor metrics API using the .Net SDK
MIT License
13 stars 10 forks source link

It this up to date? MonitorClient not found and namespaces appear different in Nuget #5

Open CD-UNCC opened 6 years ago

CD-UNCC commented 6 years ago

using Microsoft.Azure.Management.Monitor; using Microsoft.Azure.Management.Monitor.Models;

The above names spaces don't appear correct any more. Replaced by Monitor.Fluent.Models? MonitorClient does not appears to exist any more. Is developing an API to fetch service bus metrics still in the works?

Ajit411021 commented 6 years ago

Please use version 2.8.x of Microsoft.Azure.Management.Monitor; to run this example.

RDavis3000 commented 5 years ago

For those who come after: MonitorClient is now MonitorManagementClient

So.... there isn't a 2.8.x version of this library?

https://www.nuget.org/packages/Microsoft.Azure.Management.Monitor/

Only has 0.21.0-preview. What is this example supposed to be used with? Also why is it in the obsolete project.json architecture? Just because MS likes open source this week doesn't mean you should allow this cowboy nonsense!

Jacob-McKay commented 5 years ago

Samples for getting metrics with .NET could definitely use some love, is the idea that we should just use the REST API?