describe_domain_https_data.go 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. if err != nil {
  33. errChan <- err
  34. } else {
  35. responseChan <- response
  36. }
  37. })
  38. if err != nil {
  39. errChan <- err
  40. close(responseChan)
  41. close(errChan)
  42. }
  43. return responseChan, errChan
  44. }
  45. func (client *Client) DescribeDomainHttpsDataWithCallback(request *DescribeDomainHttpsDataRequest, callback func(response *DescribeDomainHttpsDataResponse, err error)) <-chan int {
  46. result := make(chan int, 1)
  47. err := client.AddAsyncTask(func() {
  48. var response *DescribeDomainHttpsDataResponse
  49. var err error
  50. defer close(result)
  51. response, err = client.DescribeDomainHttpsData(request)
  52. callback(response, err)
  53. result <- 1
  54. })
  55. if err != nil {
  56. defer close(result)
  57. callback(nil, err)
  58. result <- 0
  59. }
  60. return result
  61. }
  62. type DescribeDomainHttpsDataRequest struct {
  63. *requests.RpcRequest
  64. EndTime string `position:"Query" name:"EndTime"`
  65. Cls string `position:"Query" name:"Cls"`
  66. StartTime string `position:"Query" name:"StartTime"`
  67. Interval string `position:"Query" name:"Interval"`
  68. FixTimeGap string `position:"Query" name:"FixTimeGap"`
  69. OwnerId requests.Integer `position:"Query" name:"OwnerId"`
  70. SecurityToken string `position:"Query" name:"SecurityToken"`
  71. DomainType string `position:"Query" name:"DomainType"`
  72. DomainNames string `position:"Query" name:"DomainNames"`
  73. TimeMerge string `position:"Query" name:"TimeMerge"`
  74. }
  75. type DescribeDomainHttpsDataResponse struct {
  76. *responses.BaseResponse
  77. RequestId string `json:"RequestId" xml:"RequestId"`
  78. DomainNames string `json:"DomainNames" xml:"DomainNames"`
  79. DataInterval string `json:"DataInterval" xml:"DataInterval"`
  80. HttpsStatisticsInfos struct {
  81. HttpsStatisticsInfo []struct {
  82. Time string `json:"Time" xml:"Time"`
  83. L1HttpsBps float64 `json:"L1HttpsBps" xml:"L1HttpsBps"`
  84. L1HttpsInnerBps float64 `json:"L1HttpsInnerBps" xml:"L1HttpsInnerBps"`
  85. L1HttpsOutBps float64 `json:"L1HttpsOutBps" xml:"L1HttpsOutBps"`
  86. L1HttpsQps int `json:"L1HttpsQps" xml:"L1HttpsQps"`
  87. L1HttpsInnerQps int `json:"L1HttpsInnerQps" xml:"L1HttpsInnerQps"`
  88. L1HttpsOutQps int `json:"L1HttpsOutQps" xml:"L1HttpsOutQps"`
  89. L1HttpsTtraf int `json:"L1HttpsTtraf" xml:"L1HttpsTtraf"`
  90. HttpsSrcBps int `json:"HttpsSrcBps" xml:"HttpsSrcBps"`
  91. HttpsSrcTraf int `json:"HttpsSrcTraf" xml:"HttpsSrcTraf"`
  92. L1HttpsInnerTraf int `json:"L1HttpsInnerTraf" xml:"L1HttpsInnerTraf"`
  93. L1HttpsOutTraf int `json:"L1HttpsOutTraf" xml:"L1HttpsOutTraf"`
  94. HttpsByteHitRate float64 `json:"HttpsByteHitRate" xml:"HttpsByteHitRate"`
  95. HttpsReqHitRate float64 `json:"HttpsReqHitRate" xml:"HttpsReqHitRate"`
  96. L1HttpsHitRate float64 `json:"L1HttpsHitRate" xml:"L1HttpsHitRate"`
  97. L1HttpsInnerAcc float64 `json:"L1HttpsInner_acc" xml:"L1HttpsInner_acc"`
  98. L1HttpsOutAcc float64 `json:"L1HttpsOut_acc" xml:"L1HttpsOut_acc"`
  99. L1HttpsTacc float64 `json:"L1HttpsTacc" xml:"L1HttpsTacc"`
  100. L1DyHttpsBps float64 `json:"L1DyHttpsBps" xml:"L1DyHttpsBps"`
  101. L1DyHttpsInnerBps float64 `json:"L1DyHttpsInnerBps" xml:"L1DyHttpsInnerBps"`
  102. L1DyHttpsOutBps float64 `json:"L1DyHttpsOutBps" xml:"L1DyHttpsOutBps"`
  103. L1StHttpsBps float64 `json:"L1StHttpsBps" xml:"L1StHttpsBps"`
  104. L1StHttpsInnerBps float64 `json:"L1StHttpsInnerBps" xml:"L1StHttpsInnerBps"`
  105. L1StHttpsOutBps float64 `json:"L1StHttpsOutBps" xml:"L1StHttpsOutBps"`
  106. L1DyHttpsTraf float64 `json:"l1DyHttpsTraf" xml:"l1DyHttpsTraf"`
  107. L1DyHttpsInnerTraf float64 `json:"L1DyHttpsInnerTraf" xml:"L1DyHttpsInnerTraf"`
  108. L1DyHttpsOutTraf float64 `json:"L1DyHttpsOutTraf" xml:"L1DyHttpsOutTraf"`
  109. L1StHttpsTraf float64 `json:"L1StHttpsTraf" xml:"L1StHttpsTraf"`
  110. L1StHttpsInnerTraf float64 `json:"L1StHttpsInnerTraf" xml:"L1StHttpsInnerTraf"`
  111. L1StHttpsOutTraf float64 `json:"L1StHttpsOutTraf" xml:"L1StHttpsOutTraf"`
  112. L1DyHttpsQps float64 `json:"L1DyHttpsQps" xml:"L1DyHttpsQps"`
  113. L1DyHttpsInnerQps float64 `json:"L1DyHttpsInnerQps" xml:"L1DyHttpsInnerQps"`
  114. L1DyHttpsOutQps float64 `json:"L1DyHttpsOutQps" xml:"L1DyHttpsOutQps"`
  115. L1StHttpsQps float64 `json:"L1StHttpsQps" xml:"L1StHttpsQps"`
  116. L1StHttpsInnerQps float64 `json:"L1StHttpsInnerQps" xml:"L1StHttpsInnerQps"`
  117. L1StHttpsOutQps float64 `json:"L1StHttpsOutQps" xml:"L1StHttpsOutQps"`
  118. L1DyHttpsAcc float64 `json:"L1DyHttpsAcc" xml:"L1DyHttpsAcc"`
  119. L1DyHttpsInnerAcc float64 `json:"L1DyHttpsInnerAcc" xml:"L1DyHttpsInnerAcc"`
  120. L1DyHttpsOutAcc float64 `json:"L1DyHttpsOutAcc" xml:"L1DyHttpsOutAcc"`
  121. L1StHttpsAcc float64 `json:"L1StHttpsAcc" xml:"L1StHttpsAcc"`
  122. L1StHttpsInnerAcc float64 `json:"L1StHttpsInnerAcc" xml:"L1StHttpsInnerAcc"`
  123. L1StHttpsOutAcc float64 `json:"L1StHttpsOutAcc" xml:"L1StHttpsOutAcc"`
  124. } `json:"HttpsStatisticsInfo" xml:"HttpsStatisticsInfo"`
  125. } `json:"HttpsStatisticsInfos" xml:"HttpsStatisticsInfos"`
  126. }
  127. func CreateDescribeDomainHttpsDataRequest() (request *DescribeDomainHttpsDataRequest) {
  128. request = &DescribeDomainHttpsDataRequest{
  129. RpcRequest: &requests.RpcRequest{},
  130. }
  131. request.InitWithApiInfo("Cdn", "2014-11-11", "DescribeDomainHttpsData", "", "")
  132. return
  133. }
  134. func CreateDescribeDomainHttpsDataResponse() (response *DescribeDomainHttpsDataResponse) {
  135. response = &DescribeDomainHttpsDataResponse{
  136. BaseResponse: &responses.BaseResponse{},
  137. }
  138. return
  139. }