MemDashboardWidget.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * <<
  3. * Davinci
  4. * ==
  5. * Copyright (C) 2016 - 2019 EDP
  6. * ==
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. * >>
  17. *
  18. */
  19. package edp.davinci.model;
  20. import edp.core.model.RecordInfo;
  21. import lombok.Data;
  22. import javax.validation.constraints.Min;
  23. @Data
  24. public class MemDashboardWidget extends RecordInfo<MemDashboardWidget> {
  25. @Min(value = 1L, message = "Invalid id")
  26. private Long id;
  27. private String alias;
  28. @Min(value = 1L, message = "Invalid dashboard id")
  29. private Long dashboardId;
  30. @Min(value = 1L, message = "Invalid widget id")
  31. private Long widgetId;
  32. private Integer x;
  33. private Integer y;
  34. @Min(value = 0, message = "Invalid width")
  35. private Integer width;
  36. @Min(value = 0, message = "Invalid height")
  37. private Integer height;
  38. private Boolean polling = false;
  39. private Integer frequency;
  40. private String config;
  41. }