lsslog 0.1.5.pre.rc1 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of lsslog might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5ed3a3d6db6bac4543c70ec6bee2d95e2212d43a5b8aa4cdcbcf4f838f77710
4
- data.tar.gz: 2823f750cc153a48b1df58561876008a3dfaf41bf0f3f1b099ecc1c9d168f1b4
3
+ metadata.gz: 4630957d9d1596b233e83ca3db5b96570706deebcc4f14b187363e1ff6f8ecf3
4
+ data.tar.gz: 7f58f86afbb0a575ef1850246646747d2615c8a37793715ec7d386012009cf32
5
5
  SHA512:
6
- metadata.gz: b0363290d47d01c7e34228873af5c8c727164ab7c49c1402172bbf880b376b92d19de69c0ca5110590bc6af126cabb011f5d4ad479e041915ce8517be1c0371a
7
- data.tar.gz: e6ee20b0e51012155027a39ae08f27f5afd30a8bd7317c6c2e7e4cde79a9ba1c80ddb5139e11e3e9ed42d3295cd0934c05bafd4e2c1fc71150e15c11d52abe88
6
+ metadata.gz: 317729fb2116f3681963131379a720299a91a3f5b37d35d9286395354e14e2f33b79f185171122d7129772f75d967e151b4444fabfce35c744d23f6f818fc0f0
7
+ data.tar.gz: cbd3d14233aed28c77b54a31f014baff7ba9b4778a814109ffad29d1ea7154e1d1c5609376ff8d6e9a7084e331d294fb66db98d575ec80166e404cf6bbe370b1
@@ -1,3 +1,3 @@
1
1
  module Lsslog
