allq_rest 1.5.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +36 -97
- data/lib/allq_rest/client.rb +168 -0
- data/lib/allq_rest/configuration.rb +7 -192
- data/lib/allq_rest/errors.rb +17 -0
- data/lib/allq_rest/job.rb +10 -0
- data/lib/allq_rest/version.rb +2 -14
- data/lib/allq_rest.rb +21 -46
- data/swagger.yaml +706 -0
- metadata +32 -115
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -42
- data/Rakefile +0 -8
- data/allq_rest-1.2.92.gem +0 -0
- data/allq_rest-1.2.93.gem +0 -0
- data/allq_rest-1.3.0.gem +0 -0
- data/allq_rest-1.4.0.gem +0 -0
- data/allq_rest-1.5.0.gem +0 -0
- data/allq_rest.gemspec +0 -28
- data/deploy.sh +0 -4
- data/docs/ActionsApi.md +0 -544
- data/docs/AdminApi.md +0 -98
- data/docs/BasicPayload.md +0 -11
- data/docs/BasicResponse.md +0 -8
- data/docs/JobRef.md +0 -8
- data/docs/JobResponse.md +0 -12
- data/docs/NewJob.md +0 -13
- data/docs/NewParentJob.md +0 -16
- data/docs/StatsInfo.md +0 -9
- data/docs/StatsResults.md +0 -10
- data/docs/StatsTube.md +0 -14
- data/docs/Throttle.md +0 -9
- data/docs/TubeRef.md +0 -8
- data/git_push.sh +0 -55
- data/lib/.DS_Store +0 -0
- data/lib/allq_rest/.DS_Store +0 -0
- data/lib/allq_rest/api/actions_api.rb +0 -763
- data/lib/allq_rest/api/admin_api.rb +0 -181
- data/lib/allq_rest/api_client.rb +0 -395
- data/lib/allq_rest/api_error.rb +0 -38
- data/lib/allq_rest/models/basic_payload.rb +0 -218
- data/lib/allq_rest/models/basic_response.rb +0 -188
- data/lib/allq_rest/models/job_ref.rb +0 -190
- data/lib/allq_rest/models/job_response.rb +0 -260
- data/lib/allq_rest/models/multiple_job_response.rb +0 -187
- data/lib/allq_rest/models/new_job.rb +0 -281
- data/lib/allq_rest/models/new_parent_job.rb +0 -302
- data/lib/allq_rest/models/stats_info.rb +0 -204
- data/lib/allq_rest/models/stats_results.rb +0 -254
- data/lib/allq_rest/models/stats_tube.rb +0 -306
- data/lib/allq_rest/models/throttle.rb +0 -209
- data/lib/allq_rest/models/tube_ref.rb +0 -190
- data/spec/.DS_Store +0 -0
- data/spec/api/actions_api_spec.rb +0 -600
- data/spec/api/admin_api_spec.rb +0 -58
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/basic_payload_spec.rb +0 -60
- data/spec/models/basic_response_spec.rb +0 -42
- data/spec/models/job_ref_spec.rb +0 -42
- data/spec/models/job_response_spec.rb +0 -66
- data/spec/models/new_job_spec.rb +0 -72
- data/spec/models/new_parent_job_spec.rb +0 -90
- data/spec/models/stats_info_spec.rb +0 -48
- data/spec/models/stats_results_spec.rb +0 -54
- data/spec/models/stats_tube_spec.rb +0 -78
- data/spec/models/throttle_spec.rb +0 -48
- data/spec/models/tube_ref_spec.rb +0 -42
- data/spec/spec_helper.rb +0 -113
data/docs/StatsResults.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Allq::StatsResults
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**server_name** | **String** | ID of server |
|
|
7
|
-
**stats** | [**Array<StatsTube>**](StatsTube.md) | Array of server instances |
|
|
8
|
-
**action_count** | **Integer** | Total actions taken on server |
|
|
9
|
-
|
|
10
|
-
|
data/docs/StatsTube.md
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Allq::StatsTube
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**ready** | **Integer** | Count of ready jobs | [default to 0]
|
|
7
|
-
**delayed** | **Integer** | Count of delayed jobs | [default to 0]
|
|
8
|
-
**reserved** | **Integer** | Count of reserved jobs | [default to 0]
|
|
9
|
-
**buried** | **Integer** | Count of buried jobs | [default to 0]
|
|
10
|
-
**parents** | **Integer** | Count of parent jobs | [default to 0]
|
|
11
|
-
**throttle_size** | **Integer** | TPS of throttle | [optional]
|
|
12
|
-
**tube** | **String** | Name of tube |
|
|
13
|
-
|
|
14
|
-
|
data/docs/Throttle.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Allq::Throttle
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**tube** | **String** | Name of tube | [default to "default"]
|
|
7
|
-
**tps** | **Integer** | Transactions per second | [default to 1000]
|
|
8
|
-
|
|
9
|
-
|
data/docs/TubeRef.md
DELETED
data/git_push.sh
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
#
|
|
3
|
-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
4
|
-
#
|
|
5
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
6
|
-
#
|
|
7
|
-
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
|
8
|
-
|
|
9
|
-
git_user_id=$1
|
|
10
|
-
git_repo_id=$2
|
|
11
|
-
release_note=$3
|
|
12
|
-
|
|
13
|
-
if [ "$git_user_id" = "" ]; then
|
|
14
|
-
git_user_id=""
|
|
15
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
16
|
-
fi
|
|
17
|
-
|
|
18
|
-
if [ "$git_repo_id" = "" ]; then
|
|
19
|
-
git_repo_id=""
|
|
20
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
21
|
-
fi
|
|
22
|
-
|
|
23
|
-
if [ "$release_note" = "" ]; then
|
|
24
|
-
release_note=""
|
|
25
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
26
|
-
fi
|
|
27
|
-
|
|
28
|
-
# Initialize the local directory as a Git repository
|
|
29
|
-
git init
|
|
30
|
-
|
|
31
|
-
# Adds the files in the local repository and stages them for commit.
|
|
32
|
-
git add .
|
|
33
|
-
|
|
34
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
35
|
-
git commit -m "$release_note"
|
|
36
|
-
|
|
37
|
-
# Sets the new remote
|
|
38
|
-
git_remote=`git remote`
|
|
39
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
40
|
-
|
|
41
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
|
42
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
43
|
-
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
|
44
|
-
else
|
|
45
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
|
46
|
-
fi
|
|
47
|
-
|
|
48
|
-
fi
|
|
49
|
-
|
|
50
|
-
git pull origin master
|
|
51
|
-
|
|
52
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
53
|
-
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
|
54
|
-
git push origin master 2>&1 | grep -v 'To https'
|
|
55
|
-
|
data/lib/.DS_Store
DELETED
|
Binary file
|
data/lib/allq_rest/.DS_Store
DELETED
|
Binary file
|