-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathInfluxDB.html
233 lines (183 loc) · 9.64 KB
/
InfluxDB.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!doctype html>
<html>
<head>
<title>InfluxDB Feed</title>
<meta http-equiv="Cache-Control" content="no-store"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- https://packagist.org/packages/snapappointments/bootstrap-select -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.1/css/bootstrap-select.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.1/js/bootstrap-select.min.js"></script>
<!-- <script src="node_modules/bootstrap-show-password/bootstrap-show-password.js"></script> -->
<script src="https://connectors.tableau.com/libs/tableauwdc-2.3.latest.min.js" type="text/javascript"></script>
<script src="InfluxDB_WDC.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<div>
<h1>Influx DB - Tableau Web Data Connector</h1>
<p class="text-right font-italic">Bring in your time series data!</p>
</div>
<div class="">
<div class="alert alert-info alert-dismissible" style="display:none;" role="alert" id="influx_alert">
<a class="dropdown-item" class="close" onclick="$('.alert').hide()">×</a> Alert text
</div>
</div>
<div class=" row mb-3">
<div class="col-sm">
<h4 class="text-left">1. Connection Information</h4>
</div>
<div class="col-sm">
<a class="btn btn-outline" data-toggle="collapse" href="#authGroup" id="reloadWithAuth" role="button"
aria-expanded="false" aria-controls="authGroup">Use Auth</a>
<a class="btn btn-outline" data-toggle="collapse" href="#authGroup" id="reloadWithoutAuth" role="button"
aria-expanded="false" aria-controls="authGroup" hidden>Do not use Auth</a>
</div>
</div>
<div class="collapse" id="authGroup">
<div class="row">
<div class="input-group mb-3 col-sm">
<div class="input-group-prepend">
<span class="input-group-text" id="username-label">Username</span>
</div>
<input type="text" class="form-control" aria-describedby="username-label"
id="username">
</div>
<div class="input-group mb-3 col-sm">
<div class="input-group-prepend">
<span class="input-group-text" id="pw-label">Password</span>
</div>
<input id="password" class="form-control" type="password"
value="" data-message="Show/hide password" placeholder="" aria-describedby="pw-label">
</div>
</div>
</div>
<div class="row">
<div class="input-group mb-3 col-sm">
<div class="input-group-prepend">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" id="protocol_selector_button">http://
</button>
<div class="dropdown-menu">
<a class="dropdown-item proto_sel" href="#">http://</a>
<a class="dropdown-item proto_sel" href="#">https://</a>
</div>
</div>
<input type="text" class="form-control" aria-label="..." placeholder="localhost" id="servername">
</div>
<div class="input-group mb-3 col-sm">
<div class="input-group-prepend">
<span class="input-group-text" id="username-label">Port</span>
</div>
<input type="text" class="form-control" aria-describedby="username-label"
id="serverport" placeholder="8086">
</div>
</div>
<div class="row mb-3 dflex flex-row">
<h4 class="col-sm">2. Databases</h4>
<div class="col-sm d-flex justify-content-end">
<button type="button" id="tableButton" class="btn btn-primary">Connect
</button>
</div>
<div class="col-sm">
<select class="selectpicker" id="db_dropdown">
</select>
</div>
</div>
<div class="row dflex justify-content-center mb-3" id="querytype">
<div class="col-sm text-left">
<h4>3. Query Type</h4>
</div>
<div class="col-sm btn-group btn-group-toggle qtype" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="options" id="querytype_all" autocomplete="off" data-val="all" checked>
All Rows
</label>
<label class="btn btn-secondary qtype">
<input type="radio" name="options" id="querytype_aggregation" autocomplete="off" data-val="aggregation">
Use Aggregation
</label>
<label class="btn btn-secondary qtype">
<input type="radio" name="options" id="querytype_custom" autocomplete="off" data-val="custom"> Custom
SQL
</label>
</div>
</div>
<div class="collapse" id="aggregationGroup">
<div class="row mb-3">
<div class="input-group mb-3 col-sm d-flex justify-content-end">
<div class="input-group-prepend">
<span class="input-group-text">Group By</span>
</div>
<div class="input-group-append">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" id="aggregation_selector_button">
mean
<span class="caret"></span>
</button>
<div class="dropdown-menu" id="aggregation_selector">
<a class="dropdown-item" class="dropdown-item" href="#">count</a>
<a class="dropdown-item" class="dropdown-item" href="#">distinct</a>
<a class="dropdown-item" class="dropdown-item" href="#">integral</a>
<a class="dropdown-item" class="dropdown-item" href="#">mean</a>
<a class="dropdown-item" class="dropdown-item" href="#">median</a>
<a class="dropdown-item" class="dropdown-item" href="#">mode</a>
<a class="dropdown-item" class="dropdown-item" href="#">spread</a>
<a class="dropdown-item" class="dropdown-item" href="#">stddev</a>
<a class="dropdown-item" class="dropdown-item" href="#">sum</a>
</div>
</div>
</div>
<div class="input-group mb-3 col-sm">
<div class="input-group-prepend">
<span class="input-group-text">Interval</span>
</div>
<input type="text" class="form-control" aria-label="Interval Time" placeholder="30" id="interval_time">
<div class="input-group-append">
<button type="button" class="btn btn-outline-secondary dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" id="interval_measure_button">minutes
<span class="caret"></span>
</button>
<div class="dropdown-menu" id="interval_measure">
<a class="dropdown-item" href="#" data-prefix="u">microseconds</a>
<a class="dropdown-item" href="#" data-prefix="ms">milliseconds</a>
<a class="dropdown-item" href="#" data-prefix="s">seconds</a>
<a class="dropdown-item" href="#" data-prefix="m">minutes</a>
<a class="dropdown-item" href="#" data-prefix="h">hours</a>
<a class="dropdown-item" href="#" data-prefix="d">days</a>
<a class="dropdown-item" href="#" data-prefix="w">week</a>
</div>
</div>
</div>
</div>
</div>
<div class="collapse" id="customSqlGroup">
<div class="row mb-3">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Custom InfluxQL</span>
</div>
<textarea class="form-control" aria-label="With textarea" id="customSql"></textarea>
</div>
</div>
</div>
<div class="row d-flex justify-content-center mb-3">
<div class="col-sm text-left">
<h4>4. Submit to Tableau</h4>
</div>
<button type="button" id="getSchemaButton" class="btn btn-primary" disabled>Submit
</button>
</div>
<div class="text-center">
<small> Version 2.0.5 - <a class="dropdown-item" href='https://tagyoureit.github.io/InfluxDB_WDC/'
target="_blank">Release
Notes</a>
</small>
</div>
</div>
</body>
</html>