2
- VERSION = "0.1.5-rc1"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/lsslog_pb.rb CHANGED
@@ -1,97 +1,16 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: lsslog.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("lsslog.proto", :syntax => :proto3) do
8
- add_message "lsslog.LssLog" do
9
- optional :transaction_id, :string, 1
10
- optional :flow_id, :string, 3
11
- optional :subflow_id, :string, 4
12
- optional :flow_dir, :enum, 2, "lsslog.FlowDirection"
13
- optional :flow_depth, :int32, 5
14
- optional :system_id, :string, 6
15
- optional :flow_body, :string, 7
16
- optional :request_method, :string, 8
17
- optional :request_url, :string, 9
18
- optional :status, :int32, 10
19
- optional :response_size, :int64, 11
20
- optional :user_agent, :string, 12
21
- optional :remote_ip, :string, 13
22
- optional :server_ip, :string, 14
23
- optional :latency, :int32, 15
24
- optional :protocol, :string, 16
25
- optional :start_time, :int64, 17
26
- optional :end_time, :int64, 18
27
- optional :created_at, :int64, 19
28
- optional :recevied_at, :int64, 20
29
- optional :is_completed, :bool, 21
30
- optional :tenant_id, :string, 22
31
- optional :state, :string, 23
32
- end
33
- add_message "lsslog.LssRes" do
34
- optional :body, :string, 1
35
- optional :code, :int32, 2
36
- end
37
- add_message "lsslog.VersionOut" do
38
- optional :api_verion, :string, 1
39
- optional :branch, :string, 2
40
- optional :commit, :string, 3
41
- optional :date, :string, 4
42
- optional :go_version, :string, 5
43
- optional :os_arch, :string, 6
44
- end
45
- add_message "lsslog.EmptyIn" do
46
- end
47
- add_message "lsslog.TransExpTime" do
48
- optional :flow_exp_time, :int32, 1
49
- optional :subflow_exp_time, :int32, 2
50
- end
51
- add_message "lsslog.LssConfig" do
52
- optional :flow_id, :string, 1
53
- optional :flow_name, :string, 2
54
- optional :enforce_sequence, :bool, 3
55
- optional :number_subflow, :int32, 4
56
- end
57
- add_message "lsslog.LssConfigRes" do
58
- repeated :data, :message, 1, "lsslog.LssConfig"
59
- optional :trans_exp_time, :message, 2, "lsslog.TransExpTime"
60
- end
61
- add_message "lsslog.ProdDetails" do
62
- optional :sku, :string, 1
63
- optional :vm_id, :string, 2
64
- optional :stg_id, :string, 3
65
- optional :nat_gw_id, :string, 4
66
- optional :peer_id, :string, 5
67
- optional :ec_id, :string, 6
68
- optional :subnet_id, :string, 7
69
- optional :elastic_ipa, :string, 8
70
- optional :nic_id, :string, 9
71
- optional :workload_id, :string, 10
72
- end
73
- add_message "lsslog.PurchasedItem" do
74
- optional :zone_id, :string, 1
75
- optional :region_id, :string, 2
76
- optional :item_cnt, :string, 3
77
- repeated :skus, :string, 5
78
- optional :detail, :message, 6, "lsslog.ProdDetails"
79
- end
80
- add_message "lsslog.ProdTransaction" do
81
- optional :transaction_id, :string, 1
82
- optional :tenant_id, :string, 2
83
- repeated :details, :message, 3, "lsslog.PurchasedItem"
84
- optional :region_id, :string, 4
85
- optional :zone_id, :string, 5
86
- optional :provisioned_at, :int64, 6
87
- optional :created_at, :int64, 7
88
- end
89
- add_enum "lsslog.FlowDirection" do
90
- value :REQUEST, 0
91
- value :RESPONSE, 1
92
- end
93
- end
94
- end
7
+ require 'google/protobuf/struct_pb'
8
+
9
+
10
+ descriptor_data = "\n\x0clsslog.proto\x12\x06lsslog\x1a\x1cgoogle/protobuf/struct.proto\"\xd1\x03\n\x06LssLog\x12\x16\n\x0etransaction_id\x18\x01 \x01(\t\x12\x0f\n\x07\x66low_id\x18\x03 \x01(\t\x12\x12\n\nsubflow_id\x18\x04 \x01(\t\x12\'\n\x08\x66low_dir\x18\x02 \x01(\x0e\x32\x15.lsslog.FlowDirection\x12\x12\n\nflow_depth\x18\x05 \x01(\x05\x12\x11\n\tsystem_id\x18\x06 \x01(\t\x12\x11\n\tflow_body\x18\x07 \x01(\t\x12\x16\n\x0erequest_method\x18\x08 \x01(\t\x12\x13\n\x0brequest_url\x18\t \x01(\t\x12\x0e\n\x06status\x18\n \x01(\x05\x12\x15\n\rresponse_size\x18\x0b \x01(\x03\x12\x12\n\nuser_agent\x18\x0c \x01(\t\x12\x11\n\tremote_ip\x18\r \x01(\t\x12\x11\n\tserver_ip\x18\x0e \x01(\t\x12\x0f\n\x07latency\x18\x0f \x01(\x05\x12\x10\n\x08protocol\x18\x10 \x01(\t\x12\x12\n\nstart_time\x18\x11 \x01(\x03\x12\x10\n\x08\x65nd_time\x18\x12 \x01(\x03\x12\x12\n\ncreated_at\x18\x13 \x01(\x03\x12\x13\n\x0brecevied_at\x18\x14 \x01(\x03\x12\x14\n\x0cis_completed\x18\x15 \x01(\x08\x12\x11\n\ttenant_id\x18\x16 \x01(\t\"$\n\x06LssRes\x12\x0c\n\x04\x62ody\x18\x01 \x01(\t\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x05\"s\n\nVersionOut\x12\x12\n\napi_verion\x18\x01 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x02 \x01(\t\x12\x0e\n\x06\x63ommit\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61te\x18\x04 \x01(\t\x12\x12\n\ngo_version\x18\x05 \x01(\t\x12\x0f\n\x07os_arch\x18\x06 \x01(\t\"\t\n\x07\x45mptyIn\"?\n\x0cTransExpTime\x12\x15\n\rflow_exp_time\x18\x01 \x01(\x05\x12\x18\n\x10subflow_exp_time\x18\x02 \x01(\x05\"a\n\tLssConfig\x12\x0f\n\x07\x66low_id\x18\x01 \x01(\t\x12\x11\n\tflow_name\x18\x02 \x01(\t\x12\x18\n\x10\x65nforce_sequence\x18\x03 \x01(\x08\x12\x16\n\x0enumber_subflow\x18\x04 \x01(\x05\"]\n\x0cLssConfigRes\x12\x1f\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x11.lsslog.LssConfig\x12,\n\x0etrans_exp_time\x18\x02 \x01(\x0b\x32\x14.lsslog.TransExpTime\"\xb9\x01\n\x0bProdDetails\x12\x0b\n\x03sku\x18\x01 \x01(\t\x12\r\n\x05vm_id\x18\x02 \x01(\t\x12\x0e\n\x06stg_id\x18\x03 \x01(\t\x12\x11\n\tnat_gw_id\x18\x04 \x01(\t\x12\x0f\n\x07peer_id\x18\x05 \x01(\t\x12\r\n\x05\x65\x63_id\x18\x06 \x01(\t\x12\x11\n\tsubnet_id\x18\x07 \x01(\t\x12\x13\n\x0b\x65lastic_ipa\x18\x08 \x01(\t\x12\x0e\n\x06nic_id\x18\t \x01(\t\x12\x13\n\x0bworkload_id\x18\n \x01(\t\"x\n\rPurchasedItem\x12\x0f\n\x07zone_id\x18\x01 \x01(\t\x12\x11\n\tregion_id\x18\x02 \x01(\t\x12\x10\n\x08item_cnt\x18\x03 \x01(\t\x12\x0c\n\x04skus\x18\x05 \x03(\t\x12#\n\x06\x64\x65tail\x18\x06 \x01(\x0b\x32\x13.lsslog.ProdDetails\"\xb4\x01\n\x0fProdTransaction\x12\x16\n\x0etransaction_id\x18\x01 \x01(\t\x12\x11\n\ttenant_id\x18\x02 \x01(\t\x12&\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x15.lsslog.PurchasedItem\x12\x11\n\tregion_id\x18\x04 \x01(\t\x12\x0f\n\x07zone_id\x18\x05 \x01(\t\x12\x16\n\x0eprovisioned_at\x18\x06 \x01(\x03\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\"x\n\x07LogVer2\x12\x10\n\x08severity\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\t\x12\x0b\n\x03\x61pi\x18\x03 \x01(\t\x12\x11\n\tcomponent\x18\x04 \x01(\t\x12(\n\x07message\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\"0\n\x0fLogResponseVer2\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\r**\n\rFlowDirection\x12\x0b\n\x07REQUEST\x10\x00\x12\x0c\n\x08RESPONSE\x10\x01\x32\x98\x03\n\rLssLogService\x12,\n\x08WriteLog\x12\x0e.lsslog.LssLog\x1a\x0e.lsslog.LssRes\"\x00\x12\x33\n\nGetVersion\x12\x0f.lsslog.EmptyIn\x1a\x12.lsslog.VersionOut\"\x00\x12\x33\n\x0cSetLssConfig\x12\x11.lsslog.LssConfig\x1a\x0e.lsslog.LssRes\"\x00\x12\x39\n\x0cGetLssConfig\x12\x11.lsslog.LssConfig\x1a\x14.lsslog.LssConfigRes\"\x00\x12\x36\n\x0fRemoveLssConfig\x12\x11.lsslog.LssConfig\x1a\x0e.lsslog.LssRes\"\x00\x12\x39\n\x0fSetTransExpTime\x12\x14.lsslog.TransExpTime\x1a\x0e.lsslog.LssRes\"\x00\x12\x41\n\x14WriteProdTransaction\x12\x17.lsslog.ProdTransaction\x1a\x0e.lsslog.LssRes\"\x00\x32\x37\n\x02V2\x12\x31\n\x03Log\x12\x0f.lsslog.LogVer2\x1a\x17.lsslog.LogResponseVer2\"\x00\x62\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
95
14
 
