Commit 17903f0baab65f549dd4d381374730c6025577eb

Authored by Thanasis Naskos
1 parent 0d8c0f8168

adding OD guidelines

Showing 1 changed file with 28 additions and 0 deletions

... ... @@ -54,4 +54,32 @@
54 54  
55 55 ##### OD pcap files #######
56 56 Incide the OD directory we provide the pcap files used for load testing.
  57 +
  58 +To upload a pcap file for analysis use the following steps.
  59 +First start an OD task with the following POST request and body:
  60 +http://localhost:9091/api/v1/od
  61 +{
  62 + "timeDb_database": "kea",
  63 + "timeDb_host": "<the timescaleDB host>",
  64 + "timeDb_password": "<the timescaleDB password>",
  65 + "timeDb_port": "5432",
  66 + "timeDb_ssl": "true",
  67 + "timeDb_table": "od",
  68 + "timeDb_username": "postgres",
  69 + "k": "20",
  70 + "measurement": "packets-loss",
  71 + "mqtt_host": "localhost",
  72 + "mqtt_password": "",
  73 + "mqtt_port": "1883",
  74 + "mqtt_topic": "auth/od",
  75 + "mqtt_usermane": "",
  76 + "outlier_life": "0",
  77 + "r": "0.1",
  78 + "slide": "10",
  79 + "w": "60"
  80 +}
  81 +Get the returned OD task id and execute the following POST request to upload a pcap file:
  82 +http://127.0.0.1:9091/api/v1/od/analyse/<OD task id>
  83 +Header: Content-Type: application/json
  84 +Body: file=big.pcap