loadbalancer_health_check.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package compute
  15. import (
  16. "yunion.io/x/onecloud/pkg/apis"
  17. )
  18. type LoadbalancerHealthCheckDetails struct {
  19. apis.VirtualResourceDetails
  20. ManagedResourceInfo
  21. CloudregionResourceInfo
  22. }
  23. type LoadbalancerHealthCheckListInput struct {
  24. apis.VirtualResourceListInput
  25. apis.ExternalizedResourceBaseListInput
  26. ManagedResourceListInput
  27. RegionalFilterListInput
  28. }
  29. type SLoadbalancerHealthCheckCreateInput struct {
  30. apis.VirtualResourceCreateInput
  31. CloudregionResourceInput
  32. CloudproviderResourceInput
  33. HealthCheckType string `json:"health_check_type"`
  34. HealthCheckDomain string `json:"health_check_domain"`
  35. HealthCheckURI string `json:"health_check_uri"`
  36. HealthCheckHttpCode string `json:"health_check_http_code"`
  37. HealthCheckMethod string `json:"health_check_method"`
  38. HealthCheckPort int `json:"health_check_port"`
  39. HealthCheckRise int `json:"health_check_rise"`
  40. HealthCheckFall int `json:"health_check_fall"`
  41. HealthCheckTimeout int `json:"health_check_timeout"`
  42. HealthCheckInterval int `json:"health_check_interval"`
  43. HealthCheckReq string `json:"health_check_req"`
  44. HealthCheckExp string `json:"health_check_exp"`
  45. }
  46. type SLoadbalancerHealthCheckUpdateInput struct {
  47. apis.VirtualResourceBaseUpdateInput
  48. }