describe_domain_https_data.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. package cdn
  2. //Licensed under the Apache License, Version 2.0 (the "License");
  3. //you may not use this file except in compliance with the License.
  4. //You may obtain a copy of the License at
  5. //
  6. //http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. //Unless required by applicable law or agreed to in writing, software
  9. //distributed under the License is distributed on an "AS IS" BASIS,
  10. //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. //See the License for the specific language governing permissions and
  12. //limitations under the License.
  13. //
  14. // Code generated by Alibaba Cloud SDK Code Generator.
  15. // Changes may cause incorrect behavior and will be lost if the code is regenerated.
  16. import (
  17. "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
  18. "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
  19. )
  20. func (client *Client) DescribeDomainHttpsData(request *DescribeDomainHttpsDataRequest) (response *DescribeDomainHttpsDataResponse, err error) {
  21. response = CreateDescribeDomainHttpsDataResponse()
  22. err = client.DoAction(request, response)
  23. return
  24. }
  25. func (client *Client) DescribeDomainHttpsDataWithChan(request *DescribeDomainHttpsDataRequest) (<-chan *DescribeDomainHttpsDataResponse, <-chan error) {
  26. responseChan := make(chan *DescribeDomainHttpsDataResponse, 1)
  27. errChan := make(chan error, 1)
  28. err := client.AddAsyncTask(func() {
  29. defer close(responseChan)
  30. defer close(errChan)
  31. response, err := client.DescribeDomainHttpsData(request)
  32. responseChan <- response
  33. errChan <- err
  34. })
  35. if err != nil {
  36. errChan <- err
  37. close(responseChan)
  38. close(errChan)
  39. }
  40. return responseChan, errChan
  41. }
  42. func (client *Client) DescribeDomainHttpsDataWithCallback(request *DescribeDomainHttpsDataRequest, callback func(response *DescribeDomainHttpsDataResponse, err error)) <-chan int {
  43. result := make(chan int, 1)
  44. err := client.AddAsyncTask(func() {
  45. var response *DescribeDomainHttpsDataResponse
  46. var err error
  47. defer close(result)
  48. response, err = client.DescribeDomainHttpsData(request)
  49. callback(response, err)
  50. result <- 1
  51. })
  52. if err != nil {
  53. defer close(result)
  54. callback(nil, err)
  55. result <- 0
  56. }
  57. return result
  58. }
  59. type DescribeDomainHttpsDataRequest struct {
  60. *requests.RpcRequest
  61. DomainType string `position:"Query" name:"DomainType"`
  62. FixTimeGap string `position:"Query" name:"FixTimeGap"`
  63. SecurityToken string `position:"Query" name:"SecurityToken"`
  64. TimeMerge string `position:"Query" name:"TimeMerge"`
  65. DomainNames string `position:"Query" name:"DomainNames"`
  66. Action string `position:"Query" name:"Action"`
  67. EndTime string `position:"Query" name:"EndTime"`
  68. Interval string `position:"Query" name:"Interval"`
  69. StartTime string `position:"Query" name:"StartTime"`
  70. Cls string `position:"Query" name:"Cls"`
  71. OwnerId string `position:"Query" name:"OwnerId"`
  72. AccessKeyId string `position:"Query" name:"AccessKeyId"`
  73. }
  74. type DescribeDomainHttpsDataResponse struct {
  75. *responses.BaseResponse
  76. RequestId string `json:"RequestId"`
  77. DomainNames string `json:"DomainNames"`
  78. DataInterval string `json:"DataInterval"`
  79. HttpsStatisticsInfos []struct {
  80. Time string `json:"Time"`
  81. L1HttpsBps float64 `json:"L1HttpsBps"`
  82. L1HttpsInnerBps float64 `json:"L1HttpsInnerBps"`
  83. L1HttpsOutBps float64 `json:"L1HttpsOutBps"`
  84. L1HttpsQps int64 `json:"L1HttpsQps"`
  85. L1HttpsInnerQps int64 `json:"L1HttpsInnerQps"`
  86. L1HttpsOutQps int64 `json:"L1HttpsOutQps"`
  87. L1HttpsTtraf int64 `json:"L1HttpsTtraf"`
  88. HttpsSrcBps int64 `json:"HttpsSrcBps"`
  89. HttpsSrcTraf int64 `json:"HttpsSrcTraf"`
  90. L1HttpsInnerTraf int64 `json:"L1HttpsInnerTraf"`
  91. L1HttpsOutTraf int64 `json:"L1HttpsOutTraf"`
  92. HttpsByteHitRate float64 `json:"HttpsByteHitRate"`
  93. HttpsReqHitRate float64 `json:"HttpsReqHitRate"`
  94. L1HttpsHitRate float64 `json:"L1HttpsHitRate"`
  95. L1HttpsInnerAcc float64 `json:"L1HttpsInner_acc"`
  96. L1HttpsOutAcc float64 `json:"L1HttpsOut_acc"`
  97. L1HttpsTacc float64 `json:"L1HttpsTacc"`
  98. L1DyHttpsBps float64 `json:"L1DyHttpsBps"`
  99. L1DyHttpsInnerBps float64 `json:"L1DyHttpsInnerBps"`
  100. L1DyHttpsOutBps float64 `json:"L1DyHttpsOutBps"`
  101. L1StHttpsBps float64 `json:"L1StHttpsBps"`
  102. L1StHttpsInnerBps float64 `json:"L1StHttpsInnerBps"`
  103. L1StHttpsOutBps float64 `json:"L1StHttpsOutBps"`
  104. L1DyHttpsTraf float64 `json:"l1DyHttpsTraf"`
  105. L1DyHttpsInnerTraf float64 `json:"L1DyHttpsInnerTraf"`
  106. L1DyHttpsOutTraf float64 `json:"L1DyHttpsOutTraf"`
  107. L1StHttpsTraf float64 `json:"L1StHttpsTraf"`
  108. L1StHttpsInnerTraf float64 `json:"L1StHttpsInnerTraf"`
  109. L1StHttpsOutTraf float64 `json:"L1StHttpsOutTraf"`
  110. L1DyHttpsQps float64 `json:"L1DyHttpsQps"`
  111. L1DyHttpsInnerQps float64 `json:"L1DyHttpsInnerQps"`
  112. L1DyHttpsOutQps float64 `json:"L1DyHttpsOutQps"`
  113. L1StHttpsQps float64 `json:"L1StHttpsQps"`
  114. L1StHttpsInnerQps float64 `json:"L1StHttpsInnerQps"`
  115. L1StHttpsOutQps float64 `json:"L1StHttpsOutQps"`
  116. L1DyHttpsAcc float64 `json:"L1DyHttpsAcc"`
  117. L1DyHttpsInnerAcc float64 `json:"L1DyHttpsInnerAcc"`
  118. L1DyHttpsOutAcc float64 `json:"L1DyHttpsOutAcc"`
  119. L1StHttpsAcc float64 `json:"L1StHttpsAcc"`
  120. L1StHttpsInnerAcc float64 `json:"L1StHttpsInnerAcc"`
  121. L1StHttpsOutAcc float64 `json:"L1StHttpsOutAcc"`
  122. } `json:"HttpsStatisticsInfos"`
  123. }
  124. func CreateDescribeDomainHttpsDataRequest() (request *DescribeDomainHttpsDataRequest) {
  125. request = &DescribeDomainHttpsDataRequest{
  126. RpcRequest: &requests.RpcRequest{},
  127. }
  128. request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainHttpsData", "", "")
  129. return
  130. }
  131. func CreateDescribeDomainHttpsDataResponse() (response *DescribeDomainHttpsDataResponse) {
  132. response = &DescribeDomainHttpsDataResponse{
  133. BaseResponse: &responses.BaseResponse{},
  134. }
  135. return
  136. }