telemetry-client 0.0.5 → 0.0.8
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aeb676e9aef012ea61960515d6447b13c9fee551
|
|
4
|
+
data.tar.gz: '0986058ed9313aba009e467c31b05de49eb0956d'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3353974170f2858aa935ed7ca466e78bd0d85e9b82352d08adfaec3d5d321fc0189bc5110434ad02c7eb7095eed29953813e39b3328b4a2653038a8c9446ea3e
|
|
7
|
+
data.tar.gz: 491983623349ccfec74a4d6f293136033d9b99fdf43c07a95f5884d1a1b87b8343dc00a1249702a4dcaa81b2b711c5dae7f1e9bb1a6ba15692b8f667482af2a2
|
|
@@ -8,14 +8,22 @@ module Telemetry
|
|
|
8
8
|
@vendor_duration
|
|
9
9
|
@vendor_name
|
|
10
10
|
@status
|
|
11
|
+
@error_category
|
|
12
|
+
@sub_error_category
|
|
13
|
+
@error_message
|
|
14
|
+
@document_number
|
|
11
15
|
|
|
12
|
-
attr_accessor :vendor_duration, :vendor_name, :status
|
|
16
|
+
attr_accessor :vendor_duration, :vendor_name, :status, :error_category, :sub_error_category, :error_message, :document_number
|
|
13
17
|
|
|
14
18
|
def attribute_map
|
|
15
19
|
attributes = {
|
|
16
20
|
:'vendor_duration' => @vendor_duration,
|
|
17
21
|
:'vendor_name' => @vendor_name,
|
|
18
22
|
:'status' => @status,
|
|
23
|
+
:'error_category' => @error_category,
|
|
24
|
+
:'sub_error_category' => @sub_error_category,
|
|
25
|
+
:'error_message' => @error_message,
|
|
26
|
+
:'document_number' => @document_number
|
|
19
27
|
}
|
|
20
28
|
attributes.merge(super)
|
|
21
29
|
end
|
|
@@ -4,8 +4,8 @@ module Telemetry
|
|
|
4
4
|
module Tax
|
|
5
5
|
class TelemetryEvent < TelemetryEvent
|
|
6
6
|
|
|
7
|
-
def initialize(tenant_id, entity_id, signal_body)
|
|
8
|
-
super(tenant_id, entity_id, signal_body, 'TaxConnector')
|
|
7
|
+
def initialize(tenant_id, entity_id, signal_body, sub_tenant_id = nil)
|
|
8
|
+
super(tenant_id, entity_id, signal_body, 'TaxConnector', sub_tenant_id)
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
end
|
|
@@ -10,15 +10,17 @@ module Telemetry
|
|
|
10
10
|
@service
|
|
11
11
|
@tenant_id
|
|
12
12
|
@entity_id
|
|
13
|
+
@sub_tenant_id
|
|
13
14
|
@signal_body
|
|
14
15
|
|
|
15
|
-
attr_accessor :id, :version, :service, :tenant_id, :entity_id, :signal_body
|
|
16
|
+
attr_accessor :id, :version, :service, :tenant_id, :entity_id, :sub_tenant_id, :signal_body
|
|
16
17
|
|
|
17
|
-
def initialize(tenant_id, entity_id, signal_body, service)
|
|
18
|
+
def initialize(tenant_id, entity_id, signal_body, service, sub_tenant_id = nil)
|
|
18
19
|
@id = SecureRandom.uuid
|
|
19
20
|
@version = '1.0'
|
|
20
21
|
@tenant_id = tenant_id
|
|
21
22
|
@entity_id = entity_id
|
|
23
|
+
@sub_tenant_id = sub_tenant_id
|
|
22
24
|
@signal_body = signal_body
|
|
23
25
|
@service = service
|
|
24
26
|
end
|
|
@@ -32,6 +34,7 @@ module Telemetry
|
|
|
32
34
|
:'signal_type' => @signal_body.type,
|
|
33
35
|
:'tenant_id' => @tenant_id,
|
|
34
36
|
:'entity_id' => @entity_id,
|
|
37
|
+
:'sub_tenant_id' => @sub_tenant_id,
|
|
35
38
|
:'signal_body' => @signal_body.attribute_map,
|
|
36
39
|
}
|
|
37
40
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: telemetry-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jianfeng li
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|