[
{
"ctime": "string",
"description": "string",
"enable": true,
"error_conditions": [
{
"condition": {
"type": 0,
"value": "string",
"value_type": 0
},
"input_type": 0
}
],
"etime": "string",
"fallbackConfig": {
"enable": true,
"response": {
"body": "string",
"code": 0,
"headers": [
{
"key": "string",
"value": "string"
}
]
}
},
"faultDetectConfig": {
"enable": true
},
"id": "string",
"level": 0,
"max_ejection_percent": 0,
"mtime": "string",
"name": "string",
"namespace": "string",
"recoverCondition": {
"consecutiveSuccess": 0,
"sleep_window": 0
},
"revision": "string",
"rule_matcher": {
"destination": {
"method": {
"type": 0,
"value": "string",
"value_type": 0
},
"namespace": "string",
"service": "string"
},
"source": {
"namespace": "string",
"service": "string"
}
},
"trigger_condition": [
{
"error_count": 0,
"error_percent": 0,
"interval": 0,
"minimum_request": 0,
"trigger_type": 0
}
]
}
]
curl --location --request PUT 'http://119.91.66.223:8090/naming/v1/circuitbreaker/rules' \
--header 'X-Polaris-Token;' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"ctime": "string",
"description": "string",
"enable": true,
"error_conditions": [
{
"condition": {
"type": 0,
"value": "string",
"value_type": 0
},
"input_type": 0
}
],
"etime": "string",
"fallbackConfig": {
"enable": true,
"response": {
"body": "string",
"code": 0,
"headers": [
{
"key": "string",
"value": "string"
}
]
}
},
"faultDetectConfig": {
"enable": true
},
"id": "string",
"level": 0,
"max_ejection_percent": 0,
"mtime": "string",
"name": "string",
"namespace": "string",
"recoverCondition": {
"consecutiveSuccess": 0,
"sleep_window": 0
},
"revision": "string",
"rule_matcher": {
"destination": {
"method": {
"type": 0,
"value": "string",
"value_type": 0
},
"namespace": "string",
"service": "string"
},
"source": {
"namespace": "string",
"service": "string"
}
},
"trigger_condition": [
{
"error_count": 0,
"error_percent": 0,
"interval": 0,
"minimum_request": 0,
"trigger_type": 0
}
]
}
]'
{
"code": 0,
"info": "string"
}