telemetry-client 0.0.2 → 0.0.6
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: 79b1050a15b70981b9457bf46b31427f4971ee9d
|
|
4
|
+
data.tar.gz: 6caca83dd611bd45a7d4d6b6530a369f71f96e83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be8ac7f967ba216da6e164683f61af6bc7227d2cfc6836a49d10d38e5132e47155185b1de6ce64fb94d297da9c1e382c74cf14bf32ac8ab6d384b8703b6fe54a
|
|
7
|
+
data.tar.gz: c1bb5d000c86380699997bc9639d6272eeb3ad8b8e4e241569c8f90349edb43e7d627cdbc45dcae4675939d5fdb612c5153b0491425d75947a4c9852134d8e53
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
require 'telemetry/signal'
|
|
2
|
+
|
|
3
|
+
module Telemetry
|
|
4
|
+
class OpenSignal < Signal
|
|
5
|
+
|
|
6
|
+
@name
|
|
7
|
+
@source
|
|
8
|
+
@fields
|
|
9
|
+
|
|
10
|
+
attr_reader :name, :source, :fields
|
|
11
|
+
attr_writer :name, :fields
|
|
12
|
+
|
|
13
|
+
def attribute_map
|
|
14
|
+
attributes = {
|
|
15
|
+
:'name' => @name,
|
|
16
|
+
:'source' => @source,
|
|
17
|
+
:'fields' => @fields,
|
|
18
|
+
}
|
|
19
|
+
attributes.merge(super)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def initialize
|
|
23
|
+
super
|
|
24
|
+
@version = '1.0'
|
|
25
|
+
@type = 'OpenSignal'
|
|
26
|
+
@source = 'ruby'
|
|
27
|
+
@class_name = 'com.zuora.telemetry.api.OpenSignal'
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
data/lib/telemetry/signal.rb
CHANGED
|
@@ -5,44 +5,24 @@ module Telemetry
|
|
|
5
5
|
|
|
6
6
|
class ConnectorIntegrationSignal < Signal
|
|
7
7
|
|
|
8
|
-
@
|
|
9
|
-
@total_duration
|
|
10
|
-
@tax_operation_type
|
|
11
|
-
@document_item_count_int
|
|
12
|
-
@document_number
|
|
13
|
-
@vendor_request_start_timestamp
|
|
14
|
-
@vendor_request_duration
|
|
15
|
-
@vendor_error_message
|
|
16
|
-
@vendor_http_status
|
|
17
|
-
@vendor_domain
|
|
8
|
+
@vendor_duration
|
|
18
9
|
@vendor_name
|
|
19
10
|
@status
|
|
20
11
|
|
|
21
|
-
attr_accessor :
|
|
22
|
-
:document_item_count_int, :document_number, :vendor_request_start_timestamp,
|
|
23
|
-
:vendor_request_duration, :vendor_error_message, :vendor_http_status,
|
|
24
|
-
:vendor_domain, :status, :vendor_name
|
|
12
|
+
attr_accessor :vendor_duration, :vendor_name, :status
|
|
25
13
|
|
|
26
14
|
def attribute_map
|
|
27
15
|
attributes = {
|
|
28
|
-
:'
|
|
29
|
-
:'total_duration' => @total_duration,
|
|
30
|
-
:'tax_operation_type' => @tax_operation_type,
|
|
31
|
-
:'document_item_count_int' => @document_item_count_int,
|
|
32
|
-
:'document_number' => @document_number,
|
|
33
|
-
:'vendor_request_start_timestamp' => @vendor_request_start_timestamp,
|
|
34
|
-
:'vendor_request_duration' => @vendor_request_duration,
|
|
35
|
-
:'vendor_error_message' => @vendor_error_message,
|
|
36
|
-
:'vendor_http_status' => @vendor_http_status,
|
|
37
|
-
:'vendor_domain' => @vendor_domain,
|
|
38
|
-
:'status' => @status,
|
|
16
|
+
:'vendor_duration' => @vendor_duration,
|
|
39
17
|
:'vendor_name' => @vendor_name,
|
|
18
|
+
:'status' => @status,
|
|
40
19
|
}
|
|
41
20
|
attributes.merge(super)
|
|
42
21
|
end
|
|
43
22
|
|
|
44
23
|
def initialize
|
|
45
24
|
super
|
|
25
|
+
@version = '1.0'
|
|
46
26
|
@type = 'TaxConnectorToEngineIntegration'
|
|
47
27
|
@class_name = 'com.zuora.telemetry.api.taxintegration.TaxConnectorToEngineIntegrationSignal'
|
|
48
28
|
end
|
|
@@ -4,9 +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
|
|
9
|
-
@service = '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)
|
|
10
9
|
end
|
|
11
10
|
end
|
|
12
11
|
end
|
|
@@ -10,16 +10,19 @@ 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)
|
|
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
|
|
25
|
+
@service = service
|
|
23
26
|
end
|
|
24
27
|
|
|
25
28
|
def attribute_map
|
|
@@ -31,6 +34,7 @@ module Telemetry
|
|
|
31
34
|
:'signal_type' => @signal_body.type,
|
|
32
35
|
:'tenant_id' => @tenant_id,
|
|
33
36
|
:'entity_id' => @entity_id,
|
|
37
|
+
:'sub_tenant_id' => @sub_tenant_id,
|
|
34
38
|
:'signal_body' => @signal_body.attribute_map,
|
|
35
39
|
}
|
|
36
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.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jianfeng li
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -50,6 +50,7 @@ executables: []
|
|
|
50
50
|
extensions: []
|
|
51
51
|
extra_rdoc_files: []
|
|
52
52
|
files:
|
|
53
|
+
- lib/telemetry/open_signal.rb
|
|
53
54
|
- lib/telemetry/signal.rb
|
|
54
55
|
- lib/telemetry/tax/connector_integration.rb
|
|
55
56
|
- lib/telemetry/tax/tax_telemetry_event.rb
|