docs-v2/layouts/shortcodes/cloud_regions.html

103 lines
3.3 KiB
HTML
Raw Normal View History

{{ $type := .Get "type" | default "table" }}
{{ $scratch := newScratch }}
{{ if eq $type "table"}}
{{ range .Site.Data.influxdb_urls.cloud.providers }}
{{ $scratch.Set "title" .name }}
{{ if not (in .name .short_name) }}
{{ $scratch.Set "title" (print .name " (" .short_name ")")}}
{{ end }}
{{ $title := $scratch.Get "title" }}
{{ $titleID := anchorize $title }}
<h3 id="{{ $titleID }}">{{ $title }}</h3>
<table class="cloud-urls">
<thead>
<th align="left">Region</th>
<th align="left">Location</th>
<th align="left">URL(s)</th>
</thead>
{{ range .regions }}
<tr>
<td {{ if .status }}class="{{ .status }}"{{ end }}>{{ .name }}</td>
2020-06-04 17:35:50 +00:00
<td>{{ .location }}</td>
<td>
{{ if .clusters }}
{{ range .clusters }}
<p><span class="cluster-name">{{ .name }}:</span> <a href="{{ .url }}">{{ .url }}</a></p>
{{ end }}
{{ else }}
<a href="{{ .url }}">{{ .url }}</a>
{{ end }}
</td>
</tr>
{{ end }}
</table>
{{ end }}
{{ else if eq $type "list" }}
<ul>
{{ range .Site.Data.influxdb_urls.cloud.providers }}
{{ $scratch.Set "title" .name }}
{{ if not (in .name .short_name) }}
{{ $scratch.Set "title" (print .name " (" .short_name ")")}}
{{ end }}
{{ $title := $scratch.Get "title" }}
<li><strong>{{ $title }}</strong>
<ul>
{{ range .regions }}
<li {{ if .status }}class="{{ .status }}"{{ end }}>{{ .name }}</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
IOx documentation (#4730) * fix iox ui details (#4660) * fixed left nav for iox * updated nav order * one more nav fix * added sql data types doc to iox * removed, need to create separate branch * IOx get started (#4676) * WIP iox get started * WIP iox get started * WIP iox get started * WIP iox get-started * WIP get-started docs * iox get started setup * added custom times and datepicker to iox getting started * finished sample data date picker * WIP get started querying * wrapped up new getting started content * fixed unclosed shortcode * fixed js bug, updated get started to address PR feedback * removed influxdbu banner from iox-get-started * fixed typos * Migrate data to IOx (#4704) * WIP iox get started * WIP iox get started * WIP iox get started * WIP iox get-started * WIP get-started docs * iox get started setup * added custom times and datepicker to iox getting started * finished sample data date picker * WIP get started querying * wrapped up new getting started content * fixed unclosed shortcode * fixed js bug, updated get started to address PR feedback * removed influxdbu banner from iox-get-started * add tsm to iox migration guide * WIP 1.x iox migration * WIP iox migration guides * iox migration landing page content * updated migration docs to address PR feedback * one last PR feedback update * added sql reference for review * moved reference to sql folder * removed file * Schema recommendations for IOx (#4701) * WIP iox get started * WIP iox get started * WIP iox get started * WIP iox get-started * WIP get-started docs * iox get started setup * added custom times and datepicker to iox getting started * finished sample data date picker * WIP get started querying * wrapped up new getting started content * fixed unclosed shortcode * fixed js bug, updated get started to address PR feedback * removed influxdbu banner from iox-get-started * schema design recommendations * add heading color styles * fixed typos and formatting * fixed typos * fixed line protocol descrepencies * fixed typo * IOx landing page and notification (#4717) * updated cloud iox landing page * added state of the docs notification, removed addition resources from nav * updated iox page titles * updated duplicate oss and product data * add order by doc (#4710) * add order by doc * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/order-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added select doc (#4708) * added select doc * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/select.md Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * having clause (#4713) * added having clause * Update content/influxdb/cloud-iox/having.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/having.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/having.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/having.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/having.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/having.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/having.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added sql-data-types branch and corresponding doc (#4700) * added sql-data-types branch and corresponding doc * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * Update content/influxdb/cloud-iox/sql-data-types.md Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * added interval * fixed formatting * more format fixes Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> * add limit doc (#4711) * add limit doc * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/limit.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * added group by (#4721) * added group by * Update content/influxdb/cloud-iox/group-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/group-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/group-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/group-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * Update content/influxdb/cloud-iox/group-by.md Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> --------- Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com> * IOx SQL query guides (#4720) * WIP basic sql query guide * WIP query guides * WIP query docs, updated query format * fleshed out sql aggregate query doc * updated aggregate query guide, added explore schema guide * fixed getting started link * IOx Grafana and Superset documentation (#4723) * iox grafana and superset documentation * updates to the superset and grafana docs * chore(grafana): Rework the documentation for a release instead of from source. (#4724) * chore(grafana): Rework the documentation for a release instead of from source. * chore: Typo. * chore: v0.1.0 will be the first release. * updates to address PR feedback * a few minor updates to the grafana doc * another minor update to grafana * fixed grafana archive name --------- Co-authored-by: Brett Buddin <brett@buddin.org> * rearranged docs * fix order by description * updated more sql reference doc descriptions * Add SQL selector functions (#4725) * WIP selector functions * WIP selector fns * wrapped up sql selector functions * relocated function docs * add iox regions doc * add messaging to guide users to the correct docs (#4728) * minor changes * added Flux reference * updated algolia tagging * add delete information to iox docs (#4727) * fixed typos * Add write content to the IOx docs (#4729) * ported telegraf write docs to iox * write content and updated reference * updated node deps * added link to selectors reference --------- Co-authored-by: lwandzura <51929958+lwandzura@users.noreply.github.com> Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org> Co-authored-by: Brett Buddin <brett@buddin.org>
2023-01-31 18:07:26 +00:00
{{ else if eq $type "iox-list" }}
<ul>
{{ range where .Site.Data.influxdb_urls.cloud.providers "iox" true }}
{{ $scratch.Set "title" .name }}
{{ if not (in .name .short_name) }}
{{ $scratch.Set "title" (print .name " (" .short_name ")")}}
{{ end }}
{{ $title := $scratch.Get "title" }}
<li><strong>{{ $title }}</strong>
<ul>
{{ range where .regions "iox" true }}
<li {{ if .status }}class="{{ .status }}"{{ end }}>{{ .name }}</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
{{ else if eq $type "iox-table"}}
{{ range where .Site.Data.influxdb_urls.cloud.providers "iox" true }}
{{ $scratch.Set "title" .name }}
{{ if not (in .name .short_name) }}
{{ $scratch.Set "title" (print .name " (" .short_name ")")}}
{{ end }}
{{ $title := $scratch.Get "title" }}
{{ $titleID := anchorize $title }}
<h3 id="{{ $titleID }}">{{ $title }}</h3>
<table class="cloud-urls">
<thead>
<th align="left">Region</th>
<th align="left">Location</th>
<th align="left">URL(s)</th>
</thead>
{{ range where .regions "iox" true }}
<tr>
<td {{ if .status }}class="{{ .status }}"{{ end }}>{{ .name }}</td>
<td>{{ .location }}</td>
<td>
{{ if .clusters }}
{{ range .clusters }}
<p><span class="cluster-name">{{ .name }}:</span> <a href="{{ .url }}">{{ .url }}</a></p>
{{ end }}
{{ else }}
<a href="{{ .url }}">{{ .url }}</a>
{{ end }}
</td>
</tr>
{{ end }}
</table>
{{ end }}
{{ end }}