alertdashboard.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 monitor
  15. import (
  16. "yunion.io/x/onecloud/pkg/apis"
  17. )
  18. type AlertDashBoardCreateInput struct {
  19. apis.Meta
  20. apis.ScopedResourceCreateInput
  21. apis.StandaloneResourceCreateInput
  22. Refresh string `json:"refresh"`
  23. }
  24. type AlertDashBoardListInput struct {
  25. AlertListInput
  26. }
  27. type AlertDashBoardDetails struct {
  28. AlertDetails
  29. AlertPanelDetails []AlertPanelDetail `json:"alert_panel_details"`
  30. }
  31. type AlertPanelDetail struct {
  32. PanelName string `json:"panel_name"`
  33. PanelId string `json:"panel_id"`
  34. Refresh string `json:"refresh"`
  35. Setting *AlertSetting
  36. PanelDetails
  37. }
  38. type AlertClonePanelInput struct {
  39. PanelId string `json:"panel_id"`
  40. ClonePanelName string `json:"clone_panel_name"`
  41. }
  42. type AlertCloneDashboardInput struct {
  43. CloneName string `json:"clone_name"`
  44. }
  45. type AlertPanelSetOrderInput struct {
  46. Order []struct {
  47. PanelId string `json:"panel_id"`
  48. Index int `json:"index"`
  49. } `json:"order"`
  50. }