tencentcloud-sdk-apm 1.0.213

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: df8eb28f14c5f63efc471718c63d91bac3570cce
4
+ data.tar.gz: a49e1bef03e7b8594fcdb1b41b9926a855bb4846
5
+ SHA512:
6
+ metadata.gz: 2d40d21201ae15d21ad2e277f4e0a7650f2b1a8d466a28d2a5d1064cb61aec3192185963c05305dc6d78a7d6d40a3dfa73b5c1af96a1838f6129a07b015c85c6
7
+ data.tar.gz: bc90665ed1d5bfb6b8c6a7b691d0f1d3a738253c5b68ac7851d472e0e1973025d41cd811b2ccb5ae02ac4f326144aa466ec14c0a149227bf250aa168ebe2e685
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.213
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20210622/client'
6
+ require_relative 'v20210622/models'
7
+
8
+ module TencentCloud
9
+ module Apm
10
+ end
11
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Apm
21
+ module V20210622
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2021-06-22'
26
+ api_endpoint = 'apm.tencentcloudapi.com'
27
+ sdk_version = 'APM_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 获取Apm Agent信息
33
+
34
+ # @param request: Request instance for DescribeApmAgent.
35
+ # @type request: :class:`Tencentcloud::apm::V20210622::DescribeApmAgentRequest`
36
+ # @rtype: :class:`Tencentcloud::apm::V20210622::DescribeApmAgentResponse`
37
+ def DescribeApmAgent(request)
38
+ body = send_request('DescribeApmAgent', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeApmAgentResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,117 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Apm
19
+ module V20210622
20
+ # apm Agent信息
21
+ class ApmAgentInfo < TencentCloud::Common::AbstractModel
22
+ # @param AgentDownloadURL: Agent下载地址
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type AgentDownloadURL: String
25
+ # @param CollectorURL: Collector上报地址
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type CollectorURL: String
28
+ # @param Token: Token信息
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type Token: String
31
+ # @param PublicCollectorURL: 外网上报地址
32
+ # 注意:此字段可能返回 null,表示取不到有效值。
33
+ # @type PublicCollectorURL: String
34
+ # @param InnerCollectorURL: 自研VPC上报地址
35
+ # 注意:此字段可能返回 null,表示取不到有效值。
36
+ # @type InnerCollectorURL: String
37
+ # @param PrivateLinkCollectorURL: 内网上报地址(Private Link上报地址)
38
+ # 注意:此字段可能返回 null,表示取不到有效值。
39
+ # @type PrivateLinkCollectorURL: String
40
+
41
+ attr_accessor :AgentDownloadURL, :CollectorURL, :Token, :PublicCollectorURL, :InnerCollectorURL, :PrivateLinkCollectorURL
42
+
43
+ def initialize(agentdownloadurl=nil, collectorurl=nil, token=nil, publiccollectorurl=nil, innercollectorurl=nil, privatelinkcollectorurl=nil)
44
+ @AgentDownloadURL = agentdownloadurl
45
+ @CollectorURL = collectorurl
46
+ @Token = token
47
+ @PublicCollectorURL = publiccollectorurl
48
+ @InnerCollectorURL = innercollectorurl
49
+ @PrivateLinkCollectorURL = privatelinkcollectorurl
50
+ end
51
+
52
+ def deserialize(params)
53
+ @AgentDownloadURL = params['AgentDownloadURL']
54
+ @CollectorURL = params['CollectorURL']
55
+ @Token = params['Token']
56
+ @PublicCollectorURL = params['PublicCollectorURL']
57
+ @InnerCollectorURL = params['InnerCollectorURL']
58
+ @PrivateLinkCollectorURL = params['PrivateLinkCollectorURL']
59
+ end
60
+ end
61
+
62
+ # DescribeApmAgent请求参数结构体
63
+ class DescribeApmAgentRequest < TencentCloud::Common::AbstractModel
64
+ # @param InstanceId: 实例ID
65
+ # @type InstanceId: String
66
+ # @param AgentType: 接入方式
67
+ # @type AgentType: String
68
+ # @param NetworkMode: 环境
69
+ # @type NetworkMode: String
70
+ # @param LanguageEnvironment: 语言
71
+ # @type LanguageEnvironment: String
72
+
73
+ attr_accessor :InstanceId, :AgentType, :NetworkMode, :LanguageEnvironment
74
+
75
+ def initialize(instanceid=nil, agenttype=nil, networkmode=nil, languageenvironment=nil)
76
+ @InstanceId = instanceid
77
+ @AgentType = agenttype
78
+ @NetworkMode = networkmode
79
+ @LanguageEnvironment = languageenvironment
80
+ end
81
+
82
+ def deserialize(params)
83
+ @InstanceId = params['InstanceId']
84
+ @AgentType = params['AgentType']
85
+ @NetworkMode = params['NetworkMode']
86
+ @LanguageEnvironment = params['LanguageEnvironment']
87
+ end
88
+ end
89
+
90
+ # DescribeApmAgent返回参数结构体
91
+ class DescribeApmAgentResponse < TencentCloud::Common::AbstractModel
92
+ # @param ApmAgent: Agent信息
93
+ # 注意:此字段可能返回 null,表示取不到有效值。
94
+ # @type ApmAgent: :class:`Tencentcloud::Apm.v20210622.models.ApmAgentInfo`
95
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
96
+ # @type RequestId: String
97
+
98
+ attr_accessor :ApmAgent, :RequestId
99
+
100
+ def initialize(apmagent=nil, requestid=nil)
101
+ @ApmAgent = apmagent
102
+ @RequestId = requestid
103
+ end
104
+
105
+ def deserialize(params)
106
+ unless params['ApmAgent'].nil?
107
+ @ApmAgent = ApmAgentInfo.new
108
+ @ApmAgent.deserialize(params['ApmAgent'])
109
+ end
110
+ @RequestId = params['RequestId']
111
+ end
112
+ end
113
+
114
+ end
115
+ end
116
+ end
117
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-apm
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.213
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ APM.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-apm.rb
38
+ - lib/v20210622/client.rb
39
+ - lib/v20210622/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-apm
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - APM
66
+ test_files: []