You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

pcm-cloud.api 3.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. syntax = "v1"
  2. info(
  3. title: "cloud core"
  4. desc: "cloud core微服务"
  5. author: "zhangwei"
  6. email: ""
  7. )
  8. /******************find datasetList start*************************/
  9. type (
  10. clusterInfoReq {
  11. ClusterName string `json:"clusterName"`
  12. }
  13. clusterInfoResp {
  14. AdapterName string `json:"adapterName"`
  15. AdapterVersion string `json:"adapterVersion"`
  16. TaskRunningNum int `json:"taskRunningNum"`
  17. TaskTodayNum int `json:"taskTodayNum"`
  18. TaskHistoryNum int `json:"taskHistoryNum"`
  19. TaskFailedNum int `json:"taskFailedNum"`
  20. }
  21. )
  22. type ControllerMetricsReq {
  23. Metrics []string `form:"metrics"`
  24. ParticipantId int64 `form:"participantId"`
  25. Pod string `form:"pod,optional"`
  26. WorkloadName string `form:"workloadName,optional"`
  27. Steps string `form:"steps"`
  28. Start string `form:"start"`
  29. End string `form:"end"`
  30. Level string `form:"level,optional"`
  31. }
  32. type (
  33. RegisterClusterReq {
  34. Name string `form:"name"` // 名称
  35. Address string `form:"address"` // 地址
  36. token string `form:"token"` // 数算集群token
  37. MetricsUrl string `form:"metricsUrl"` //监控url
  38. }
  39. deleteClusterReq {
  40. Name string `form:"name"` // 名称
  41. }
  42. CloudResp {
  43. Code string `json:"code"`
  44. Msg string `json:"msg"`
  45. Data string `json:"data"`
  46. }
  47. TenantInfo {
  48. Id int64 `json:"id"` // id
  49. TenantName string `json:"tenantName"` // 租户名称
  50. TenantDesc string `json:"tenantDesc"` // 描述信息
  51. Clusters string `json:"clusters"` // 集群名称,用","分割
  52. Type int64 `json:"type"` // 租户所属(0数算,1超算,2智算)
  53. DeletedFlag int64 `json:"deletedFlag"` // 是否删除
  54. CreatedBy int64 `json:"createdBy"` // 创建人
  55. CreatedTime string `json:"createdTime"` // 创建时间
  56. UpdatedBy int64 `json:"updatedBy"` // 更新人
  57. UpdatedTime string `json:"updated_time"` // 更新时间
  58. }
  59. UpdateTenantReq {
  60. Tenants [] TenantInfo `json:"tenants"`
  61. }
  62. )
  63. type ControllerMetricsResp {
  64. Data interface{} `json:"data"`
  65. }
  66. type ApplyReq {
  67. YamlString string `json:"yamlString" copier:"yamlString"`
  68. }
  69. type DeleteReq {
  70. YamlString string `json:"yamlString" copier:"yamlString"`
  71. }
  72. type ApplyResp {
  73. Code int32 `json:"code,omitempty"`
  74. Msg string `json:"msg,omitempty"`
  75. DataSet []DataSet `json:"dataSet,omitempty"`
  76. }
  77. type DeleteResp {
  78. Code int32 `json:"code,omitempty"`
  79. Msg string `json:"msg,omitempty"`
  80. Data string `json:"data,omitempty"`
  81. }
  82. type DataSet {
  83. ApiVersion int32 `json:"apiVersion,omitempty"`
  84. Kind string `json:"kind,omitempty"`
  85. Name string `json:"name,omitempty"`
  86. NameSpace string `json:"nameSpace,omitempty"`
  87. }
  88. type cloudListResp {
  89. Clouds []Cloud `json:"clouds"`
  90. }
  91. type Cloud {
  92. Id int64 `json:"id"` // id
  93. TaskId int64 `json:"taskId"` // 任务id
  94. ParticipantId int64 `json:"participantId"` // 集群静态信息id
  95. ApiVersion string `json:"apiVersion"`
  96. Name string `json:"name"` // 名称
  97. Namespace string `json:"namespace"` // 命名空间
  98. Kind string `json:"kind"` // 种类
  99. Status string `json:"status"` // 状态
  100. StartTime string `json:"startTime"` // 开始时间
  101. RunningTime int64 `json:"runningTime"` // 运行时长
  102. CreatedBy int64 `json:"createdBy"` // 创建人
  103. CreatedTime string `json:"createdTime"` // 创建时间
  104. Result string `json:"result"`
  105. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.