Fledge
An open source edge computing platform for industrial users
defaults.h
1 #ifndef _DEFAULTS_H
2 #define _DEFAULTS_H
3 /*
4  * Fledge reading ingest.
5  *
6  * Copyright (c) 2018 OSisoft, LLC
7  *
8  * Released under the Apache 2.0 Licence
9  *
10  * Author: Mark Riddoch
11  */
12 
13 // The maximum value a user will be allowed to set the maxSendLatency config item expressed in mS
14 #define MAXSENDLATENCY 600000 // 10 minutes
15 
16 // The default advanced configuration items to add to the category
17 static struct {
18  const char *name;
19  const char *displayName;
20  const char *description;
21  const char *type;
22  const char *value;
23 } defaults[] = {
24  { "maxSendLatency", "Maximum Reading Latency (mS)",
25  "Maximum time to spend filling buffer before sending", "integer", "5000" },
26  { "bufferThreshold", "Maximum buffered Readings",
27  "Number of readings to buffer before sending", "integer", "100" },
28  { "throttle", "Throttle",
29  "Enable flow control by reducing the poll rate", "boolean", "false" },
30  { "readingsPerSec", "Reading Rate",
31  "Number of readings to generate per interval", "integer", "1" },
32  { "assetTrackerInterval", "Asset Tracker Update",
33  "Number of milliseconds between updates of the asset tracker information",
34  "integer", "500" },
35  { NULL, NULL, NULL, NULL, NULL }
36 };
37 #endif