cleanup and document
This commit is contained in:
parent
0356e58416
commit
e9e1054273
File diff suppressed because it is too large
Load Diff
@ -67,11 +67,11 @@ namespace Assets.Scripts
|
|||||||
samples.Add(sJ);
|
samples.Add(sJ);
|
||||||
}
|
}
|
||||||
body.Add("samples", samples);
|
body.Add("samples", samples);
|
||||||
using (var client = new WebClient())
|
//using (var client = new WebClient())
|
||||||
{
|
//{
|
||||||
client.Headers[HttpRequestHeader.ContentType] = "application/json";
|
// client.Headers[HttpRequestHeader.ContentType] = "application/json";
|
||||||
client.UploadStringAsync(new Uri("http://home.superpichu.org:9009"), body.ToString());
|
// client.UploadStringAsync(new Uri("http://home.superpichu.org:9009"), body.ToString());
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,5 +17,6 @@ namespace Assets.Scripts
|
|||||||
public int TrialIndex { get; set; }
|
public int TrialIndex { get; set; }
|
||||||
public int DotIndex { get; set; }
|
public int DotIndex { get; set; }
|
||||||
public long Timestamp { get; set; }
|
public long Timestamp { get; set; }
|
||||||
|
public int DotSize = 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
18
index.json
18
index.json
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"mappings": {
|
|
||||||
"_doc": {
|
|
||||||
"properties": {
|
|
||||||
"platform":{"type":"keyword"},
|
|
||||||
"participantId": {"type":"integer"},
|
|
||||||
"angle":{"type":"double"},
|
|
||||||
"distance":{"type":"double"},
|
|
||||||
"time":{"type":"double"},
|
|
||||||
"direction":{"type":"boolean"},
|
|
||||||
"dotName":{"type":"keyword"},
|
|
||||||
"trialIndex":{"type":"integer"},
|
|
||||||
"dotIndex":{"type":"integer"},
|
|
||||||
"timestamp":{"type":"date","format":"epoch_millis"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user