aho 0.1.0 → 0.1.2
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/.rubocop.yml +34 -7
- data/.ruby-version +1 -1
- data/README.md +2 -2
- data/Rakefile +3 -3
- data/aho.gemspec +41 -0
- data/app/controllers/dsp/api/v1/agent_controller.rb +17 -0
- data/app/controllers/dsp/api/v1/base_controller.rb +32 -0
- data/app/controllers/dsp/api/v1/config_controller.rb +20 -0
- data/app/controllers/dsp/api/v1/healthcheck_controller.rb +29 -0
- data/app/controllers/dsp/api/v1/metrics_controller.rb +13 -0
- data/config/default.aho.yml +36 -0
- data/config/puma.rb +5 -0
- data/config/routes.rb +10 -0
- data/config.ru +5 -0
- data/exe/aho +7 -3
- data/lib/aho/configuration.rb +43 -0
- data/lib/aho/errors.rb +19 -0
- data/lib/aho/metrics/active.rb +58 -0
- data/lib/aho/metrics/ignore.rb +23 -0
- data/lib/aho/metrics_aggregator.rb +29 -0
- data/lib/aho/metrics_builder.rb +14 -0
- data/lib/aho/metrics_formatter.rb +7 -0
- data/lib/aho/metrics_log_device.rb +10 -0
- data/lib/aho/metrics_logger/period.rb +27 -0
- data/lib/aho/metrics_logger.rb +24 -0
- data/lib/aho/schema/parser.rb +45 -0
- data/lib/aho/schema/validator.rb +55 -0
- data/lib/aho/version.rb +1 -1
- data/lib/aho/web_server/application.rb +44 -0
- data/lib/aho/web_server/router.rb +34 -0
- data/lib/aho.rb +50 -7
- data/lib/extensions/dot_hash.rb +29 -0
- data/lib/extensions/hash/deep_mergeable.rb +24 -0
- data/lib/extensions/hash.rb +43 -0
- data/openapi.yml +386 -0
- metadata +100 -18
- data/.idea/.gitignore +0 -8
- data/.idea/aho.iml +0 -77
- data/.idea/misc.xml +0 -4
- data/.idea/modules.xml +0 -8
- data/.idea/vcs.xml +0 -6
metadata
CHANGED
@@ -1,31 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Panasenkov A.
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
13
|
+
name: puma
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
|
18
|
+
version: '6.4'
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 6.4.3
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '6.4'
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 6.4.3
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: rack
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - "~>"
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '3.1'
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 3.1.8
|
42
|
+
type: :runtime
|
43
|
+
prerelease: false
|
44
|
+
version_requirements: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.1'
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 3.1.8
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: rackup
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - "~>"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '2.1'
|
59
|
+
type: :runtime
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - "~>"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '2.1'
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: rake
|
68
|
+
requirement: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '13.2'
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 13.2.1
|
76
|
+
type: :runtime
|
21
77
|
prerelease: false
|
22
78
|
version_requirements: !ruby/object:Gem::Requirement
|
23
79
|
requirements:
|
24
80
|
- - "~>"
|
25
81
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
|
28
|
-
|
82
|
+
version: '13.2'
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 13.2.1
|
86
|
+
description: |-
|
87
|
+
Aho agent is responsible for collecting resource usage data of VM instances on \
|
88
|
+
individual Compute nodes within an Datamart Platform Studio deployment.
|
29
89
|
email:
|
30
90
|
- aapanasenkov@gmail.com
|
31
91
|
executables:
|
@@ -33,20 +93,43 @@ executables:
|
|
33
93
|
extensions: []
|
34
94
|
extra_rdoc_files: []
|
35
95
|
files:
|
36
|
-
- ".idea/.gitignore"
|
37
|
-
- ".idea/aho.iml"
|
38
|
-
- ".idea/misc.xml"
|
39
|
-
- ".idea/modules.xml"
|
40
|
-
- ".idea/vcs.xml"
|
41
96
|
- ".rspec"
|
42
97
|
- ".rubocop.yml"
|
43
98
|
- ".ruby-version"
|
44
99
|
- CHANGELOG.md
|
45
100
|
- README.md
|
46
101
|
- Rakefile
|
102
|
+
- aho.gemspec
|
103
|
+
- app/controllers/dsp/api/v1/agent_controller.rb
|
104
|
+
- app/controllers/dsp/api/v1/base_controller.rb
|
105
|
+
- app/controllers/dsp/api/v1/config_controller.rb
|
106
|
+
- app/controllers/dsp/api/v1/healthcheck_controller.rb
|
107
|
+
- app/controllers/dsp/api/v1/metrics_controller.rb
|
108
|
+
- config.ru
|
109
|
+
- config/default.aho.yml
|
110
|
+
- config/puma.rb
|
111
|
+
- config/routes.rb
|
47
112
|
- exe/aho
|
48
113
|
- lib/aho.rb
|
114
|
+
- lib/aho/configuration.rb
|
115
|
+
- lib/aho/errors.rb
|
116
|
+
- lib/aho/metrics/active.rb
|
117
|
+
- lib/aho/metrics/ignore.rb
|
118
|
+
- lib/aho/metrics_aggregator.rb
|
119
|
+
- lib/aho/metrics_builder.rb
|
120
|
+
- lib/aho/metrics_formatter.rb
|
121
|
+
- lib/aho/metrics_log_device.rb
|
122
|
+
- lib/aho/metrics_logger.rb
|
123
|
+
- lib/aho/metrics_logger/period.rb
|
124
|
+
- lib/aho/schema/parser.rb
|
125
|
+
- lib/aho/schema/validator.rb
|
49
126
|
- lib/aho/version.rb
|
127
|
+
- lib/aho/web_server/application.rb
|
128
|
+
- lib/aho/web_server/router.rb
|
129
|
+
- lib/extensions/dot_hash.rb
|
130
|
+
- lib/extensions/hash.rb
|
131
|
+
- lib/extensions/hash/deep_mergeable.rb
|
132
|
+
- openapi.yml
|
50
133
|
- sig/aho.rbs
|
51
134
|
homepage: https://datamart.ru/aho
|
52
135
|
licenses: []
|
@@ -54,7 +137,7 @@ metadata:
|
|
54
137
|
homepage_uri: https://datamart.ru/aho
|
55
138
|
source_code_uri: https://gitlab.datamart.ru/datamart/aho
|
56
139
|
changelog_uri: https://gitlab.datamart.ru/datamart/aho/CHANGELOG.md
|
57
|
-
|
140
|
+
rubygems_mfa_required: 'true'
|
58
141
|
rdoc_options: []
|
59
142
|
require_paths:
|
60
143
|
- lib
|
@@ -62,15 +145,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
145
|
requirements:
|
63
146
|
- - ">="
|
64
147
|
- !ruby/object:Gem::Version
|
65
|
-
version: 3.
|
148
|
+
version: 3.4.2
|
66
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
150
|
requirements:
|
68
151
|
- - ">="
|
69
152
|
- !ruby/object:Gem::Version
|
70
153
|
version: '0'
|
71
154
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
73
|
-
signing_key:
|
155
|
+
rubygems_version: 3.7.1
|
74
156
|
specification_version: 4
|
75
157
|
summary: Aho agent for billing, monitoring and audit data from resources.
|
76
158
|
test_files: []
|
data/.idea/.gitignore
DELETED
data/.idea/aho.iml
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="ModuleRunConfigurationManager">
|
4
|
-
<shared />
|
5
|
-
</component>
|
6
|
-
<component name="NewModuleRootManager">
|
7
|
-
<content url="file://$MODULE_DIR$">
|
8
|
-
<sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
|
9
|
-
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
10
|
-
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
11
|
-
</content>
|
12
|
-
<orderEntry type="jdk" jdkName="RVM: ruby-3.2.2" jdkType="RUBY_SDK" />
|
13
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-3.2.2) [gem]" level="application" />
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.5.6, RVM: ruby-3.2.2) [gem]" level="application" />
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.1, RVM: ruby-3.2.2) [gem]" level="application" />
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="json (v2.7.1, RVM: ruby-3.2.2) [gem]" level="application" />
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="language_server-protocol (v3.17.0.3, RVM: ruby-3.2.2) [gem]" level="application" />
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.24.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="parser (v3.3.0.5, RVM: ruby-3.2.2) [gem]" level="application" />
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="racc (v1.7.3, RVM: ruby-3.2.2) [gem]" level="application" />
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-3.2.2) [gem]" level="application" />
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v13.1.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.9.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.6, RVM: ruby-3.2.2) [gem]" level="application" />
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.13.1, RVM: ruby-3.2.2) [gem]" level="application" />
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.62.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.31.2, RVM: ruby-3.2.2) [gem]" level="application" />
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.13.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
34
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.5.0, RVM: ruby-3.2.2) [gem]" level="application" />
|
35
|
-
</component>
|
36
|
-
<component name="RakeTasksCache">
|
37
|
-
<option name="myRootTask">
|
38
|
-
<RakeTaskImpl id="rake">
|
39
|
-
<subtasks>
|
40
|
-
<RakeTaskImpl description="Build aho-0.1.0.gem into the pkg directory" fullCommand="build" id="build" />
|
41
|
-
<RakeTaskImpl id="build">
|
42
|
-
<subtasks>
|
43
|
-
<RakeTaskImpl description="Generate SHA512 checksum if aho-0.1.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
|
44
|
-
</subtasks>
|
45
|
-
</RakeTaskImpl>
|
46
|
-
<RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
|
47
|
-
<RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
|
48
|
-
<RakeTaskImpl description="Build and install aho-0.1.0.gem into system gems" fullCommand="install" id="install" />
|
49
|
-
<RakeTaskImpl id="install">
|
50
|
-
<subtasks>
|
51
|
-
<RakeTaskImpl description="Build and install aho-0.1.0.gem into system gems without network access" fullCommand="install:local" id="local" />
|
52
|
-
</subtasks>
|
53
|
-
</RakeTaskImpl>
|
54
|
-
<RakeTaskImpl description="Create tag v0.1.0 and build and push aho-0.1.0.gem to https://gitlab.datamart.ru" fullCommand="release[remote]" id="release[remote]" />
|
55
|
-
<RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
|
56
|
-
<RakeTaskImpl id="rubocop">
|
57
|
-
<subtasks>
|
58
|
-
<RakeTaskImpl description="Autocorrect RuboCop offenses (only when it's safe)" fullCommand="rubocop:autocorrect" id="autocorrect" />
|
59
|
-
<RakeTaskImpl description="Autocorrect RuboCop offenses (safe and unsafe)" fullCommand="rubocop:autocorrect_all" id="autocorrect_all" />
|
60
|
-
<RakeTaskImpl description="" fullCommand="rubocop:auto_correct" id="auto_correct" />
|
61
|
-
</subtasks>
|
62
|
-
</RakeTaskImpl>
|
63
|
-
<RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
|
64
|
-
<RakeTaskImpl description="" fullCommand="default" id="default" />
|
65
|
-
<RakeTaskImpl description="" fullCommand="release" id="release" />
|
66
|
-
<RakeTaskImpl id="release">
|
67
|
-
<subtasks>
|
68
|
-
<RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
|
69
|
-
<RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
|
70
|
-
<RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
|
71
|
-
</subtasks>
|
72
|
-
</RakeTaskImpl>
|
73
|
-
</subtasks>
|
74
|
-
</RakeTaskImpl>
|
75
|
-
</option>
|
76
|
-
</component>
|
77
|
-
</module>
|
data/.idea/misc.xml
DELETED
data/.idea/modules.xml
DELETED