telemetry-client 0.0.1 → 0.0.5

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: 87490cc85081082f37cf098f14ea2b5c43c2051e
4
- data.tar.gz: 80040e22e2b779c6702a4a84e45fe9984cc08ad2
3
+ metadata.gz: 37ba4d953efb5116c19d49b11a4c8c1ecb409a1a
4
+ data.tar.gz: 2e22bda29968ccbc92f430611a3d933bb87ef642
5
5
  SHA512:
6
- metadata.gz: 04eab6212acbfd5f56b349ed8911470d18b6fcc0130329968434c0a2646f863255342f0c03efbfed6ed8c09f4532d9bafc2b0d4ebbce1bb6e71561d1d02e887f
7
- data.tar.gz: b645bd5c48e15eb6394f073fbf4feb21a08a3a55e3a53e21963428d6413bcfc69dff3bafc92dfc3e6645d960a6ca6c8e8423460f95def245d3dbae0794c5cb8c
6
+ metadata.gz: f019f3c37ba7b82cd9f68de725ebc23bd97d0c06b66a49681f08d398453b51bc4e73f0dc2d3d965701880fae6ad9751d84f783abf07524502005cffcf75b6393
7
+ data.tar.gz: 8a77a728356640c3fa2b44273514f159c5f94704dde3b58e820635c2f1c8d85400f2b9b13d47960516ea05d61321b00969d1e06f0678e1d1bc6a9cb8dd6b6832
@@ -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
@@ -10,7 +10,7 @@ module Telemetry
10
10
  @class_name
11
11
 
12
12
  attr_reader :version, :timestamp, :type, :class_name
13
- attr_writer :version, :timestamp
13
+ attr_writer :timestamp
14
14
 
15
15
  def attribute_map
16
16
  {
@@ -5,46 +5,26 @@ module Telemetry
5
5
 
6
6
  class ConnectorIntegrationSignal < Signal
7
7
 
8
- @zuora_trace_id
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 :zuora_trace_id, :total_duration, :tax_operation_type,
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
- :'zuora_trace_id' => @zuora_trace_id,
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
- @class_name = 'com.zuora.telemetry.api.taxintegration.TaxConnectorToEngineIntegration'
27
+ @class_name = 'com.zuora.telemetry.api.taxintegration.TaxConnectorToEngineIntegrationSignal'
48
28
  end
49
29
  end
50
30
  end
@@ -5,8 +5,7 @@ module Telemetry
5
5
  class TelemetryEvent < TelemetryEvent
6
6
 
7
7
  def initialize(tenant_id, entity_id, signal_body)
8
- super
9
- @service = 'TaxConnector'
8
+ super(tenant_id, entity_id, signal_body, 'TaxConnector')
10
9
  end
11
10
  end
12
11
  end
@@ -14,12 +14,13 @@ module Telemetry
14
14
 
15
15
  attr_accessor :id, :version, :service, :tenant_id, :entity_id, :signal_body
16
16
 
17
- def initialize(tenant_id, entity_id, signal_body)
17
+ def initialize(tenant_id, entity_id, signal_body, service)
18
18
  @id = SecureRandom.uuid
19
19
  @version = '1.0'
20
20
  @tenant_id = tenant_id
21
21
  @entity_id = entity_id
22
22
  @signal_body = signal_body
23
+ @service = service
23
24
  end
24
25
 
25
26
  def attribute_map
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.1
4
+ version: 0.0.5
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-09-29 00:00:00.000000000 Z
11
+ date: 2021-11-04 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