diff --git a/internal/api/v1/docs/swagger.json b/internal/api/v1/docs/swagger.json index 5f979c8e..29d9018b 100644 --- a/internal/api/v1/docs/swagger.json +++ b/internal/api/v1/docs/swagger.json @@ -5093,11 +5093,6 @@ "x-nullable": false, "x-omitempty": false }, - "isResponseRule": { - "type": "boolean", - "x-nullable": false, - "x-omitempty": false - }, "name": { "type": "string", "x-nullable": false, diff --git a/internal/api/v1/docs/swagger.yaml b/internal/api/v1/docs/swagger.yaml index 8053ae06..a15a9155 100644 --- a/internal/api/v1/docs/swagger.yaml +++ b/internal/api/v1/docs/swagger.yaml @@ -891,8 +891,6 @@ definitions: properties: do: type: string - isResponseRule: - type: boolean name: type: string "on": @@ -1837,12 +1835,12 @@ definitions: type: string kernel_version: type: string - load_avg_5m: - type: string load_avg_15m: type: string load_avg_1m: type: string + load_avg_5m: + type: string mem_pct: type: string mem_total: diff --git a/internal/api/v1/route/playground.go b/internal/api/v1/route/playground.go index 24f2d120..02fba8b5 100644 --- a/internal/api/v1/route/playground.go +++ b/internal/api/v1/route/playground.go @@ -64,7 +64,6 @@ type ParsedRule struct { On string `json:"on"` Do string `json:"do"` ValidationError error `json:"validationError,omitempty"` // we need the structured error, not the plain string - IsResponseRule bool `json:"isResponseRule"` } // @name ParsedRule type FinalRequest struct { @@ -298,7 +297,6 @@ func parseRules(rawRules []RawRule) ([]ParsedRule, rules.Rules, error) { On: onStr, Do: doStr, ValidationError: validationErr, - // IsResponseRule: rule.Requirement()&rules.RequirementFlagResponse != 0, }) // Only add valid rules to execution list