96
15
  module Lsslog
97
16
  LssLog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lsslog.LssLog").msgclass
@@ -104,5 +23,7 @@ module Lsslog
104
23
  ProdDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lsslog.ProdDetails").msgclass
105
24
  PurchasedItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lsslog.PurchasedItem").msgclass
106
25
  ProdTransaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lsslog.ProdTransaction").msgclass
26
+ LogVer2 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lsslog.LogVer2").msgclass
27
+ LogResponseVer2 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lsslog.LogResponseVer2").msgclass
107
28
  FlowDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("lsslog.FlowDirection").enummodule
108
29
  end
@@ -23,6 +23,20 @@ module Lsslog
23
23
  rpc :WriteProdTransaction, ::Lsslog::ProdTransaction, ::Lsslog::LssRes
24
24
  end
25
25
 
26
+ Stub = Service.rpc_stub_class
27
+ end
28
+ module V2
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'lsslog.V2'
36
+
37
+ rpc :Log, ::Lsslog::LogVer2, ::Lsslog::LogResponseVer2
38
+ end
39
+
26
40
  Stub = Service.rpc_stub_class
27
41
  end
28
42
  end
data/lsslog-0.1.5.gem ADDED
Binary file
data/lsslog-0.1.6.gem ADDED
Binary file
data/lsslog.gemspec CHANGED
@@ -1,9 +1,7 @@
1
-
2
1
  lib = File.expand_path("../lib", __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "lsslog/version"
5
4
 
6
-
7
5
  Gem::Specification.new do |spec|
8
6
  spec.name = "lsslog"
9
7
  spec.version = Lsslog::VERSION
@@ -26,19 +24,19 @@ Gem::Specification.new do |spec|
26
24
  # Specify which files should be added to the gem when it is released.
27
25
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
26
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
29
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) || f == "lsslog-#{Lsslog::VERSION}.gem" }
30
28
  end
