测试停更预警
This commit is contained in:
parent
e747248afa
commit
1814182299
@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 25,
|
||||
"id": "31c0e11d-c87a-4e95-92a0-d1d09625e255",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -15,7 +15,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"execution_count": 26,
|
||||
"id": "83c81b9e",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -25,7 +25,7 @@
|
||||
"'http://192.168.100.53:8080/jingbo-dev/api/server/login'"
|
||||
]
|
||||
},
|
||||
"execution_count": 2,
|
||||
"execution_count": 26,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -44,7 +44,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": 27,
|
||||
"id": "2b330ee3-c006-4ab1-8558-59c51ac8d86f",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -59,7 +59,7 @@
|
||||
" 'funcOperation': '获取token'}"
|
||||
]
|
||||
},
|
||||
"execution_count": 3,
|
||||
"execution_count": 27,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@ -70,7 +70,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"execution_count": 28,
|
||||
"id": "dcb6100a-ed2b-4077-a1a9-361c6cb565f9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -87,7 +87,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"execution_count": 29,
|
||||
"id": "22c0c7c4",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -95,7 +95,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'confirmFlg': False, 'data': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3NjQxODAsImp0aSI6IjEzYWRlMTljYzg2OTQ4ODk4YjFiY2FkNTVmODEyZDI3In0.hx0thhOdqnjhFDWkJF0ZdCAK9qwAv5HB15gO7o5mXbY', 'md5Token': '22e1a4c6206d348848cb2fac1ed67312'}, 'status': True}\n"
|
||||
"{'confirmFlg': False, 'data': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM4NjAyODMsImp0aSI6IjliYTc4MzVkNmQyNDRjNTk4ODc0MjQ3OGU0ZDljNTJmIn0.ZvwSQ9_AoQ1Kn3Tdu8aZudrhC0aXzOsPUNkPP8DaDxo', 'md5Token': '2ca765c5b7aafb19c474b00a26c9fb3c'}, 'status': True}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@ -105,7 +105,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"execution_count": 30,
|
||||
"id": "12077ead",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@ -115,7 +115,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"execution_count": 31,
|
||||
"id": "a7ae21d1",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
@ -127,17 +127,17 @@
|
||||
"INFO:my_logger:上传预警信息\n",
|
||||
"预警上传中...\n",
|
||||
"INFO:my_logger:预警上传中...\n",
|
||||
"token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3Njg3NjMsImp0aSI6ImEzYTMwMGNmZjRkNzRiYjY5YTFhMWI0ODMzMjYzOWJmIn0.xPmT4E0ckxfNZbcBEsnTzU8zzxij8zvROBpXeTZMn_U\n",
|
||||
"INFO:my_logger:token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3Njg3NjMsImp0aSI6ImEzYTMwMGNmZjRkNzRiYjY5YTFhMWI0ODMzMjYzOWJmIn0.xPmT4E0ckxfNZbcBEsnTzU8zzxij8zvROBpXeTZMn_U\n",
|
||||
"warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-09有30个停更', 'WARNING_DATE': '2024-12-09'}}\n",
|
||||
"INFO:my_logger:warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-09有30个停更', 'WARNING_DATE': '2024-12-09'}}\n"
|
||||
"token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM4NjAyODMsImp0aSI6IjBjNmRhYmMyZWVlZjRjZTJhZGJjMzE0NmE3ZDFlYjBjIn0.uHmlcKC09bUPUORvSB1Z6HsUpCXHnPcgqOOdY1my3vs\n",
|
||||
"INFO:my_logger:token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM4NjAyODMsImp0aSI6IjBjNmRhYmMyZWVlZjRjZTJhZGJjMzE0NmE3ZDFlYjBjIn0.uHmlcKC09bUPUORvSB1Z6HsUpCXHnPcgqOOdY1my3vs\n",
|
||||
"warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-10有2887个停更', 'WARNING_DATE': '2024-12-10'}}\n",
|
||||
"INFO:my_logger:warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-10有2887个停更', 'WARNING_DATE': '2024-12-10'}}\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'confirmFlg': False, 'data': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3Njg3NjMsImp0aSI6ImEzYTMwMGNmZjRkNzRiYjY5YTFhMWI0ODMzMjYzOWJmIn0.xPmT4E0ckxfNZbcBEsnTzU8zzxij8zvROBpXeTZMn_U', 'md5Token': '0d22e2eedf2857a4c5ef80a56b4b6569'}, 'status': True}\n"
|
||||
"{'confirmFlg': False, 'data': {'accessToken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM4NjAyODMsImp0aSI6IjBjNmRhYmMyZWVlZjRjZTJhZGJjMzE0NmE3ZDFlYjBjIn0.uHmlcKC09bUPUORvSB1Z6HsUpCXHnPcgqOOdY1my3vs', 'md5Token': 'd4305c010c77df75252c45100ccd8836'}, 'status': True}\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -168,7 +168,7 @@
|
||||
"logger.info(f'上传预警信息')\n",
|
||||
"try:\n",
|
||||
" warning_date = datetime.datetime.now().strftime('%Y-%m-%d')\n",
|
||||
" content = f'{warning_date}有30个停更'\n",
|
||||
" content = f'{warning_date}有2887个停更'\n",
|
||||
" warning_data['data']['WARNING_DATE'] = warning_date\n",
|
||||
" warning_data['data']['WARNING_CONTENT'] = content\n",
|
||||
" upload_warning_data(warning_data)\n",
|
||||
|
Loading…
Reference in New Issue
Block a user