{"anyOf": [{"required": ["cpu"], "type": "object"}, {"required": ["memory"], "type": "object"}], "patternProperties": {"^\\${{\\s*if(.*?)\\s*}}$": {"anyOf": [{"anyOf": [{"required": ["cpu"], "type": "object"}, {"required": ["memory"], "type": "object"}], "patternProperties": {}, "type": "object", "additionalProperties": false, "externalDocs": {"url": "https://docs.architect.io/reference/architect-yml#scalingmetricsspec"}, "properties": {"cpu": {"anyOf": [{"minimum": 0, "type": "integer", "maximum": 100}, {"pattern": "\\${{\\s*(.*?)\\s*}}", "errorMessage": {"pattern": "must be an interpolation ref ex. $__arc__{{ secrets.example }}"}, "type": "string"}], "externalDocs": {"url": "https://docs.architect.io/components/services/#cpu--memory"}}, "memory": {"anyOf": [{"minimum": 0, "type": "integer", "maximum": 100}, {"pattern": "\\${{\\s*(.*?)\\s*}}", "errorMessage": {"pattern": "must be an interpolation ref ex. $__arc__{{ secrets.example }}"}, "type": "string"}], "externalDocs": {"url": "https://docs.architect.io/components/services/#cpu--memory"}}}}]}}, "type": "object", "additionalProperties": false, "externalDocs": {"url": "https://docs.architect.io/reference/architect-yml#scalingmetricsspec"}, "properties": {"cpu": {"anyOf": [{"minimum": 0, "type": "integer", "maximum": 100}, {"pattern": "\\${{\\s*(.*?)\\s*}}", "errorMessage": {"pattern": "must be an interpolation ref ex. $__arc__{{ secrets.example }}"}, "type": "string"}], "externalDocs": {"url": "https://docs.architect.io/components/services/#cpu--memory"}}, "memory": {"anyOf": [{"minimum": 0, "type": "integer", "maximum": 100}, {"pattern": "\\${{\\s*(.*?)\\s*}}", "errorMessage": {"pattern": "must be an interpolation ref ex. $__arc__{{ secrets.example }}"}, "type": "string"}], "externalDocs": {"url": "https://docs.architect.io/components/services/#cpu--memory"}}}}