Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
류은제
bai-monitoring-api
Commits
d0714422
Commit
d0714422
authored
Mar 14, 2023
by
류은제
Browse files
Update README.md
parent
d0c3734e
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d0714422
...
@@ -22,10 +22,10 @@ This is a api app which returns Backend.ai agent's current utilizations through
...
@@ -22,10 +22,10 @@ This is a api app which returns Backend.ai agent's current utilizations through
Graphql api is used for fetching data from [ Backend.ai manager hub server ].
Graphql api is used for fetching data from [ Backend.ai manager hub server ].
"generate_signature()" function generates all the signature needed for the connections with Backend.ai manager hub server.
-
"generate_signature()" function generates all the signature needed for the connections with Backend.ai manager hub server.
"query_agent_list()" function queries some fields like {'id','occupied_slots','available_slots','live_stat'} from Agent Class.
-
"query_agent_list()" function queries some fields like {'id','occupied_slots','available_slots','live_stat'} from Agent Class.
"extract_utilization()" function makes json results we want
-
"extract_utilization()" function makes json results we want
"myfunction_api()" function includes the Flask framework. Flask could make this code to an api application.
-
"myfunction_api()" function includes the Flask framework. Flask could make this code to an api application.
-
host= ‘0.0.0.0’ => This settings make possible to access api from outside.
-
host= ‘0.0.0.0’ => This settings make possible to access api from outside.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment