lib/azure/armrest/insights/event_service.rb in azure-armrest-0.4.0 vs lib/azure/armrest/insights/event_service.rb in azure-armrest-0.4.1
- old
+ new
@@ -64,22 +64,10 @@
end
private
def build_url(options = {})
- sub_id = armrest_configuration.subscription_id
-
- url =
- File.join(
- Azure::Armrest::COMMON_URI,
- sub_id,
- 'providers',
- provider,
- 'eventtypes',
- 'management',
- 'values'
- )
-
+ url = File.join(base_url, 'providers', provider, 'eventtypes', 'management', 'values')
url << "?api-version=#{@api_version}"
url << "&$filter=#{options[:filter]}" if options[:filter]
url << "&$select=#{options[:select]}" if options[:select]
url << "&$skipToken=#{options[:skip_token]}" if options[:skip_token]