active_endpoint 0.2.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 +7 -0
- data/.gitignore +55 -0
- data/.rspec +2 -0
- data/.rubocop.yml +60 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +25 -0
- data/Gemfile.lock +140 -0
- data/LICENSE +21 -0
- data/README.md +233 -0
- data/Rakefile +6 -0
- data/active_endpoint.gemspec +28 -0
- data/app/assets/config/active_endpoint_manifest.js +2 -0
- data/app/assets/javascripts/active_endpoint/application.js +2 -0
- data/app/assets/stylesheets/active_endpoint/application.css +10 -0
- data/app/controllers/active_endpoint/application_controller.rb +5 -0
- data/app/controllers/active_endpoint/dashboard_controller.rb +7 -0
- data/app/controllers/active_endpoint/probes_controller.rb +22 -0
- data/app/controllers/active_endpoint/unregistred_probes_controller.rb +14 -0
- data/app/helpers/active_endpoint/application_helper.rb +105 -0
- data/app/models/active_endpoint/application_record.rb +5 -0
- data/app/models/active_endpoint/probe.rb +52 -0
- data/app/models/active_endpoint/unregistred_probe.rb +3 -0
- data/app/views/active_endpoint/application/_flashes.html.erb +5 -0
- data/app/views/active_endpoint/application/_header.html.erb +18 -0
- data/app/views/active_endpoint/dashboard/_blacklist.html.erb +57 -0
- data/app/views/active_endpoint/dashboard/_constraints.html.erb +117 -0
- data/app/views/active_endpoint/dashboard/_settings.html.erb +13 -0
- data/app/views/active_endpoint/dashboard/_tags.html.erb +20 -0
- data/app/views/active_endpoint/dashboard/index.html.erb +8 -0
- data/app/views/active_endpoint/probes/index.html.erb +28 -0
- data/app/views/active_endpoint/probes/show.html.erb +43 -0
- data/app/views/active_endpoint/probes/show_response.html.erb +9 -0
- data/app/views/active_endpoint/unregistred_probes/index.html.erb +28 -0
- data/app/views/layouts/active_endpoint/application.html.erb +39 -0
- data/bin/console +14 -0
- data/bin/rails +13 -0
- data/bin/setup +8 -0
- data/config/routes.rb +8 -0
- data/lib/active_endpoint.rb +60 -0
- data/lib/active_endpoint/concerns/configurable.rb +29 -0
- data/lib/active_endpoint/concerns/constraintable.rb +51 -0
- data/lib/active_endpoint/concerns/optionable.rb +41 -0
- data/lib/active_endpoint/concerns/rails_routable.rb +49 -0
- data/lib/active_endpoint/engine.rb +15 -0
- data/lib/active_endpoint/extentions/active_record.rb +30 -0
- data/lib/active_endpoint/logger.rb +28 -0
- data/lib/active_endpoint/proxy.rb +64 -0
- data/lib/active_endpoint/rails/middleware.rb +17 -0
- data/lib/active_endpoint/rails/railtie.rb +13 -0
- data/lib/active_endpoint/request.rb +79 -0
- data/lib/active_endpoint/response.rb +17 -0
- data/lib/active_endpoint/routes/blacklist.rb +67 -0
- data/lib/active_endpoint/routes/cache/proxy.rb +22 -0
- data/lib/active_endpoint/routes/cache/proxy/redis_store_proxy.rb +41 -0
- data/lib/active_endpoint/routes/cache/store.rb +73 -0
- data/lib/active_endpoint/routes/constraint_rule.rb +38 -0
- data/lib/active_endpoint/routes/constraints.rb +81 -0
- data/lib/active_endpoint/routes/matcher.rb +51 -0
- data/lib/active_endpoint/routes/momento.rb +81 -0
- data/lib/active_endpoint/storage.rb +112 -0
- data/lib/active_endpoint/tags.rb +15 -0
- data/lib/active_endpoint/version.rb +3 -0
- data/lib/generators/active_endpoint/install_generator.rb +35 -0
- data/lib/generators/templates/active_endpoint.rb +40 -0
- data/lib/generators/templates/migration.erb +30 -0
- metadata +109 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
class CreateActiveEndpointProbes < ActiveRecord::Migration<%= migration_version %>
|
|
2
|
+
def change
|
|
3
|
+
create_table :active_endpoint_probes do |t|
|
|
4
|
+
t.string :type, default: '', index: true
|
|
5
|
+
|
|
6
|
+
t.string :uuid, null: false, index: true
|
|
7
|
+
t.string :endpoint, null: false, index: true
|
|
8
|
+
t.string :path, null: false, index: true
|
|
9
|
+
|
|
10
|
+
t.string :query_string, null: false
|
|
11
|
+
t.string :request_method, null: false
|
|
12
|
+
t.string :ip, null: false
|
|
13
|
+
t.string :url, null: false
|
|
14
|
+
|
|
15
|
+
t.boolean :xhr
|
|
16
|
+
|
|
17
|
+
t.datetime :started_at, null: false, index: true
|
|
18
|
+
t.datetime :finished_at
|
|
19
|
+
|
|
20
|
+
t.float :duration, nill: false, index: true
|
|
21
|
+
|
|
22
|
+
t.json :params, default: '{}'
|
|
23
|
+
|
|
24
|
+
t.text :response, default: ''
|
|
25
|
+
t.text :body, default: ''
|
|
26
|
+
|
|
27
|
+
t.timestamps
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: active_endpoint
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.2.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Marat Khusnetdinov
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-09-10 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Description of ActiveEndpoint.
|
|
14
|
+
email:
|
|
15
|
+
- marat@khusnetdinov.ru
|
|
16
|
+
executables: []
|
|
17
|
+
extensions: []
|
|
18
|
+
extra_rdoc_files: []
|
|
19
|
+
files:
|
|
20
|
+
- ".gitignore"
|
|
21
|
+
- ".rspec"
|
|
22
|
+
- ".rubocop.yml"
|
|
23
|
+
- ".travis.yml"
|
|
24
|
+
- CODE_OF_CONDUCT.md
|
|
25
|
+
- Gemfile
|
|
26
|
+
- Gemfile.lock
|
|
27
|
+
- LICENSE
|
|
28
|
+
- README.md
|
|
29
|
+
- Rakefile
|
|
30
|
+
- active_endpoint.gemspec
|
|
31
|
+
- app/assets/config/active_endpoint_manifest.js
|
|
32
|
+
- app/assets/javascripts/active_endpoint/application.js
|
|
33
|
+
- app/assets/stylesheets/active_endpoint/application.css
|
|
34
|
+
- app/controllers/active_endpoint/application_controller.rb
|
|
35
|
+
- app/controllers/active_endpoint/dashboard_controller.rb
|
|
36
|
+
- app/controllers/active_endpoint/probes_controller.rb
|
|
37
|
+
- app/controllers/active_endpoint/unregistred_probes_controller.rb
|
|
38
|
+
- app/helpers/active_endpoint/application_helper.rb
|
|
39
|
+
- app/models/active_endpoint/application_record.rb
|
|
40
|
+
- app/models/active_endpoint/probe.rb
|
|
41
|
+
- app/models/active_endpoint/unregistred_probe.rb
|
|
42
|
+
- app/views/active_endpoint/application/_flashes.html.erb
|
|
43
|
+
- app/views/active_endpoint/application/_header.html.erb
|
|
44
|
+
- app/views/active_endpoint/dashboard/_blacklist.html.erb
|
|
45
|
+
- app/views/active_endpoint/dashboard/_constraints.html.erb
|
|
46
|
+
- app/views/active_endpoint/dashboard/_settings.html.erb
|
|
47
|
+
- app/views/active_endpoint/dashboard/_tags.html.erb
|
|
48
|
+
- app/views/active_endpoint/dashboard/index.html.erb
|
|
49
|
+
- app/views/active_endpoint/probes/index.html.erb
|
|
50
|
+
- app/views/active_endpoint/probes/show.html.erb
|
|
51
|
+
- app/views/active_endpoint/probes/show_response.html.erb
|
|
52
|
+
- app/views/active_endpoint/unregistred_probes/index.html.erb
|
|
53
|
+
- app/views/layouts/active_endpoint/application.html.erb
|
|
54
|
+
- bin/console
|
|
55
|
+
- bin/rails
|
|
56
|
+
- bin/setup
|
|
57
|
+
- config/routes.rb
|
|
58
|
+
- lib/active_endpoint.rb
|
|
59
|
+
- lib/active_endpoint/concerns/configurable.rb
|
|
60
|
+
- lib/active_endpoint/concerns/constraintable.rb
|
|
61
|
+
- lib/active_endpoint/concerns/optionable.rb
|
|
62
|
+
- lib/active_endpoint/concerns/rails_routable.rb
|
|
63
|
+
- lib/active_endpoint/engine.rb
|
|
64
|
+
- lib/active_endpoint/extentions/active_record.rb
|
|
65
|
+
- lib/active_endpoint/logger.rb
|
|
66
|
+
- lib/active_endpoint/proxy.rb
|
|
67
|
+
- lib/active_endpoint/rails/middleware.rb
|
|
68
|
+
- lib/active_endpoint/rails/railtie.rb
|
|
69
|
+
- lib/active_endpoint/request.rb
|
|
70
|
+
- lib/active_endpoint/response.rb
|
|
71
|
+
- lib/active_endpoint/routes/blacklist.rb
|
|
72
|
+
- lib/active_endpoint/routes/cache/proxy.rb
|
|
73
|
+
- lib/active_endpoint/routes/cache/proxy/redis_store_proxy.rb
|
|
74
|
+
- lib/active_endpoint/routes/cache/store.rb
|
|
75
|
+
- lib/active_endpoint/routes/constraint_rule.rb
|
|
76
|
+
- lib/active_endpoint/routes/constraints.rb
|
|
77
|
+
- lib/active_endpoint/routes/matcher.rb
|
|
78
|
+
- lib/active_endpoint/routes/momento.rb
|
|
79
|
+
- lib/active_endpoint/storage.rb
|
|
80
|
+
- lib/active_endpoint/tags.rb
|
|
81
|
+
- lib/active_endpoint/version.rb
|
|
82
|
+
- lib/generators/active_endpoint/install_generator.rb
|
|
83
|
+
- lib/generators/templates/active_endpoint.rb
|
|
84
|
+
- lib/generators/templates/migration.erb
|
|
85
|
+
homepage: https://github.com/khusnetdinov/active_endpoint
|
|
86
|
+
licenses:
|
|
87
|
+
- MIT
|
|
88
|
+
metadata: {}
|
|
89
|
+
post_install_message:
|
|
90
|
+
rdoc_options: []
|
|
91
|
+
require_paths:
|
|
92
|
+
- lib
|
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
|
+
requirements:
|
|
95
|
+
- - ">="
|
|
96
|
+
- !ruby/object:Gem::Version
|
|
97
|
+
version: '0'
|
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0'
|
|
103
|
+
requirements: []
|
|
104
|
+
rubyforge_project:
|
|
105
|
+
rubygems_version: 2.6.8
|
|
106
|
+
signing_key:
|
|
107
|
+
specification_version: 4
|
|
108
|
+
summary: Summary of ActiveEndpoint.
|
|
109
|
+
test_files: []
|