workarea-core 3.4.29 → 3.4.30
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a0f1a32a380e8018ce48fa9c609e9cb820ccc1292c053101b4954caca8ae458
|
|
4
|
+
data.tar.gz: e6f464bf2b5c443ba95403493f520e09fb8fda6457526486cf1084eabf2d6c7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7959dc6060731296d8234a2d056955443f035f89b0d22ee61484bcba7751ec1198c0c040d4f30ab6f5359620f8b91e31523605a3ab0e7b13e12d48d5cbe32408
|
|
7
|
+
data.tar.gz: 9cd1dea7985c3c5893deea11f9d913b2457837d0f609ca3ae4d94db0af39840ea214625bf2b1f9747e60336f09fd4e0dc8960e5eee7dddaf544e2bd0adeb7339
|
|
@@ -18,7 +18,17 @@ module Workarea
|
|
|
18
18
|
aggs: {
|
|
19
19
|
type: {
|
|
20
20
|
terms: { field: 'facets.type', size: Workarea.config.jump_to_type_limit },
|
|
21
|
-
aggs: {
|
|
21
|
+
aggs: {
|
|
22
|
+
top: {
|
|
23
|
+
top_hits: {
|
|
24
|
+
size: Workarea.config.jump_to_results_per_type,
|
|
25
|
+
sort: [
|
|
26
|
+
{ _score: { order: 'desc' } },
|
|
27
|
+
{ updated_at: { order: 'desc' } }
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
22
32
|
}
|
|
23
33
|
}
|
|
24
34
|
}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
#
|
|
4
4
|
Easymon::Repository.add(
|
|
5
5
|
'mongodb',
|
|
6
|
-
Workarea::Monitoring::MongoidCheck.new
|
|
6
|
+
Workarea::Monitoring::MongoidCheck.new,
|
|
7
|
+
:critical
|
|
7
8
|
)
|
|
8
9
|
|
|
9
10
|
#
|
|
@@ -11,7 +12,8 @@ Easymon::Repository.add(
|
|
|
11
12
|
#
|
|
12
13
|
Easymon::Repository.add(
|
|
13
14
|
'elasticsearch',
|
|
14
|
-
Workarea::Monitoring::ElasticsearchCheck.new
|
|
15
|
+
Workarea::Monitoring::ElasticsearchCheck.new,
|
|
16
|
+
:critical
|
|
15
17
|
)
|
|
16
18
|
|
|
17
19
|
#
|
|
@@ -21,7 +23,8 @@ Easymon::Repository.add(
|
|
|
21
23
|
"redis",
|
|
22
24
|
Easymon::RedisCheck.new(
|
|
23
25
|
Workarea::Configuration::Redis.persistent.to_h
|
|
24
|
-
)
|
|
26
|
+
),
|
|
27
|
+
:critical
|
|
25
28
|
)
|
|
26
29
|
|
|
27
30
|
#
|
data/lib/workarea/version.rb
CHANGED
|
@@ -3,27 +3,32 @@ require 'test_helper'
|
|
|
3
3
|
module Workarea
|
|
4
4
|
class MonitoringIntegrationTest < Workarea::IntegrationTest
|
|
5
5
|
def test_monitors_the_mongodb_status
|
|
6
|
-
get workarea.easymon_path
|
|
6
|
+
get workarea.easymon_path + '/mongodb'
|
|
7
7
|
assert_includes(response.body, 'Up')
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def test_monitors_the_redis_status
|
|
11
|
-
get workarea.easymon_path
|
|
11
|
+
get workarea.easymon_path + '/redis'
|
|
12
12
|
assert_includes(response.body, 'Up')
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
def test_monitors_the_elasticsearch_status
|
|
16
|
-
get workarea.easymon_path
|
|
16
|
+
get workarea.easymon_path + '/elasticsearch'
|
|
17
17
|
assert_includes(response.body, 'Up')
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def test_monitors_the_sidekiq_queue_status
|
|
21
|
-
get workarea.easymon_path
|
|
21
|
+
get workarea.easymon_path + '/sidekiq-queue'
|
|
22
22
|
assert_includes(response.body, 'Low')
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def test_monitors_for_load_balancing
|
|
26
|
-
get workarea.easymon_path
|
|
26
|
+
get workarea.easymon_path + '/load-balancing'
|
|
27
|
+
assert_includes(response.body, 'Up')
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def test_critical_endpoint
|
|
31
|
+
get workarea.easymon_path + "/critical"
|
|
27
32
|
assert_includes(response.body, 'Up')
|
|
28
33
|
end
|
|
29
34
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: workarea-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Crouse
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -2609,7 +2609,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
2609
2609
|
- !ruby/object:Gem::Version
|
|
2610
2610
|
version: '0'
|
|
2611
2611
|
requirements: []
|
|
2612
|
-
rubygems_version: 3.0.
|
|
2612
|
+
rubygems_version: 3.0.3
|
|
2613
2613
|
signing_key:
|
|
2614
2614
|
specification_version: 4
|
|
2615
2615
|
summary: Core of the Workarea Commerce Platform
|