Sha256: ca82be6b41a5ecfbc565106b391e59b2a3d6d7f049ad65a48155793048899a21

Contents?: true

Size: 998 Bytes

Versions: 4

Compression:

Stored size: 998 Bytes

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

desc 'AdminAnalytics methods.'
command 'admin_analytics' do |g|
  g.desc 'Retrieve analytics data for a given date, presented as a compressed JSON file'
  g.long_desc %( Retrieve analytics data for a given date, presented as a compressed JSON file )
  g.command 'getFile' do |c|
    c.flag 'type', desc: 'The type of analytics to retrieve. The options are currently limited to member (for grid member analytics) and public_channel (for public channel analytics).'
    c.flag 'date', desc: 'Date to retrieve the analytics data for, expressed as YYYY-MM-DD in UTC.'
    c.flag 'metadata_only', desc: 'Retrieve metadata for the type of analytics indicated. Can be used only with type set to public_channel analytics. See detail below. Omit the date parameter when using this argument.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_analytics_getFile(options))
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-2.0.0 bin/commands/admin_analytics.rb
slack-ruby-client-1.1.0 bin/commands/admin_analytics.rb
slack-ruby-client-1.0.0 bin/commands/admin_analytics.rb
slack-ruby-client-0.17.0 bin/commands/admin_analytics.rb