From b69ca52fda5b2078e9f57772c0701464d7b3d58f Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Fri, 14 Oct 2022 14:10:39 -0600 Subject: [PATCH] hotfix: fix explicit schema file examples, closes #4563 --- .../organizations/buckets/bucket-schema/_index.md | 1 + shared/text/bucket-schema/usage-cpu.json | 10 +++++----- shared/text/bucket-schema/usage-resources.csv | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/content/influxdb/cloud/organizations/buckets/bucket-schema/_index.md b/content/influxdb/cloud/organizations/buckets/bucket-schema/_index.md index 7797afd15..1df1d8f4e 100644 --- a/content/influxdb/cloud/organizations/buckets/bucket-schema/_index.md +++ b/content/influxdb/cloud/organizations/buckets/bucket-schema/_index.md @@ -45,6 +45,7 @@ Use the `influx` CLI to set the schema-type and measurement schemas for your buc Format the file as CSV, JSON, or [Newline delimited JSON (NDJSON)](http://ndjson.org/), as in the following examples: + {{% code-tabs-wrapper %}} {{% code-tabs %}} [usage-resources.csv](#) diff --git a/shared/text/bucket-schema/usage-cpu.json b/shared/text/bucket-schema/usage-cpu.json index 6b9c48f81..6a78f06f2 100644 --- a/shared/text/bucket-schema/usage-cpu.json +++ b/shared/text/bucket-schema/usage-cpu.json @@ -1,7 +1,7 @@ [ -{"name": "time", "type": "timestamp"}, -{"name": "service", "type": "tag"}, -{"name": "host", "type": "tag"}, -{"name": "usage_user", "type": "field", "dataType": "float"}, -{"name": "usage_system", "type": "field", "dataType": "float"} + {"name": "time", "type": "timestamp"}, + {"name": "service", "type": "tag"}, + {"name": "host", "type": "tag"}, + {"name": "usage_user", "type": "field", "dataType": "float"}, + {"name": "usage_system", "type": "field", "dataType": "float"} ] diff --git a/shared/text/bucket-schema/usage-resources.csv b/shared/text/bucket-schema/usage-resources.csv index 2827fd62d..1567b1b34 100644 --- a/shared/text/bucket-schema/usage-resources.csv +++ b/shared/text/bucket-schema/usage-resources.csv @@ -1,6 +1,6 @@ -name,type,data_type +name,type,dataType time,timestamp, host,tag, service,tag, fsRead,field,float -fsWrite,field,float +fsWrite,field,float \ No newline at end of file