Class GrayReleaseController

java.lang.Object
com.bytedesk.core.gray_release.GrayReleaseController

@RestController @RequestMapping("/api/v1/gray-release") public class GrayReleaseController extends Object
灰度发布控制器
  • Field Details

  • Constructor Details

    • GrayReleaseController

      public GrayReleaseController()
  • Method Details

    • initializeFeature

      @PostMapping("/features/{feature}/init") public org.springframework.http.ResponseEntity<?> initializeFeature(@PathVariable String feature)
      初始化功能的灰度发布
    • adjustRollout

      @PutMapping("/features/{feature}/rollout") public org.springframework.http.ResponseEntity<?> adjustRollout(@PathVariable String feature, @RequestParam int percentage)
      调整灰度比例
    • pauseRollout

      @PostMapping("/features/{feature}/pause") public org.springframework.http.ResponseEntity<?> pauseRollout(@PathVariable String feature)
      暂停灰度发布
    • resumeRollout

      @PostMapping("/features/{feature}/resume") public org.springframework.http.ResponseEntity<?> resumeRollout(@PathVariable String feature)
      恢复灰度发布
    • completeRollout

      @PostMapping("/features/{feature}/complete") public org.springframework.http.ResponseEntity<?> completeRollout(@PathVariable String feature)
      完成灰度发布
    • addToWhitelist

      @PostMapping("/features/{feature}/whitelist/{userUid}") public org.springframework.http.ResponseEntity<?> addToWhitelist(@PathVariable String feature, @PathVariable String userUid)
      添加白名单用户
    • getFeatureStatus

      @GetMapping("/features/{feature}") public org.springframework.http.ResponseEntity<GrayReleaseStatus> getFeatureStatus(@PathVariable String feature)
      获取功能状态
    • getStats

      @GetMapping("/features/{feature}/stats") public org.springframework.http.ResponseEntity<GrayReleaseFeatureStatistics> getStats(@PathVariable String feature, @RequestParam(required=false) Integer hours)
      获取功能统计数据