@CrossOrigin @RestController public class SentinelRuleApi extends Object
| Modifier and Type | Field and Description |
|---|---|
private CommandService |
commandService |
| Constructor and Description |
|---|
SentinelRuleApi(CommandService commandService) |
| Modifier and Type | Method and Description |
|---|---|
void |
createDegradingRule(@Valid CreateDegradingRuleRequest rule) |
void |
createFlowRule(@Valid CreateFlowRuleRequest rule) |
void |
deleteDegradingRule(@Valid DeleteRuleRequest flowRule) |
void |
deleteFlowRule(@Valid DeleteRuleRequest flowRule) |
private final CommandService commandService
public SentinelRuleApi(CommandService commandService)
@PostMapping(value="/api/sentinel/flow/create")
public void createFlowRule(@Valid @RequestBody
@Valid CreateFlowRuleRequest rule)
@PostMapping(value="/api/sentinel/flow/delete")
public void deleteFlowRule(@Valid @RequestBody
@Valid DeleteRuleRequest flowRule)
@PostMapping(value="/api/sentinel/degrading/create")
public void createDegradingRule(@Valid @RequestBody
@Valid CreateDegradingRuleRequest rule)
@PostMapping(value="/api/sentinel/degrading/delete")
public void deleteDegradingRule(@Valid @RequestBody
@Valid DeleteRuleRequest flowRule)
Copyright © 2020–2021. All rights reserved.