DescribeFlowDetailInfo.go 851 B

123456789101112131415161718192021222324252627
  1. package essapi
  2. import (
  3. "mtp2_if/logger"
  4. "mtp2_if/utils"
  5. "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
  6. essbasic "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/essbasic/v20210526"
  7. )
  8. func DescribeFlowDetailInfo(agent *essbasic.Agent, flowIds []*string) (response *essbasic.DescribeFlowDetailInfoResponse, err error) {
  9. // 实例化一个请求对象,每个接口都会对应一个request对象
  10. request := essbasic.NewDescribeFlowDetailInfoRequest()
  11. request.Agent = agent
  12. request.FlowIds = flowIds
  13. // 返回的resp是一个DescribeFlowDetailInfoResponse的实例,与请求对象对应
  14. response, err = utils.TencentESSClient.DescribeFlowDetailInfo(request)
  15. if _, ok := err.(*errors.TencentCloudSDKError); ok {
  16. logger.GetLogger().Errorf("An API error has returned: %s", err)
  17. return
  18. }
  19. return
  20. }