Spaces:
Running
Running
commiting before pulling
Browse files- api_monitor.py +2 -2
- database.py +0 -17
api_monitor.py
CHANGED
@@ -318,8 +318,8 @@ def activate_monitoring(config_id, mcp_api_key):
|
|
318 |
TOOL: Activate periodic monitoring for a validated API configuration.
|
319 |
|
320 |
PURPOSE: Start automated recurring API calls based on a previously validated configuration.
|
321 |
-
This is STEP 2 of the monitoring setup process.
|
322 |
-
|
323 |
PREREQUISITE: Must call validate_api_configuration() first and obtain a config_id from successful validation. Make sure that the sample_response is what you expect
|
324 |
to see before proceeding with this function.
|
325 |
|
|
|
318 |
TOOL: Activate periodic monitoring for a validated API configuration.
|
319 |
|
320 |
PURPOSE: Start automated recurring API calls based on a previously validated configuration.
|
321 |
+
This is STEP 2 of the monitoring setup process.
|
322 |
+
|
323 |
PREREQUISITE: Must call validate_api_configuration() first and obtain a config_id from successful validation. Make sure that the sample_response is what you expect
|
324 |
to see before proceeding with this function.
|
325 |
|
database.py
CHANGED
@@ -1,17 +0,0 @@
|
|
1 |
-
import psycopg2
|
2 |
-
|
3 |
-
conn = psycopg2.connect(
|
4 |
-
database = "testdb",
|
5 |
-
user = "postgres",
|
6 |
-
host= 'localhost',
|
7 |
-
password = "js205112*",
|
8 |
-
port = 5432
|
9 |
-
)
|
10 |
-
cur = conn.cursor()
|
11 |
-
cur.execute('select * from api_configurations')
|
12 |
-
|
13 |
-
rows = cur.fetchall()
|
14 |
-
conn.commit()
|
15 |
-
conn.close()
|
16 |
-
for row in rows:
|
17 |
-
print(row)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|