fix: link to reference for field data type. (#3056) (#3678)

* fix: link to reference for field data type. (#3056)

* fix: list field data types (#3056)

Co-authored-by: kelseiv <47797004+kelseiv@users.noreply.github.com>
pull/3699/head^2
Jason Stirnaman 2022-01-18 14:00:59 -06:00 committed by GitHub
parent 7e91019226
commit 83f0fe8915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -85,7 +85,7 @@ Use the `influx` CLI to set the schema-type and measurement schemas for your buc
```json
[
{"name":"time","type":"timestamp"},
{"name":"fsWrite","type":"field","dataType":"float"}
{"name":"fsWrite","type":"field"}
]
```
@ -97,6 +97,18 @@ Use the `influx` CLI to set the schema-type and measurement schemas for your buc
]
```
The default [field data type](/influxdb/cloud/reference/key-concepts/data-elements/#field-value) is `string`.
To set the data type of a field column, provide the `dataType` property and a valid
[field data type](/influxdb/cloud/reference/key-concepts/data-elements/#field-value) (`string`, `float`, `integer`, or `boolean`),
as in the following example:
```json
[
{"name":"time","type":"timestamp"},
{"name":"fsWrite","type":"field","dataType":"float"}
]
```
3. Use the [`influx bucket-schema create` command](/influxdb/cloud/reference/cli/influx/bucket-schema/create) to add the schema for each measurement to your bucket.
Provide the following: