forked from tagyoureit/InfluxDB_WDC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InfluxDB.html
203 lines (150 loc) · 7.61 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
<html>
<head>
<title>InfluxDB Feed</title>
<meta http-equiv="Cache-Control" content="no-store" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script src="https://connectors.tableau.com/libs/tableauwdc-2.2.latest.js" type="text/javascript"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.2/css/bootstrap-select.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.2/js/bootstrap-select.min.js"></script>
<script src="assets/bootstrap-show-password.js"></script>
<script src="InfluxDB_WDC.js" type="text/javascript"></script>
</head>
<body>
<div class="container container-table">
<div class="page-header text-center col-md-4 col-md-offset-4" style="margin: 0 auto;">
<h1>Influx DB - Tableau Web Data Connector</h1>
<small>Bring in your time series data!</small>
</div>
<div class="row vertical-center-row">
<div class="text-center col-md-4 col-md-offset-4">
<div class="alert alert-info alert-dismissible" style="display:none;" role="alert" id="influx_alert">
<a class="close" onclick="$('.alert').hide()">×</a> Alert text
</div>
</div>
</div>
<!-- this section set to 'hidden' because the WDC doesn't like Javascript to change the HREF
<div class="row vertical-center-row" style="margin: 10px;">
<div class="text-center col-md-4 col-md-offset-2 hidden">
<input type="checkbox" id="useAuthCheckBox"> Use Auth (will reload page)
</div>
</div> -->
<div class="row vertical-center-row" style="margin: 10px;">
<div class="text-center col-md-4 col-md-offset-2">
<a href="InfluxDB.html?auth=true" id="reloadWithAuth">Reload with Auth</a>
<a href="InfluxDB.html?auth=false" id="reloadWithoutAuth">Reload without Auth</a>
</div>
</div>
<div class="row vertical-center-row" style="margin: 10px;" id="authGroup">
<div class="text-center col-sm-4 col-sm-offset-2">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Username</span>
<input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1" id="username">
</div>
</div>
<div class="input-group text-center col-sm-4 col-sm-offset-6">
<!-- <span class="input-group-addon" id="basic-addon1">Password</span>
<input type="text" class="form-control" placeholder="password" aria-describedby="basic-addon1" id="password"> -->
<input id="password" data-toggle="password" data-placement="before" class="form-control" type="password" value="" data-message="Show/hide password" placeholder="">
</div>
</div>
<div class="row vertical-center-row" style="margin: 10px;">
<div class="col-sm-4 col-sm-offset-2">
<div class="input-group">
<div class="input-group-btn dropdown">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="protocol_selector_button"> http://
<span class="caret"></span>
</button>
<ul class="dropdown-menu" id="protocol_selector">
<li><a href="#">http://</a></li>
<li><a href="#">https://</a></li>
<li><a href="#">https+influxdb://</a></li>
</ul>
</div>
<!-- /btn-group -->
<input type="text" class="form-control" aria-label="..." placeholder="localhost" id="servername">
</div>
</div>
<div class="input-group col-sm-4 col-sm-offset-6">
<span class="input-group-addon" id="basic-addon1">Port</span>
<input type="text" class="form-control" placeholder="8086" aria-describedby="basic-addon1" id="serverport">
</div>
</div>
<div class="row vertical-center-row">
<div class="col-md-8 col-md-offset-4">
<div class="text-center">
<input type="checkbox" class="basic-addon1" id="useAggregationCheckBox"> Use Aggregation
</div>
</div>
</div>
<div class="row vertical-center-row" style="margin: 10px;" id="aggregationGroup">
<div class="col-sm-4 col-sm-offset-2">
<div class="input-group" style="margin: 0 auto;">
<!-- /btn-group -->
<span class="input-group-addon" id="basic-addon1">Group by</span>
<div class="input-group-btn dropdown">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="aggregation_selector_button">
mean
<span class="caret"></span>
</button>
<ul class="dropdown-menu" id="aggregation_selector">
<li><a href="#">count</a></li>
<li><a href="#">distinct</a></li>
<li><a href="#">integral</a></li>
<li><a href="#">mean</a></li>
<li><a href="#">median</a></li>
<li><a href="#">mode</a></li>
<li><a href="#">spread</a></li>
<li><a href="#">stddev</a></li>
<li><a href="#">sum</a></li>
</ul>
</div>
</div>
<!-- /input-group -->
</div>
<div class="col-md-2" style="margin-right: 100px">
<div class="input-group" style="margin: 0 auto;">
<!-- /btn-group -->
<span class="input-group-addon" id="basic-addon1">Interval</span>
<input type="text" class="form-control text-right" aria-label="..." placeholder="30" id="interval_time">
<div class="input-group-btn dropdown">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="interval_measure_button">minutes
<span class="caret"></span>
</button>
<ul class="dropdown-menu" id="interval_measure">
<li><a href="#" data-prefix="u">microseconds</a></li>
<li><a href="#" data-prefix="ms">milliseconds</a></li>
<li><a href="#" data-prefix="s">seconds</a></li>
<li><a href="#" data-prefix="m">minutes</a></li>
<li><a href="#" data-prefix="h">hours</a></li>
<li><a href="#" data-prefix="d">days</a></li>
<li><a href="#" data-prefix="w">week</a></li>
</ul>
</div>
</div>
<!-- /row -->
</div>
</div>
<div class="row vertical-center-row">
<div class="col-sm-4 col-sm-offset-4 text-center">
<button type="button" id="tableButton" class="btn btn-primary" style="margin: 10px;">1. Load Databases</button>
</div>
</div>
<div class="row vertical-center-row">
<div class="text-center col-md-4 col-md-offset-4">
<select class="selectpicker" id="db_dropdown">
</select>
<button type="button" id="getSchemaButton" class="btn btn-primary" style="margin: 10px;" disabled>2. Load Data into Tableau</button>
</div>
</div>
<div class="row vertical-center-row">
<div class="col-sm-4 col-sm-offset-4 text-center" style="font-size:10">
Version 1.4 - <a href='https://tagyoureit.github.io/InfluxDB_WDC/' target="_blank">Release Notes</a>
</div>
</div>
</div>
</body>
</html>