Skip to content

Commit

Permalink
fix: modify read
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmkn committed Dec 24, 2024
1 parent 2e3bfa3 commit 34b6389
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tencentcloud/services/monitor/service_tencentcloud_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2613,6 +2613,7 @@ func (me *MonitorService) DescribeMonitorTmpMultipleWritesById(ctx context.Conte
logId := tccommon.GetLogId(ctx)

request := monitorv20180724.NewDescribeRemoteURLsRequest()
response := monitorv20180724.NewDescribeRemoteURLsResponse()
request.InstanceId = helper.String(instanceId)
request.RemoteURLs = []*string{helper.String(url)}

Expand All @@ -2624,7 +2625,19 @@ func (me *MonitorService) DescribeMonitorTmpMultipleWritesById(ctx context.Conte

ratelimit.Check(request.GetAction())

response, err := me.client.UseMonitorV20180724Client().DescribeRemoteURLs(request)
err := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError {
result, e := me.client.UseMonitorV20180724Client().DescribeRemoteURLs(request)
if e != nil {
return tccommon.RetryError(e)
}
if result == nil {
e = fmt.Errorf("tmp `DescribeRemoteURLs` response not exists")
return resource.NonRetryableError(e)
}

response = result
return nil
})
if err != nil {
errRet = err
return
Expand Down

0 comments on commit 34b6389

Please sign in to comment.