updated partition time template examples

pull/5574/head
Scott Anderson 2024-08-22 13:24:59 -06:00
parent fd94b761ba
commit 04e1fef5a5
4 changed files with 8 additions and 8 deletions

View File

@ -157,7 +157,7 @@ influxctl database create \
The following example creates a new `mydb` database and applies a partition
template that partitions by two tags (`room` and `sensor-type`) and by day using
the time format `%d-%m-%Y`:
the time format `%Y-%m-%d`:
<!--Skip tests for database create and delete: namespaces aren't reusable-->
<!--pytest.mark.skip-->
@ -167,7 +167,7 @@ influxctl database create \
--template-tag room \
--template-tag sensor-type \
--template-tag-bucket customerID,1000 \
--template-timeformat '%d-%m-%Y' \
--template-timeformat '%Y-%m-%d' \
mydb
```

View File

@ -83,7 +83,7 @@ influxctl table create DATABASE_NAME TABLE_NAME
The following example creates a new table and applies a partition
template that partitions by two tags (`room` and `sensor-type`) and by day using
the time format `%d-%m-%Y`:
the time format `%Y-%m-%d`:
{{% code-placeholders "(DATABASE|TABLE)_NAME" %}}
```sh
@ -91,7 +91,7 @@ influxctl table create \
--template-tag room \
--template-tag sensor-type \
--template-tag-bucket customerID,1000 \
--template-timeformat '%d-%m-%Y' \
--template-timeformat '%Y-%m-%d' \
DATABASE_NAME \
TABLE_NAME
```

View File

@ -156,7 +156,7 @@ influxctl database create \
The following example creates a new `mydb` database and applies a partition
template that partitions by two tags (`room` and `sensor-type`) and by day using
the time format `%d-%m-%Y`:
the time format `%Y-%m-%d`:
<!--Skip tests for database create and delete: namespaces aren't reusable-->
<!--pytest.mark.skip-->
@ -166,7 +166,7 @@ influxctl database create \
--template-tag room \
--template-tag sensor-type \
--template-tag-bucket customerID,1000 \
--template-timeformat '%d-%m-%Y' \
--template-timeformat '%Y-%m-%d' \
mydb
```

View File

@ -83,7 +83,7 @@ influxctl table create DATABASE_NAME TABLE_NAME
The following example creates a new table and applies a partition
template that partitions by two tags (`room` and `sensor-type`) and by day using
the time format `%d-%m-%Y`:
the time format `%Y-%m-%d`:
{{% code-placeholders "(DATABASE|TABLE)_NAME" %}}
```sh
@ -91,7 +91,7 @@ influxctl table create \
--template-tag room \
--template-tag sensor-type \
--template-tag-bucket customerID,1000 \
--template-timeformat '%d-%m-%Y' \
--template-timeformat '%Y-%m-%d' \
DATABASE_NAME \
TABLE_NAME
```