Package com.bytedesk.core.gray_release
Class GrayReleaseController
java.lang.Object
com.bytedesk.core.gray_release.GrayReleaseController
@RestController
@RequestMapping("/api/v1/gray-release")
public class GrayReleaseController
extends Object
灰度发布控制器
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GrayReleaseService
private final GrayReleaseMetricsService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
addToWhitelist
(String feature, String userUid) 添加白名单用户org.springframework.http.ResponseEntity<?>
adjustRollout
(String feature, int percentage) 调整灰度比例org.springframework.http.ResponseEntity<?>
completeRollout
(String feature) 完成灰度发布org.springframework.http.ResponseEntity<GrayReleaseStatus>
getFeatureStatus
(String feature) 获取功能状态org.springframework.http.ResponseEntity<GrayReleaseFeatureStatistics>
获取功能统计数据org.springframework.http.ResponseEntity<?>
initializeFeature
(String feature) 初始化功能的灰度发布org.springframework.http.ResponseEntity<?>
pauseRollout
(String feature) 暂停灰度发布org.springframework.http.ResponseEntity<?>
resumeRollout
(String feature) 恢复灰度发布
-
Field Details
-
grayReleaseService
-
metricsService
-
-
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) 获取功能统计数据
-