1 Star 1 Fork 0

tencentcloud/tencentcloud-sdk-ruby

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
client.rb 60.82 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-01-31 04:50 . release 3.0.761
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333
# frozen_string_literal: true
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'json'
module TencentCloud
module Rum
module V20210622
class Client < TencentCloud::Common::AbstractClient
def initialize(credential, region, profile = nil)
api_version = '2021-06-22'
api_endpoint = 'rum.tencentcloudapi.com'
sdk_version = 'RUM_' + File.read(File.expand_path('../VERSION', __dir__)).strip
super(credential, region, api_version, api_endpoint, sdk_version, profile)
end
# 创建 RUM 应用(归属于某个团队)
# @param request: Request instance for CreateProject.
# @type request: :class:`Tencentcloud::rum::V20210622::CreateProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::CreateProjectResponse`
def CreateProject(request)
body = send_request('CreateProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = CreateProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 创建对应项目的文件记录
# @param request: Request instance for CreateReleaseFile.
# @type request: :class:`Tencentcloud::rum::V20210622::CreateReleaseFileRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::CreateReleaseFileResponse`
def CreateReleaseFile(request)
body = send_request('CreateReleaseFile', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = CreateReleaseFileResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 个人用户添加星标项目
# @param request: Request instance for CreateStarProject.
# @type request: :class:`Tencentcloud::rum::V20210622::CreateStarProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::CreateStarProjectResponse`
def CreateStarProject(request)
body = send_request('CreateStarProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = CreateStarProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 创建 RUM 业务系统
# @param request: Request instance for CreateTawInstance.
# @type request: :class:`Tencentcloud::rum::V20210622::CreateTawInstanceRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::CreateTawInstanceResponse`
def CreateTawInstance(request)
body = send_request('CreateTawInstance', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = CreateTawInstanceResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 创建白名单
# @param request: Request instance for CreateWhitelist.
# @type request: :class:`Tencentcloud::rum::V20210622::CreateWhitelistRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::CreateWhitelistResponse`
def CreateWhitelist(request)
body = send_request('CreateWhitelist', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = CreateWhitelistResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 删除实例,谨慎操作,不可恢复
# @param request: Request instance for DeleteInstance.
# @type request: :class:`Tencentcloud::rum::V20210622::DeleteInstanceRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DeleteInstanceResponse`
def DeleteInstance(request)
body = send_request('DeleteInstance', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DeleteInstanceResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 删除给定的 rum 的项目
# @param request: Request instance for DeleteProject.
# @type request: :class:`Tencentcloud::rum::V20210622::DeleteProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DeleteProjectResponse`
def DeleteProject(request)
body = send_request('DeleteProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DeleteProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 将对应 sourcemap 文件删除
# @param request: Request instance for DeleteReleaseFile.
# @type request: :class:`Tencentcloud::rum::V20210622::DeleteReleaseFileRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DeleteReleaseFileResponse`
def DeleteReleaseFile(request)
body = send_request('DeleteReleaseFile', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DeleteReleaseFileResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 删除用户名下的星标项目
# @param request: Request instance for DeleteStarProject.
# @type request: :class:`Tencentcloud::rum::V20210622::DeleteStarProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DeleteStarProjectResponse`
def DeleteStarProject(request)
body = send_request('DeleteStarProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DeleteStarProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 删除白名单
# @param request: Request instance for DeleteWhitelist.
# @type request: :class:`Tencentcloud::rum::V20210622::DeleteWhitelistRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DeleteWhitelistResponse`
def DeleteWhitelist(request)
body = send_request('DeleteWhitelist', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DeleteWhitelistResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 用于查询 app 监控多维分析数据
# @param request: Request instance for DescribeAppDimensionMetrics.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeAppDimensionMetricsRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeAppDimensionMetricsResponse`
def DescribeAppDimensionMetrics(request)
body = send_request('DescribeAppDimensionMetrics', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeAppDimensionMetricsResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取 app 监控指标数据
# @param request: Request instance for DescribeAppMetricsData.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeAppMetricsDataRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeAppMetricsDataResponse`
def DescribeAppMetricsData(request)
body = send_request('DescribeAppMetricsData', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeAppMetricsDataResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 查询 app 监控个例样本详情列表
# @param request: Request instance for DescribeAppSingleCaseDetailList.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeAppSingleCaseDetailListRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeAppSingleCaseDetailListResponse`
def DescribeAppSingleCaseDetailList(request)
body = send_request('DescribeAppSingleCaseDetailList', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeAppSingleCaseDetailListResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 查询 app 监控个例聚合列表
# @param request: Request instance for DescribeAppSingleCaseList.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeAppSingleCaseListRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeAppSingleCaseListResponse`
def DescribeAppSingleCaseList(request)
body = send_request('DescribeAppSingleCaseList', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeAppSingleCaseListResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 转发monitor查询
# @param request: Request instance for DescribeData.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataResponse`
def DescribeData(request)
body = send_request('DescribeData', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataCustomUrl信息
# @param request: Request instance for DescribeDataCustomUrl.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataCustomUrlRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataCustomUrlResponse`
def DescribeDataCustomUrl(request)
body = send_request('DescribeDataCustomUrl', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataCustomUrlResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataEventUrl信息
# @param request: Request instance for DescribeDataEventUrl.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataEventUrlRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataEventUrlResponse`
def DescribeDataEventUrl(request)
body = send_request('DescribeDataEventUrl', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataEventUrlResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataFetchProject信息。已下线,请使用DescribeDataFetchUrl
# @param request: Request instance for DescribeDataFetchProject.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataFetchProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataFetchProjectResponse`
def DescribeDataFetchProject(request)
body = send_request('DescribeDataFetchProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataFetchProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataFetchUrl信息
# @param request: Request instance for DescribeDataFetchUrl.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataFetchUrlRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataFetchUrlResponse`
def DescribeDataFetchUrl(request)
body = send_request('DescribeDataFetchUrl', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataFetchUrlResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataFetchUrlInfo信息
# @param request: Request instance for DescribeDataFetchUrlInfo.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataFetchUrlInfoRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataFetchUrlInfoResponse`
def DescribeDataFetchUrlInfo(request)
body = send_request('DescribeDataFetchUrlInfo', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataFetchUrlInfoResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取loginfo信息
# @param request: Request instance for DescribeDataLogUrlInfo.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataLogUrlInfoRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataLogUrlInfoResponse`
def DescribeDataLogUrlInfo(request)
body = send_request('DescribeDataLogUrlInfo', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataLogUrlInfoResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取LogUrlStatistics信息
# @param request: Request instance for DescribeDataLogUrlStatistics.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataLogUrlStatisticsRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataLogUrlStatisticsResponse`
def DescribeDataLogUrlStatistics(request)
body = send_request('DescribeDataLogUrlStatistics', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataLogUrlStatisticsResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取PerformancePage信息
# @param request: Request instance for DescribeDataPerformancePage.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataPerformancePageRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataPerformancePageResponse`
def DescribeDataPerformancePage(request)
body = send_request('DescribeDataPerformancePage', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataPerformancePageResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取PvUrlInfo信息
# @param request: Request instance for DescribeDataPvUrlInfo.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataPvUrlInfoRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataPvUrlInfoResponse`
def DescribeDataPvUrlInfo(request)
body = send_request('DescribeDataPvUrlInfo', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataPvUrlInfoResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataPvUrlStatistics信息
# @param request: Request instance for DescribeDataPvUrlStatistics.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataPvUrlStatisticsRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataPvUrlStatisticsResponse`
def DescribeDataPvUrlStatistics(request)
body = send_request('DescribeDataPvUrlStatistics', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataPvUrlStatisticsResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目上报量
# @param request: Request instance for DescribeDataReportCount.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataReportCountRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataReportCountResponse`
def DescribeDataReportCount(request)
body = send_request('DescribeDataReportCount', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataReportCountResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataSetUrlStatistics信息
# @param request: Request instance for DescribeDataSetUrlStatistics.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataSetUrlStatisticsRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataSetUrlStatisticsResponse`
def DescribeDataSetUrlStatistics(request)
body = send_request('DescribeDataSetUrlStatistics', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataSetUrlStatisticsResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataStaticProject信息
# @param request: Request instance for DescribeDataStaticProject.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataStaticProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataStaticProjectResponse`
def DescribeDataStaticProject(request)
body = send_request('DescribeDataStaticProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataStaticProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataStaticResource信息
# @param request: Request instance for DescribeDataStaticResource.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataStaticResourceRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataStaticResourceResponse`
def DescribeDataStaticResource(request)
body = send_request('DescribeDataStaticResource', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataStaticResourceResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataStaticUrl信息
# @param request: Request instance for DescribeDataStaticUrl.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataStaticUrlRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataStaticUrlResponse`
def DescribeDataStaticUrl(request)
body = send_request('DescribeDataStaticUrl', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataStaticUrlResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取DescribeDataWebVitalsPage信息,用户核心活动信息
# 页面加载性能之Web Vitals。性能关键点
# @param request: Request instance for DescribeDataWebVitalsPage.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeDataWebVitalsPageRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeDataWebVitalsPageResponse`
def DescribeDataWebVitalsPage(request)
body = send_request('DescribeDataWebVitalsPage', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeDataWebVitalsPageResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取首页错误信息
# @param request: Request instance for DescribeError.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeErrorRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeErrorResponse`
def DescribeError(request)
body = send_request('DescribeError', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeErrorResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取应用上报抽样信息
# @param request: Request instance for DescribeProjectLimits.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeProjectLimitsRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeProjectLimitsResponse`
def DescribeProjectLimits(request)
body = send_request('DescribeProjectLimits', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeProjectLimitsResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目列表(实例创建的团队下的项目列表)
# @param request: Request instance for DescribeProjects.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeProjectsRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeProjectsResponse`
def DescribeProjects(request)
body = send_request('DescribeProjects', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeProjectsResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目下的PV列表
# @param request: Request instance for DescribePvList.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribePvListRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribePvListResponse`
def DescribePvList(request)
body = send_request('DescribePvList', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribePvListResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取上传文件存储的临时密钥
# @param request: Request instance for DescribeReleaseFileSign.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeReleaseFileSignRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeReleaseFileSignResponse`
def DescribeReleaseFileSign(request)
body = send_request('DescribeReleaseFileSign', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeReleaseFileSignResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取应用对应sourcemap文件列表
# @param request: Request instance for DescribeReleaseFiles.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeReleaseFilesRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeReleaseFilesResponse`
def DescribeReleaseFiles(request)
body = send_request('DescribeReleaseFiles', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeReleaseFilesResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目下的日志聚合信息
# @param request: Request instance for DescribeRumGroupLog.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeRumGroupLogRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeRumGroupLogResponse`
def DescribeRumGroupLog(request)
body = send_request('DescribeRumGroupLog', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeRumGroupLogResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目下的日志列表(实例创建的项目下的日志列表)
# @param request: Request instance for DescribeRumLogExport.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeRumLogExportRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeRumLogExportResponse`
def DescribeRumLogExport(request)
body = send_request('DescribeRumLogExport', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeRumLogExportResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目下的日志导出列表
# @param request: Request instance for DescribeRumLogExports.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeRumLogExportsRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeRumLogExportsResponse`
def DescribeRumLogExports(request)
body = send_request('DescribeRumLogExports', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeRumLogExportsResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目下的日志列表(实例创建的项目下的日志列表)
# @param request: Request instance for DescribeRumLogList.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeRumLogListRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeRumLogListResponse`
def DescribeRumLogList(request)
body = send_request('DescribeRumLogList', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeRumLogListResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目下的日志列表,分钟级
# @param request: Request instance for DescribeRumStatsLogList.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeRumStatsLogListRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeRumStatsLogListResponse`
def DescribeRumStatsLogList(request)
body = send_request('DescribeRumStatsLogList', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeRumStatsLogListResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取首页分数列表
# @param request: Request instance for DescribeScores.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeScoresRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeScoresResponse`
def DescribeScores(request)
body = send_request('DescribeScores', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeScoresResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 查询片区信息
# @param request: Request instance for DescribeTawAreas.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeTawAreasRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeTawAreasResponse`
def DescribeTawAreas(request)
body = send_request('DescribeTawAreas', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeTawAreasResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 查询实例信息
# @param request: Request instance for DescribeTawInstances.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeTawInstancesRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeTawInstancesResponse`
def DescribeTawInstances(request)
body = send_request('DescribeTawInstances', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeTawInstancesResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取项目下的UV列表
# @param request: Request instance for DescribeUvList.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeUvListRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeUvListResponse`
def DescribeUvList(request)
body = send_request('DescribeUvList', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeUvListResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 获取白名单列表
# @param request: Request instance for DescribeWhitelists.
# @type request: :class:`Tencentcloud::rum::V20210622::DescribeWhitelistsRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::DescribeWhitelistsResponse`
def DescribeWhitelists(request)
body = send_request('DescribeWhitelists', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeWhitelistsResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 修改 RUM 业务系统
# @param request: Request instance for ModifyInstance.
# @type request: :class:`Tencentcloud::rum::V20210622::ModifyInstanceRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::ModifyInstanceResponse`
def ModifyInstance(request)
body = send_request('ModifyInstance', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = ModifyInstanceResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 修改 RUM 应用信息
# @param request: Request instance for ModifyProject.
# @type request: :class:`Tencentcloud::rum::V20210622::ModifyProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::ModifyProjectResponse`
def ModifyProject(request)
body = send_request('ModifyProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = ModifyProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 新增修改限流
# @param request: Request instance for ModifyProjectLimit.
# @type request: :class:`Tencentcloud::rum::V20210622::ModifyProjectLimitRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::ModifyProjectLimitResponse`
def ModifyProjectLimit(request)
body = send_request('ModifyProjectLimit', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = ModifyProjectLimitResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 恢复 RUM 业务系统,恢复后,用户可以正常使用和上报数据
# @param request: Request instance for ResumeInstance.
# @type request: :class:`Tencentcloud::rum::V20210622::ResumeInstanceRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::ResumeInstanceResponse`
def ResumeInstance(request)
body = send_request('ResumeInstance', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = ResumeInstanceResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 恢复应用使用与上报数据
# @param request: Request instance for ResumeProject.
# @type request: :class:`Tencentcloud::rum::V20210622::ResumeProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::ResumeProjectResponse`
def ResumeProject(request)
body = send_request('ResumeProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = ResumeProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 停止实例
# @param request: Request instance for StopInstance.
# @type request: :class:`Tencentcloud::rum::V20210622::StopInstanceRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::StopInstanceResponse`
def StopInstance(request)
body = send_request('StopInstance', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = StopInstanceResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 停止项目使用与上报数据
# @param request: Request instance for StopProject.
# @type request: :class:`Tencentcloud::rum::V20210622::StopProjectRequest`
# @rtype: :class:`Tencentcloud::rum::V20210622::StopProjectResponse`
def StopProject(request)
body = send_request('StopProject', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = StopProjectResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
reqid = response['Response']['RequestId']
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
end
rescue TencentCloud::Common::TencentCloudSDKException => e
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
end
end
end
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tencentcloud/tencentcloud-sdk-ruby.git
git@gitee.com:tencentcloud/tencentcloud-sdk-ruby.git
tencentcloud
tencentcloud-sdk-ruby
tencentcloud-sdk-ruby
master

搜索帮助