Skip to content

Commit 4931b92

Browse files
committed
feat(api_probe): add detailed_export + response_conds probes — minimal Create bodies, plus candidateValues for enable_parsers / limit_parsers / limit_size / limit_deep / limit_chance
1 parent 5d52e8f commit 4931b92

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/api_probe/main.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ var probes = []Probe{
7878
{RuleType: "parser_state", Base: map[string]any{"parser": "json_doc", "state": "enabled", "point": [][]string{{"post"}}}},
7979
{RuleType: "overlimit_res_settings", Base: map[string]any{"overlimit_time": 1000}},
8080

81+
// Planned rule types (not yet exposed by the provider — probing API ground truth).
82+
{RuleType: "detailed_export", Base: map[string]any{"mode": "keep_headers"}},
83+
{RuleType: "response_conds", Base: map[string]any{"enable_parsers": false}},
84+
8185
// Rate limiting (plain — non-mitigation)
8286
{RuleType: "rate_limit", Base: map[string]any{"point": [][]string{{"get_all"}}}},
8387

@@ -165,6 +169,11 @@ var candidateValues = map[string]any{
165169
"action": nil, // handled specially
166170
"comment": "api-probe",
167171
"title": "api-probe",
172+
"enable_parsers": false,
173+
"limit_parsers": []string{},
174+
"limit_size": 0,
175+
"limit_deep": 0,
176+
"limit_chance": 0.0,
168177
"validated": false,
169178
"variativity_disabled": true,
170179
"active": true,

0 commit comments

Comments
 (0)