测试停更预警

This commit is contained in:
workpc 2024-12-10 18:05:17 +08:00
parent e747248afa
commit 1814182299

View File

@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 25,
"id": "31c0e11d-c87a-4e95-92a0-d1d09625e255", "id": "31c0e11d-c87a-4e95-92a0-d1d09625e255",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -15,7 +15,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 26,
"id": "83c81b9e", "id": "83c81b9e",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@ -25,7 +25,7 @@
"'http://192.168.100.53:8080/jingbo-dev/api/server/login'" "'http://192.168.100.53:8080/jingbo-dev/api/server/login'"
] ]
}, },
"execution_count": 2, "execution_count": 26,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -44,7 +44,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 27,
"id": "2b330ee3-c006-4ab1-8558-59c51ac8d86f", "id": "2b330ee3-c006-4ab1-8558-59c51ac8d86f",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@ -59,7 +59,7 @@
" 'funcOperation': '获取token'}" " 'funcOperation': '获取token'}"
] ]
}, },
"execution_count": 3, "execution_count": 27,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -70,7 +70,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 4, "execution_count": 28,
"id": "dcb6100a-ed2b-4077-a1a9-361c6cb565f9", "id": "dcb6100a-ed2b-4077-a1a9-361c6cb565f9",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -87,7 +87,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 5, "execution_count": 29,
"id": "22c0c7c4", "id": "22c0c7c4",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@ -95,7 +95,7 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "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", "cell_type": "code",
"execution_count": 6, "execution_count": 30,
"id": "12077ead", "id": "12077ead",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -115,7 +115,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 10, "execution_count": 31,
"id": "a7ae21d1", "id": "a7ae21d1",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@ -127,17 +127,17 @@
"INFO:my_logger:上传预警信息\n", "INFO:my_logger:上传预警信息\n",
"预警上传中...\n", "预警上传中...\n",
"INFO:my_logger:预警上传中...\n", "INFO:my_logger:预警上传中...\n",
"token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3Njg3NjMsImp0aSI6ImEzYTMwMGNmZjRkNzRiYjY5YTFhMWI0ODMzMjYzOWJmIn0.xPmT4E0ckxfNZbcBEsnTzU8zzxij8zvROBpXeTZMn_U\n", "token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM4NjAyODMsImp0aSI6IjBjNmRhYmMyZWVlZjRjZTJhZGJjMzE0NmE3ZDFlYjBjIn0.uHmlcKC09bUPUORvSB1Z6HsUpCXHnPcgqOOdY1my3vs\n",
"INFO:my_logger:token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM3Njg3NjMsImp0aSI6ImEzYTMwMGNmZjRkNzRiYjY5YTFhMWI0ODMzMjYzOWJmIn0.xPmT4E0ckxfNZbcBEsnTzU8zzxij8zvROBpXeTZMn_U\n", "INFO:my_logger:token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhcGlfdGVzdCIsInRoIjoiOGE0NTc3ZGJkOTE5Njc1NzU4ZDU3OTk5YTFlODkxZmUiLCJsdCI6ImFwaSIsImlzcyI6IiIsInRtIjoiUEMiLCJleHAiOjE3MzM4NjAyODMsImp0aSI6IjBjNmRhYmMyZWVlZjRjZTJhZGJjMzE0NmE3ZDFlYjBjIn0.uHmlcKC09bUPUORvSB1Z6HsUpCXHnPcgqOOdY1my3vs\n",
"warning_data:{'funcModule': '原油特征停更预警', 'funcOperation': '原油特征停更预警', 'data': {'WARNING_TYPE_NAME': '特征数据停更预警', 'WARNING_CONTENT': '2024-12-09有30个停更', 'WARNING_DATE': '2024-12-09'}}\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-09有30个停更', 'WARNING_DATE': '2024-12-09'}}\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", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "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", "logger.info(f'上传预警信息')\n",
"try:\n", "try:\n",
" warning_date = datetime.datetime.now().strftime('%Y-%m-%d')\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_DATE'] = warning_date\n",
" warning_data['data']['WARNING_CONTENT'] = content\n", " warning_data['data']['WARNING_CONTENT'] = content\n",
" upload_warning_data(warning_data)\n", " upload_warning_data(warning_data)\n",