Explorar el Código

change: api and ranking

Dew-OF-Aurora hace 3 semanas
padre
commit
ea382582fb
Se han modificado 1 ficheros con 9 adiciones y 5 borrados
  1. 9 5
      config.server.json

+ 9 - 5
config.server.json

@@ -3,7 +3,7 @@
     "type": "api"
   },
   "api": {
-    "url": "https://vps789.com/openApi/cfIpTop20",
+    "url": "https://vps789.com/openApi/listMonitors?token=UR6SYEEATJGVOPIST6QHCPFNAJ8233S8",
     "method": "GET",
     "headers": {},
     "params": {},
@@ -11,13 +11,13 @@
   },
   "parser": {
     "field_paths": [
-      "data.good[].ip"
+      "data[].ip"
     ],
     "json_paths": [],
     "regex": "[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}"
   },
   "record_mapping": {
-    "records_path": "data.good[]",
+    "records_path": "data[]",
     "field_map": {
       "domain": "ip",
       "created_at": "createdTime",
@@ -40,7 +40,7 @@
     "created_time_formats": [
       "%Y-%m-%d %H:%M:%S"
     ],
-    "created_time_timezone": "UTC"
+    "created_time_timezone": "+08:00"
   },
   "record_filter": {
     "enabled": true,
@@ -68,8 +68,12 @@
     "strategy": "weighted_average",
     "weighted_fields": [
       {
-        "field": "yd_score",
+        "field": "yd_latency",
         "weight": 1.0
+      },
+      {
+        "field": "yd_pkg_lost_rate",
+        "weight": 10.0
       }
     ],
     "prefer_lower": true,