-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add downsampling for ops metrics, add databases metrics in meta stats…
…, optimize service mount api, close connections on adapt_async query functions, fix must_create in db session.save()
- Loading branch information
Showing
21 changed files
with
503 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ __pycache__/ | |
*.sqlite3 | ||
db | ||
db_ops | ||
blog_ops | ||
db-journal | ||
/tests/server/db | ||
/tests/server/db_ops | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by UtilMeta 2.6.0 on 2024-11-13 05:54 | ||
# generator spec: openapi 3.1.0 | ||
# generator class: utilmeta.core.cli.specs.openapi.OpenAPIClientGenerator | ||
from utilmeta.core import api, cli, response, request | ||
import utype | ||
|
||
|
||
class schemas: | ||
class UserSchema(utype.Schema): | ||
__options__ = utype.Options(addition=True) | ||
username: str = utype.Field(required=False, max_length=20) | ||
articles_num: int = utype.Field(ge=0, required=False) | ||
|
||
class ArticleSchema(utype.Schema): | ||
__options__ = utype.Options(addition=True) | ||
id: int = utype.Field(required=False, ge=1, le=2147483647) | ||
author: "schemas.UserSchema" = utype.Field(required=False) | ||
content: str = utype.Field(required=False) | ||
|
||
|
||
class responses: | ||
class article_get_response(response.Response): | ||
content_type = "application/json" | ||
result: schemas.ArticleSchema | ||
|
||
|
||
class APIClient(cli.Client): | ||
@api.get("/article", tags=["article"], description="") | ||
def article_get( | ||
self, id: int = request.QueryParam(required=True) | ||
) -> responses.article_get_response[200]: pass | ||
|
||
|
||
client = APIClient(base_url="http://127.0.0.1:8002") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.