docs-v2/layouts/shortcodes/flux/group-key-demo.html

56 lines
1.6 KiB
HTML

<div id="flux-group-keys-demo">
<div id="group-by-columns">
<ul class="column-list">
<li>
<label for="_time">
<input type="checkbox" id="_time" name="_time">
<span class="checkbox"></span>
_time
</label>
</li>
<li>
<label for="_measurement">
<input type="checkbox" id="_measurement" name="_measurement" checked>
<span class="checkbox"></span>
_measurement
</label>
</li>
<li>
<label for="loc">
<input type="checkbox" id="loc" name="loc" checked>
<span class="checkbox"></span>
loc
</label>
</li>
<li>
<label for="sensorID">
<input type="checkbox" id="sensorID" name="sensorID" checked>
<span class="checkbox"></span>
sensorID
</label>
</li>
<li>
<label for="_field">
<input type="checkbox" id="_field" name="_field" checked>
<span class="checkbox"></span>
_field
</label>
</li>
<li>
<label for="_value">
<input type="checkbox" id="_value" name="_value">
<span class="checkbox"></span>
_value
</label>
</li>
</ul>
<div class="highlight">
<pre id="group-by-example" class="chroma">
data
<span class="nx">|></span> group(columns<span class="nx">:</span> [<span class="s2">"_measurement"</span>, <span class="s2">"loc"</span>, <span class="s2">"sensorID"</span>, <span class="s2">"_field"</span>])</pre>
</div>
<div id="grouped-tables">
<!-- Tables generated by JS -->
</div>
</div>
</div>