31
29
  spec.bindir = "exe"
32
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
31
  spec.require_paths = ["lib"]
34
32
 
35
33
  spec.platform = Gem::Platform::RUBY
36
- # spec.required_ruby_version = ">= 2.7.0"
34
+ spec.required_ruby_version = ">= 2.7.0"
37
35
 
38
- spec.add_dependency "google-protobuf", "~> 3.14.0"
39
- spec.add_dependency "grpc", "~> 1.35"
36
+ spec.add_dependency "google-protobuf", "~> 3.18.0"
37
+ spec.add_dependency "grpc", "~> 1.43.1"
40
38
 
41
39
  spec.add_development_dependency "grpc-tools", "~> 1.35"
42
- spec.add_development_dependency "bundler", "~> 1.17"
40
+ spec.add_development_dependency "bundler", "~> 2.4"
43
41
  spec.add_development_dependency "rake", "~> 10.0"
44
42
  end
data/proto/lsslog.proto CHANGED
@@ -1,5 +1,6 @@
1
1
  syntax = "proto3";
2
2
  package lsslog;
3
+ import "google/protobuf/struct.proto";
3
4
 
4
5
  enum FlowDirection {
5
6
  REQUEST = 0;
@@ -29,7 +30,6 @@ message LssLog {
29
30
  int64 recevied_at = 20;
30
31
  bool is_completed = 21;
31
32
  string tenant_id = 22;
32
- string state = 23;
33
33
  }
34
34
 
35
35
  message LssRes {
@@ -105,3 +105,20 @@ service LssLogService {
105
105
  rpc SetTransExpTime(TransExpTime) returns (LssRes) {};
106
106
  rpc WriteProdTransaction(ProdTransaction) returns (LssRes) {};
107
107
  }
108
+
109
+ message LogVer2 {
110
+ string severity = 1;
111
+ string timestamp = 2;
112
+ string api = 3;
113
+ string component = 4;
114
+ google.protobuf.Struct message = 5;
115
+ }
116
+
117
+ message LogResponseVer2 {
118
+ string id = 1;
119
+ uint32 timestamp = 2;
120
+ }
121
+
122
+ service V2 {
123
+ rpc Log(LogVer2) returns (LogResponseVer2) {};
124
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lsslog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.pre.rc1
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thanh Ngo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-12 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.14.0
19
+ version: 3.18.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.14.0
26
+ version: 3.18.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: grpc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.35'
33
+ version: 1.43.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.35'
40
+ version: 1.43.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: grpc-tools
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.17'
61
+ version: '2.4'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.17'
68
+ version: '2.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -110,6 +110,8 @@ files:
110
110
  - lsslog-0.1.1.pre.rc1.gem
111
111
  - lsslog-0.1.3.gem
112
112
  - lsslog-0.1.3.pre.rc1.gem
113
+ - lsslog-0.1.5.gem
114
+ - lsslog-0.1.6.gem
113
115
  - lsslog.gemspec
114
116
  - proto/README.md
115
117
  - proto/lsslog.proto
@@ -124,14 +126,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
126
  requirements:
125
127
  - - ">="
126
128
  - !ruby/object:Gem::Version
127
- version: '0'
129
+ version: 2.7.0
128
130
  required_rubygems_version: !ruby/object:Gem::Requirement
129
131
  requirements:
130
- - - ">"
132
+ - - ">="
131
133
  - !ruby/object:Gem::Version
132
- version: 1.3.1
134
+ version: '0'
133
135
  requirements: []
134
- rubygems_version: 3.0.3
136
+ rubygems_version: 3.1.6
135
137
  signing_key:
136
138
  specification_version: 4
137
139
  summary: Lsslog Ruby Client