class Splunk::Pickaxe::Client
Attributes
alerts[R]
dashboards[R]
eventypes[R]
field_extractions[R]
macros[R]
reports[R]
service[R]
Public Class Methods
new(service, environment, config, args)
click to toggle source
# File lib/splunk/pickaxe/client.rb, line 16 def initialize(service, environment, config, args) @service = service @args = args @alerts = Alerts.new service, environment, config @dashboards = Dashboards.new service, environment, config @eventtypes = EventTypes.new service, environment, config @macros = Macros.new service, environment, config @reports = Reports.new service, environment, config @tags = Tags.new service, environment, config @field_extractions = FieldExtractions.new service, environment, config end
Public Instance Methods
save_all()
click to toggle source
# File lib/splunk/pickaxe/client.rb, line 39 def save_all overwrite = @args.fetch(:overwrite, false) local_save = @args.fetch(:local_save, false) @alerts.save overwrite, local_save @dashboards.save overwrite, local_save @eventtypes.save overwrite, local_save @macros.save overwrite, local_save @reports.save overwrite, local_save # splunk-sdk doesn't seem to support iterating tags @field_extractions.save overwrite, local_save end
sync_all()
click to toggle source
# File lib/splunk/pickaxe/client.rb, line 29 def sync_all @alerts.sync @dashboards.sync @eventtypes.sync @macros.sync @reports.sync @tags.sync @field_extractions.sync end