From fffa9c8265a7410769cf1bc955ae455c54009076 Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Thu, 5 May 2016 08:59:41 -0700 Subject: [PATCH] Fix flattenSpec docs, "nested" should be "path". (#2924) --- docs/content/ingestion/flatten-json.md | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/content/ingestion/flatten-json.md b/docs/content/ingestion/flatten-json.md index 72abccd1e52..1ff1156cbee 100644 --- a/docs/content/ingestion/flatten-json.md +++ b/docs/content/ingestion/flatten-json.md @@ -17,7 +17,7 @@ Defining the JSON Flatten Spec allows nested JSON fields to be flattened during | Field | Type | Description | Required | |-------|------|-------------|----------| -| type | String | Type of the field, "root" or "nested". | yes | +| type | String | Type of the field, "root" or "path". | yes | | name | String | This string will be used as the column name when the data has been ingested. | yes | | expr | String | Defines an expression for accessing the field within the JSON object, using [JsonPath](https://github.com/jayway/JsonPath) notation. | yes | @@ -58,7 +58,7 @@ To flatten this JSON, the parseSpec could be defined as follows: }, "dim2", { - "type": "nested", + "type": "path", "name": "foo.bar", "expr": "$.foo.bar" }, @@ -68,37 +68,37 @@ To flatten this JSON, the parseSpec could be defined as follows: "expr": "foo.bar" }, { - "type": "nested", - "name": "nested-metric", + "type": "path", + "name": "path-metric", "expr": "$.nestmet.val" }, { - "type": "nested", + "type": "path", "name": "hello-0", "expr": "$.hello[0]" }, { - "type": "nested", + "type": "path", "name": "hello-4", "expr": "$.hello[4]" }, { - "type": "nested", + "type": "path", "name": "world-hey", "expr": "$.world.hey" }, { - "type": "nested", + "type": "path", "name": "worldtree", "expr": "$.world.tree" }, { - "type": "nested", + "type": "path", "name": "first-food", "expr": "$.thing.food[0]" }, { - "type": "nested", + "type": "path", "name": "second-food", "expr": "$.thing.food[1]" } @@ -125,17 +125,17 @@ Aggregators should use the metric column names as defined in the flattenSpec. Us "metricsSpec" : [ { "type" : "longSum", - "name" : "Nested Metric Value", - "fieldName" : "nested-metric" + "name" : "path-metric-sum", + "fieldName" : "path-metric" }, { "type" : "doubleSum", - "name" : "Hello Index #0", + "name" : "hello-0-sum", "fieldName" : "hello-0" }, { "type" : "longSum", - "name" : "metrica", + "name" : "metrica-sum", "fieldName" : "metrica" } ]