radar-api 0.9.0 → 0.10.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 +5 -5
- data/Gemfile.lock +2 -2
- data/gen/radar/api/healthz.rb +84 -0
- data/gen/radar/api/healthz_constants.rb +13 -0
- data/gen/radar/api/healthz_types.rb +19 -0
- data/gen/radar_types.rb +1 -0
- data/lib/radar-api.rb +1 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c46440edbefb015c555f89ce94dc47bc935e39f17bb970c8a4d100f45308371d
|
4
|
+
data.tar.gz: 43c82a1c5486631a7ac9f396512f82d156e1b118b01d9ba1fcfc63453ebfc9d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa23f07ea1a461cba09833f7a9bc33db90849047a984abd810bc17c96330d2e39031c99f39a377ababb02b34812823fb7398e159a206675bbbc862fc6ac4cacf
|
7
|
+
data.tar.gz: bbd8e9d0fd0b86a866ad92676dc4fc9352cb9e66a7fd901ac85d0f9552a8fdbb64b13b72cf2706544547847fc683bb1c41fc2602f8352a9f4d728ee84934493a
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,84 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.12.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
require 'radar/api/healthz_types'
|
9
|
+
|
10
|
+
module Radar
|
11
|
+
module Api
|
12
|
+
module Healthz
|
13
|
+
class Client
|
14
|
+
include ::Thrift::Client
|
15
|
+
|
16
|
+
def status()
|
17
|
+
send_status()
|
18
|
+
return recv_status()
|
19
|
+
end
|
20
|
+
|
21
|
+
def send_status()
|
22
|
+
send_message('status', Status_args)
|
23
|
+
end
|
24
|
+
|
25
|
+
def recv_status()
|
26
|
+
result = receive_message(Status_result)
|
27
|
+
return result.success unless result.success.nil?
|
28
|
+
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'status failed: unknown result')
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
class Processor
|
34
|
+
include ::Thrift::Processor
|
35
|
+
|
36
|
+
def process_status(seqid, iprot, oprot)
|
37
|
+
args = read_args(iprot, Status_args)
|
38
|
+
result = Status_result.new()
|
39
|
+
result.success = @handler.status()
|
40
|
+
write_result(result, oprot, 'status', seqid)
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
# HELPER FUNCTIONS AND STRUCTURES
|
46
|
+
|
47
|
+
class Status_args
|
48
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
49
|
+
|
50
|
+
FIELDS = {
|
51
|
+
|
52
|
+
}
|
53
|
+
|
54
|
+
def struct_fields; FIELDS; end
|
55
|
+
|
56
|
+
def validate
|
57
|
+
end
|
58
|
+
|
59
|
+
::Thrift::Struct.generate_accessors self
|
60
|
+
end
|
61
|
+
|
62
|
+
class Status_result
|
63
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
64
|
+
SUCCESS = 0
|
65
|
+
|
66
|
+
FIELDS = {
|
67
|
+
SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => ::Radar::Api::HealthStatus}
|
68
|
+
}
|
69
|
+
|
70
|
+
def struct_fields; FIELDS; end
|
71
|
+
|
72
|
+
def validate
|
73
|
+
unless @success.nil? || ::Radar::Api::HealthStatus::VALID_VALUES.include?(@success)
|
74
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field success!')
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
::Thrift::Struct.generate_accessors self
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#
|
2
|
+
# Autogenerated by Thrift Compiler (0.12.0)
|
3
|
+
#
|
4
|
+
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'thrift'
|
8
|
+
|
9
|
+
module Radar
|
10
|
+
module Api
|
11
|
+
module HealthStatus
|
12
|
+
HEALTHY = 0
|
13
|
+
UNHEALTHY = 1
|
14
|
+
VALUE_MAP = {0 => "HEALTHY", 1 => "UNHEALTHY"}
|
15
|
+
VALID_VALUES = Set.new([HEALTHY, UNHEALTHY]).freeze
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
data/gen/radar_types.rb
CHANGED
data/lib/radar-api.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radar-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- André Aizim Kelmanson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,6 +72,9 @@ files:
|
|
72
72
|
- gen/radar/api/data_server_constants.rb
|
73
73
|
- gen/radar/api/data_server_types.rb
|
74
74
|
- gen/radar/api/fund_service.rb
|
75
|
+
- gen/radar/api/healthz.rb
|
76
|
+
- gen/radar/api/healthz_constants.rb
|
77
|
+
- gen/radar/api/healthz_types.rb
|
75
78
|
- gen/radar/api/index_service.rb
|
76
79
|
- gen/radar/api/integration_status_service.rb
|
77
80
|
- gen/radar/api/portfolio_analyzer_constants.rb
|
@@ -110,8 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
113
|
- !ruby/object:Gem::Version
|
111
114
|
version: '0'
|
112
115
|
requirements: []
|
113
|
-
|
114
|
-
rubygems_version: 2.6.14
|
116
|
+
rubygems_version: 3.0.4
|
115
117
|
signing_key:
|
116
118
|
specification_version: 4
|
117
119
|
summary: Radar API
|