-
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update API from slack-api-ref@0d3f0b6 (2023-08-21)
- Loading branch information
Showing
13 changed files
with
109 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Cli | ||
class App | ||
desc 'AdminAppsActivities methods.' | ||
command 'admin_apps_activities' do |g| | ||
g.desc 'Get logs for a specified team/org' | ||
g.long_desc %( Get logs for a specified team/org ) | ||
g.command 'list' do |c| | ||
c.flag 'app_id', desc: 'The id of the app to get activities from.' | ||
c.flag 'component_id', desc: "The component id of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for worflows." | ||
c.flag 'component_type', desc: "The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables')." | ||
c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. See pagination for more detail." | ||
c.flag 'limit', desc: 'The maximum number of items to return.' | ||
c.flag 'log_event_type', desc: 'The event type of log events to be returned.' | ||
c.flag 'max_date_created', desc: 'The latest timestamp of the log to retrieve (epoch microseconds).' | ||
c.flag 'min_date_created', desc: 'The earliest timestamp of the log to retrieve (epoch microseconds).' | ||
c.flag 'min_log_level', desc: "The minimum log level of the log events to be returned. Defaults to 'info'. Acceptable values (in order of relative importance from smallest to largest) are ('trace', 'debug', 'info', 'warn', 'error', 'fatal')." | ||
c.flag 'sort_direction', desc: 'The direction you want the data sorted by (always by timestamp).' | ||
c.flag 'source', desc: "The source of log events to be returned. Acceptable values are ('slack', 'developer')." | ||
c.flag 'team_id', desc: 'The team who owns this log.' | ||
c.flag 'trace_id', desc: 'The trace id of log events to be returned.' | ||
c.action do |_global_options, options, _args| | ||
puts JSON.dump(@client.admin_apps_activities_list(options)) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
module Slack | ||
module Web | ||
module Api | ||
module Endpoints | ||
module AdminAppsActivities | ||
# | ||
# Get logs for a specified team/org | ||
# | ||
# @option options [Object] :app_id | ||
# The id of the app to get activities from. | ||
# @option options [string] :component_id | ||
# The component id of log events to be returned. Will be 'FnXXXXXX' for functions, and 'WfXXXXXX' for worflows. | ||
# @option options [string] :component_type | ||
# The component type of log events to be returned. Acceptable values are ('events_api', 'workflows', 'functions', 'tables'). | ||
# @option options [string] :cursor | ||
# Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. See pagination for more detail. | ||
# @option options [integer] :limit | ||
# The maximum number of items to return. | ||
# @option options [string] :log_event_type | ||
# The event type of log events to be returned. | ||
# @option options [integer] :max_date_created | ||
# The latest timestamp of the log to retrieve (epoch microseconds). | ||
# @option options [integer] :min_date_created | ||
# The earliest timestamp of the log to retrieve (epoch microseconds). | ||
# @option options [string] :min_log_level | ||
# The minimum log level of the log events to be returned. Defaults to 'info'. Acceptable values (in order of relative importance from smallest to largest) are ('trace', 'debug', 'info', 'warn', 'error', 'fatal'). | ||
# @option options [string] :sort_direction | ||
# The direction you want the data sorted by (always by timestamp). | ||
# @option options [string] :source | ||
# The source of log events to be returned. Acceptable values are ('slack', 'developer'). | ||
# @option options [string] :team_id | ||
# The team who owns this log. | ||
# @option options [string] :trace_id | ||
# The trace id of log events to be returned. | ||
# @see https://api.slack.com/methods/admin.apps.activities.list | ||
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.activities/admin.apps.activities.list.json | ||
def admin_apps_activities_list(options = {}) | ||
if block_given? | ||
Pagination::Cursor.new(self, :admin_apps_activities_list, options).each do |page| | ||
yield page | ||
end | ||
else | ||
post('admin.apps.activities.list', options) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule slack-api-ref
updated
16 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This file was auto-generated by lib/tasks/web.rake | ||
|
||
require 'spec_helper' | ||
|
||
RSpec.describe Slack::Web::Api::Endpoints::AdminAppsActivities do | ||
let(:client) { Slack::Web::Client.new } | ||
end |