Sha256: a755cdca61c76caa3c667b90f5c9b71ed58103da3d07a68213e1a823d01b2c40
Contents?: true
Size: 969 Bytes
Versions: 6
Compression:
Stored size: 969 Bytes
Contents
module Azure module Armrest class EventService < ArmrestService def initialize(armrest_configuration, _options = {}) super @base_url += "providers/microsoft.insights/eventtypes/management/values" @base_url += "?api-version=#{armrest_configuration.api_version}" end # check what data type the event channel is def get_rg_events(starttime, endtime, channels, rg_name ) @uri += build_filter += " and resourceGroupName eq '#{rg_name}'" end def get_resource_events(starttime, endtime, channels, resource_uri ) @uri += build_filter += " and resourceUri eq '#{resource_uri}'" end def build_filter(starttime, endtime, channels) "$filter=eventTimestamp ge '#{starttime}' and eventTimestamp le '#{endtime}' and eventChannels eq '#{channels}'" end def select_properties(property_names) "&$select={property_names}" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems