Repository: weaviate/weaviate (Go)

Issue:
Change GetMeta lowest/highest/average naming
As @etiennedi proposed in https://github.com/creativesoftwarefdn/weaviate/issues/693#issuecomment-456791194, the GetMeta queries for `lowest`, `highest` and `average` should be changed to `minimum`,  `maximum`,  and `mean` respectively to maintain consistency and professionality. 

- [x] Implement in prototype
- [ ] Implement in Go/Weaviate
- [x] Documentation


Discussion:
Curious to know, where are we on this @laura-ham? 
@bobvanluijt I think the only missing parts are renaming them in `weaviate` (in the Go implementation) itself. This should only be a smaller change and definitely something I can pick up today - before working on something bigger.



Patch:
diff --git a/database/connectors/janusgraph/meta/query_builder_int.go b/database/connectors/janusgraph/meta/query_builder_int.go
index 20f8200adee..0dbc081645c 100644
--- a/database/connectors/janusgraph/meta/query_builder_int.go
+++ b/database/connectors/janusgraph/meta/query_builder_int.go
@@ -46,13 +46,13 @@ func (b *Query) intPropAnalysis(analysis getmeta.StatisticalAnalysis) (*intAnaly
 	switch analysis {
 	case getmeta.Count:
 		return &intAnalysis{label: string(analysis), aggregation: gremlin.New().CountLocal()}, nil
-	case getmeta.Average:
+	case getmeta.Mean:
 		return &intAnalysis{label: string(analysis), aggregation: gremlin.New().MeanLocal()}, nil
 	case getmeta.Sum:
 		return &intAnalysis{label: string(analysis), aggregation: gremlin.New().SumLocal()}, nil
-	case getmeta.Highest:
+	case getmeta.Maximum:
 		return &intAnalysis{label: string(analysis), aggregation: gremlin.New().MaxLocal()}, nil
-	case getmeta.Lowest:
+	case getmeta.Minimum:
 		return &intAnalysis{label: string(analysis), aggregation: gremlin.New().MinLocal()}, nil
 	case getmeta.Type:
 		// skip type as it's handled by the type inspector
diff --git a/graphqlapi/common/getmeta/property_numerical.go b/graphqlapi/common/getmeta/property_numerical.go
index f6f6be01dab..a1469579eef 100644
--- a/graphqlapi/common/getmeta/property_numerical.go
+++ b/graphqlapi/common/getmeta/property_numerical.go
@@ -34,21 +34,21 @@ func numericalPropertyField(class *models.SemanticSchemaClass,
 			Description: descriptions.GetMetaPropertyTypeDesc,
 			Type:        graphql.String,
 		},
-		"lowest": &graphql.Field{
-			Name:        fmt.Sprintf("%s%s%sLowest", prefix, class.Class, property.Name),
-			Description: descriptions.GetMetaPropertyLowestDesc,
+		"minimum": &graphql.Field{
+			Name:        fmt.Sprintf("%s%s%sMinimum", prefix, class.Class, property.Name),
+			Description: descriptions.GetMetaPropertyMinimumDesc,
 			Type:        graphql.Float,
 			Resolve:     common.JSONNumberResolver,
 		},
-		"highest": &graphql.Field{
-			Name:        fmt.Sprintf("%s%s%sHighest", prefix, class.Class, property.Name),
-			Description: descriptions.GetMetaPropertyHighestDesc,
+		"maximum": &graphql.Field{
+			Name:        fmt.Sprintf("%s%s%sMaximum", prefix, class.Class, property.Name),
+			Description: descriptions.GetMetaPropertyMaximumDesc,
 			Type:        graphql.Float,
 			Resolve:     common.JSONNumberResolver,
 		},
-		"average": &graphql.Field{
-			Name:        fmt.Sprintf("%s%s%sAverage", prefix, class.Class, property.Name),
-			Description: descriptions.GetMetaPropertyAverageDesc,
+		"mean": &graphql.Field{
+			Name:        fmt.Sprintf("%s%s%sMean", prefix, class.Class, property.Name),
+			Description: descriptions.GetMetaPropertyMeanDesc,
 			Type:        graphql.Float,
 			Resolve:     common.JSONNumberResolver,
 		},
diff --git a/graphqlapi/descriptions/filters.go b/graphqlapi/descriptions/filters.go
index da829529bce..96f9b63eae9 100644
--- a/graphqlapi/descriptions/filters.go
+++ b/graphqlapi/descriptions/filters.go
@@ -82,9 +82,9 @@ const IntrospectBeaconIdDesc string = "The id of the Beacon"
 const GroupByGroupDesc string = "Specify the property of the class to group by"
 const GroupByCountDesc string = "Get the number of instances of a property in a group"
 const GroupBySumDesc string = "Get the sum of the values of a property in a group"
-const GroupByMinDesc string = "Get the lowest occuring value of a property in a group"
-const GroupByMaxDesc string = "Get the highest occuring value of a property in a group"
-const GroupByMeanDesc string = "Get the average value of a property in a group"
+const GroupByMinDesc string = "Get the minimum occuring value of a property in a group"
+const GroupByMaxDesc string = "Get the maximum occuring value of a property in a group"
+const GroupByMeanDesc string = "Get the mean value of a property in a group"
 const GroupByMedianDesc string = "Get the median of a property in a group"
 const GroupByModeDesc string = "Get the mode of a property in a group"
 
diff --git a/graphqlapi/descriptions/getMeta.go b/graphqlapi/descriptions/getMeta.go
index 5e7682072dc..dc6a6446ce3 100644
--- a/graphqlapi/descriptions/getMeta.go
+++ b/graphqlapi/descriptions/getMeta.go
@@ -30,9 +30,9 @@ const GetMetaPropertyCountDesc string = "The total amount of found instances for
 const GetMetaPropertyTopOccurrencesDesc string = "An object containing data about the most frequently occuring values for this property"
 const GetMetaPropertyTopOccurrencesValueDesc string = "The most frequently occurring value for this property"
 const GetMetaPropertyTopOccurrencesOccursDesc string = "How often the most frequently occuring value for this property occurs" // TODO check this with @lauraham
-const GetMetaPropertyLowestDesc string = "The lowest value for this property"
-const GetMetaPropertyHighestDesc string = "The highest value for this property"
-const GetMetaPropertyAverageDesc string = "The average of all values for this property"
+const GetMetaPropertyMinimumDesc string = "The minimum value for this property"
+const GetMetaPropertyMaximumDesc string = "The maximum value for this property"
+const GetMetaPropertyMeanDesc string = "The mean of all values for this property"
 const GetMetaPropertySumDesc string = "The sum of all values for this property"
 const GetMetaPropertyObjectDesc string = "An object containing meta information about this property"
 
diff --git a/graphqlapi/local/aggregate/resolver.go b/graphqlapi/local/aggregate/resolver.go
index 8fc771c1484..b7036e87bb2 100644
--- a/graphqlapi/local/aggregate/resolver.go
+++ b/graphqlapi/local/aggregate/resolver.go
@@ -66,10 +66,10 @@ const (
 	// Median calculates the median (most occurring value) of an Int or Number
 	Median Aggregator = "median"
 
-	// Maximum selects the highest value of an Int or Number
+	// Maximum selects the maximum value of an Int or Number
 	Maximum Aggregator = "maximum"
 
-	// Minimum selects the highest value of an Int or Number
+	// Minimum selects the maximum value of an Int or Number
 	Minimum Aggregator = "minimum"
 )
 
diff --git a/graphqlapi/local/getmeta/resolver.go b/graphqlapi/local/getmeta/resolver.go
index 1fa0efc58e0..3c840cf4e27 100644
--- a/graphqlapi/local/getmeta/resolver.go
+++ b/graphqlapi/local/getmeta/resolver.go
@@ -56,14 +56,14 @@ const (
 	// Sum of all the values of the prop (i.e. sum of all Ints or Numbers)
 	Sum StatisticalAnalysis = "sum"
 
-	// Average calculates the average of an Int or Number
-	Average StatisticalAnalysis = "average"
+	// Mean calculates the mean of an Int or Number
+	Mean StatisticalAnalysis = "mean"
 
-	// Highest selects the highest value of an Int or Number
-	Highest StatisticalAnalysis = "highest"
+	// Maximum selects the maximum value of an Int or Number
+	Maximum StatisticalAnalysis = "maximum"
 
-	// Lowest selects the highest value of an Int or Number
-	Lowest StatisticalAnalysis = "lowest"
+	// Minimum selects the maximum value of an Int or Number
+	Minimum StatisticalAnalysis = "minimum"
 
 	// TotalTrue is the sum of all boolean fields, that are true
 	TotalTrue StatisticalAnalysis = "totalTrue"
@@ -190,12 +190,12 @@ func parseAnalysisProp(name string) (StatisticalAnalysis, error) {
 	switch name {
 	case string(Type):
 		return Type, nil
-	case string(Average):
-		return Average, nil
-	case string(Highest):
-		return Highest, nil
-	case string(Lowest):
-		return Lowest, nil
+	case string(Mean):
+		return Mean, nil
+	case string(Maximum):
+		return Maximum, nil
+	case string(Minimum):
+		return Minimum, nil
 	case string(Count):
 		return Count, nil
 	case string(Sum):
diff --git a/tools/remote_weaviate_fake/server.go b/tools/remote_weaviate_fake/server.go
index feff4d84e9d..a1dd0569a3b 100644
--- a/tools/remote_weaviate_fake/server.go
+++ b/tools/remote_weaviate_fake/server.go
@@ -49,7 +49,7 @@ func main() {
 		parsed := removeAllWhiteSpace(body["query"])
 
 		getQuery := fmt.Sprintf("%s", `{ Local { Get { Things { Instruments { name } } } } }`)
-		getMetaQuery := fmt.Sprintf("%s", `{ Local { GetMeta { Things { Instruments { volume { highest lowest average } } } } } }`)
+		getMetaQuery := fmt.Sprintf("%s", `{ Local { GetMeta { Things { Instruments { volume { maximum minimum mean } } } } } }`)
 		switch parsed {
 		case removeAllWhiteSpace(getQuery):
 			w.Header().Set("Content-Type", "application/json")
@@ -99,9 +99,9 @@ var graphQLGetMetaResponse = `{
         "Things": {
           "Instruments": {
             "volume": {
-              "highest": 110,
-              "lowest": 65,
-              "average": 82
+              "maximum": 110,
+              "minimum": 65,
+              "mean": 82
             }
           }
         }


Test patch:
diff --git a/database/connectors/janusgraph/meta/query_builder_int_test.go b/database/connectors/janusgraph/meta/query_builder_int_test.go
index f0c0692c720..695730cff89 100644
--- a/database/connectors/janusgraph/meta/query_builder_int_test.go
+++ b/database/connectors/janusgraph/meta/query_builder_int_test.go
@@ -45,15 +45,15 @@ func Test_QueryBuilder_IntProps(t *testing.T) {
 				gm.MetaProperty{
 					Name: "population",
 					StatisticalAnalyses: []gm.StatisticalAnalysis{
-						gm.Average, gm.Type, gm.Sum, gm.Highest, gm.Lowest, gm.Count,
+						gm.Mean, gm.Type, gm.Sum, gm.Maximum, gm.Minimum, gm.Count,
 					},
 				},
 			},
 			expectedQuery: `
 				.union(
 					aggregate("aggregation").by("population").cap("aggregation").limit(1)
-						.as("average", "sum", "highest", "lowest", "count")
-						.select("average", "sum", "highest", "lowest", "count")
+						.as("mean", "sum", "maximum", "minimum", "count")
+						.select("mean", "sum", "maximum", "minimum", "count")
 						.by(mean(local)).by(sum(local)).by(max(local)).by(min(local)).by(count(local))
 						.as("population").project("population").by(select("population"))
 				)
diff --git a/database/connectors/janusgraph/meta/query_builder_number_test.go b/database/connectors/janusgraph/meta/query_builder_number_test.go
index b9aa61f79e3..a3ed04a6cae 100644
--- a/database/connectors/janusgraph/meta/query_builder_number_test.go
+++ b/database/connectors/janusgraph/meta/query_builder_number_test.go
@@ -45,15 +45,15 @@ func Test_QueryBuilder_NumberProps(t *testing.T) {
 				gm.MetaProperty{
 					Name: "area",
 					StatisticalAnalyses: []gm.StatisticalAnalysis{
-						gm.Average, gm.Sum, gm.Highest, gm.Lowest, gm.Count, gm.Type,
+						gm.Mean, gm.Sum, gm.Maximum, gm.Minimum, gm.Count, gm.Type,
 					},
 				},
 			},
 			expectedQuery: `
 				.union(
 					aggregate("aggregation").by("area").cap("aggregation").limit(1)
-						.as("average", "sum", "highest", "lowest", "count")
-						.select("average", "sum", "highest", "lowest", "count")
+						.as("mean", "sum", "maximum", "minimum", "count")
+						.select("mean", "sum", "maximum", "minimum", "count")
 						.by(mean(local)).by(sum(local)).by(max(local)).by(min(local)).by(count(local))
 						.as("area").project("area").by(select("area"))
 				)
diff --git a/database/connectors/janusgraph/meta/query_builder_test.go b/database/connectors/janusgraph/meta/query_builder_test.go
index f4a2d33e4ed..433b5173f6f 100644
--- a/database/connectors/janusgraph/meta/query_builder_test.go
+++ b/database/connectors/janusgraph/meta/query_builder_test.go
@@ -36,7 +36,7 @@ func Test_QueryBuilder_MultipleProps(t *testing.T) {
 				gm.MetaProperty{
 					Name: "population",
 					StatisticalAnalyses: []gm.StatisticalAnalysis{
-						gm.Average, gm.Sum, gm.Highest, gm.Lowest, gm.Count,
+						gm.Mean, gm.Sum, gm.Maximum, gm.Minimum, gm.Count,
 					},
 				},
 			},
@@ -50,8 +50,8 @@ func Test_QueryBuilder_MultipleProps(t *testing.T) {
 					)
 						.as("isCapital").project("isCapital").by(select("isCapital")),
 					aggregate("aggregation").by("population").cap("aggregation").limit(1)
-						.as("average", "sum", "highest", "lowest", "count")
-						.select("average", "sum", "highest", "lowest", "count")
+						.as("mean", "sum", "maximum", "minimum", "count")
+						.select("mean", "sum", "maximum", "minimum", "count")
 						.by(mean(local)).by(sum(local)).by(max(local)).by(min(local)).by(count(local))
 						.as("population").project("population").by(select("population"))
 				)
@@ -76,7 +76,7 @@ func Test_QueryBuilder_MultiplePropsWithFilter(t *testing.T) {
 				gm.MetaProperty{
 					Name: "population",
 					StatisticalAnalyses: []gm.StatisticalAnalysis{
-						gm.Average, gm.Sum, gm.Highest, gm.Lowest, gm.Count,
+						gm.Mean, gm.Sum, gm.Maximum, gm.Minimum, gm.Count,
 					},
 				},
 			},
@@ -91,8 +91,8 @@ func Test_QueryBuilder_MultiplePropsWithFilter(t *testing.T) {
 					)
 						.as("isCapital").project("isCapital").by(select("isCapital")),
 					aggregate("aggregation").by("population").cap("aggregation").limit(1)
-						.as("average", "sum", "highest", "lowest", "count")
-						.select("average", "sum", "highest", "lowest", "count")
+						.as("mean", "sum", "maximum", "minimum", "count")
+						.select("mean", "sum", "maximum", "minimum", "count")
 						.by(mean(local)).by(sum(local)).by(max(local)).by(min(local)).by(count(local))
 						.as("population").project("population").by(select("population"))
 				)
diff --git a/database/connectors/janusgraph/meta/type_inspector_test.go b/database/connectors/janusgraph/meta/type_inspector_test.go
index f128802a36a..68a68101ce2 100644
--- a/database/connectors/janusgraph/meta/type_inspector_test.go
+++ b/database/connectors/janusgraph/meta/type_inspector_test.go
@@ -203,7 +203,7 @@ func Test_TypeInspector_WithPrimitiveProps(t *testing.T) {
 			Properties: []gm.MetaProperty{
 				gm.MetaProperty{
 					Name:                "population",
-					StatisticalAnalyses: []gm.StatisticalAnalysis{gm.Average, gm.Type, gm.Count},
+					StatisticalAnalyses: []gm.StatisticalAnalysis{gm.Mean, gm.Type, gm.Count},
 				},
 			},
 		}
@@ -232,7 +232,7 @@ func Test_TypeInspector_WithMultiplePropsOfDifferentTypes(t *testing.T) {
 				},
 				gm.MetaProperty{
 					Name:                "population",
-					StatisticalAnalyses: []gm.StatisticalAnalysis{gm.Average, gm.Type, gm.Count},
+					StatisticalAnalyses: []gm.StatisticalAnalysis{gm.Mean, gm.Type, gm.Count},
 				},
 			},
 		}
diff --git a/graphqlapi/local/getmeta/resolver_test.go b/graphqlapi/local/getmeta/resolver_test.go
index d38a2722c91..e6d35bb277d 100644
--- a/graphqlapi/local/getmeta/resolver_test.go
+++ b/graphqlapi/local/getmeta/resolver_test.go
@@ -39,21 +39,21 @@ func Test_Resolve(t *testing.T) {
 
 	tests := testCases{
 		testCase{
-			name:  "single prop: average",
-			query: "{ GetMeta { Things { Car { horsepower { average } } } } }",
+			name:  "single prop: mean",
+			query: "{ GetMeta { Things { Car { horsepower { mean } } } } }",
 			expectedProps: []MetaProperty{
 				{
 					Name:                "horsepower",
-					StatisticalAnalyses: []StatisticalAnalysis{Average},
+					StatisticalAnalyses: []StatisticalAnalysis{Mean},
 				},
 			},
 			resolverReturn: map[string]interface{}{
 				"horsepower": map[string]interface{}{
-					"average": 275.7773,
+					"mean": 275.7773,
 				},
 			},
 			expectedResults: []result{{
-				pathToField:   []string{"GetMeta", "Things", "Car", "horsepower", "average"},
+				pathToField:   []string{"GetMeta", "Things", "Car", "horsepower", "mean"},
 				expectedValue: 275.7773,
 			}},
 		},
@@ -79,27 +79,27 @@ func Test_Resolve(t *testing.T) {
 		},
 
 		testCase{
-			name:  "two props: highest, lowest, remaining int props",
-			query: "{ GetMeta { Things { Car { horsepower { highest, lowest, count, sum } } } } }",
+			name:  "two props: maximum, minimum, remaining int props",
+			query: "{ GetMeta { Things { Car { horsepower { maximum, minimum, count, sum } } } } }",
 			expectedProps: []MetaProperty{
 				{
 					Name:                "horsepower",
-					StatisticalAnalyses: []StatisticalAnalysis{Highest, Lowest, Count, Sum},
+					StatisticalAnalyses: []StatisticalAnalysis{Maximum, Minimum, Count, Sum},
 				},
 			},
 			resolverReturn: map[string]interface{}{
 				"horsepower": map[string]interface{}{
-					"highest": 610.0,
-					"lowest":  89.0,
+					"maximum": 610.0,
+					"minimum": 89.0,
 					"count":   23,
 					"sum":     6343.0,
 				},
 			},
 			expectedResults: []result{{
-				pathToField:   []string{"GetMeta", "Things", "Car", "horsepower", "highest"},
+				pathToField:   []string{"GetMeta", "Things", "Car", "horsepower", "maximum"},
 				expectedValue: 610.0,
 			}, {
-				pathToField:   []string{"GetMeta", "Things", "Car", "horsepower", "lowest"},
+				pathToField:   []string{"GetMeta", "Things", "Car", "horsepower", "minimum"},
 				expectedValue: 89.0,
 			}, {
 				pathToField:   []string{"GetMeta", "Things", "Car", "horsepower", "count"},
diff --git a/graphqlapi/network/getmeta/component_test.go b/graphqlapi/network/getmeta/component_test.go
index 1889e697aa0..3665f08d59f 100644
--- a/graphqlapi/network/getmeta/component_test.go
+++ b/graphqlapi/network/getmeta/component_test.go
@@ -65,10 +65,10 @@ func TestNetworkGetMeta(t *testing.T) {
 						Things { 
 							Car { 
 								horsepower { 
-									sum highest lowest average count
+									sum maximum minimum mean count
 								}
 								weight { 
-									sum highest lowest average count
+									sum maximum minimum mean count
 								}
 								meta {
 								  count
@@ -96,16 +96,16 @@ func TestNetworkGetMeta(t *testing.T) {
 					"Car": map[string]interface{}{
 						"horsepower": map[string]interface{}{
 							"sum":     json.Number("10000"),
-							"highest": json.Number("10000"),
-							"lowest":  json.Number("10000"),
-							"average": json.Number("10000"),
+							"maximum": json.Number("10000"),
+							"minimum": json.Number("10000"),
+							"mean":    json.Number("10000"),
 							"count":   json.Number("10000"),
 						},
 						"weight": map[string]interface{}{
 							"sum":     json.Number("10000"),
-							"highest": json.Number("10000"),
-							"lowest":  json.Number("10000"),
-							"average": json.Number("10000"),
+							"maximum": json.Number("10000"),
+							"minimum": json.Number("10000"),
+							"mean":    json.Number("10000"),
 							"count":   json.Number("10000"),
 						},
 						"stillInProduction": map[string]interface{}{
@@ -137,9 +137,9 @@ func TestNetworkGetMeta(t *testing.T) {
 					pathToField: []string{"GetMeta", "PeerA", "Things", "Car", "horsepower"},
 					expectedValue: map[string]interface{}{
 						"sum":     10000.0,
-						"highest": 10000.0,
-						"lowest":  10000.0,
-						"average": 10000.0,
+						"maximum": 10000.0,
+						"minimum": 10000.0,
+						"mean":    10000.0,
 						"count":   10000,
 					},
 				},
@@ -147,9 +147,9 @@ func TestNetworkGetMeta(t *testing.T) {
 					pathToField: []string{"GetMeta", "PeerA", "Things", "Car", "weight"},
 					expectedValue: map[string]interface{}{
 						"sum":     10000.0,
-						"highest": 10000.0,
-						"lowest":  10000.0,
-						"average": 10000.0,
+						"maximum": 10000.0,
+						"minimum": 10000.0,
+						"mean":    10000.0,
 						"count":   10000,
 					},
 				},
diff --git a/test/acceptance/graphql_resolvers/local_get_meta_test.go b/test/acceptance/graphql_resolvers/local_get_meta_test.go
index dd3174a6234..65f8c953fb7 100644
--- a/test/acceptance/graphql_resolvers/local_get_meta_test.go
+++ b/test/acceptance/graphql_resolvers/local_get_meta_test.go
@@ -39,10 +39,10 @@ func TestLocalGetMetaWithoutFilters(t *testing.T) {
 								type
 							}
 							population {
-								average
+								mean
 								count
-								highest
-								lowest
+								maximum
+								minimum
 								sum
 								type
 							}
@@ -87,10 +87,10 @@ func TestLocalGetMetaWithoutFilters(t *testing.T) {
 	t.Run("int/number props", func(t *testing.T) {
 		isCapital := result.Get("Local", "GetMeta", "Things", "City", "population").Result
 		expected := map[string]interface{}{
-			"average": json.Number("1917500"),
+			"mean":    json.Number("1917500"),
 			"count":   json.Number("4"),
-			"highest": json.Number("3470000"),
-			"lowest":  json.Number("600000"),
+			"maximum": json.Number("3470000"),
+			"minimum": json.Number("600000"),
 			"sum":     json.Number("7670000"),
 			"type":    "int",
 		}
@@ -155,10 +155,10 @@ func TestLocalGetMetaWithFilters(t *testing.T) {
 								type
 							}
 							population {
-								average
+								mean
 								count
-								highest
-								lowest
+								maximum
+								minimum
 								sum
 								type
 							}
@@ -203,10 +203,10 @@ func TestLocalGetMetaWithFilters(t *testing.T) {
 	t.Run("int/number props", func(t *testing.T) {
 		isCapital := result.Get("Local", "GetMeta", "Things", "City", "population").Result
 		expected := map[string]interface{}{
-			"average": json.Number("2635000"),
+			"mean":    json.Number("2635000"),
 			"count":   json.Number("2"),
-			"highest": json.Number("3470000"),
-			"lowest":  json.Number("1800000"),
+			"maximum": json.Number("3470000"),
+			"minimum": json.Number("1800000"),
 			"sum":     json.Number("5270000"),
 			"type":    "int",
 		}
diff --git a/test/acceptance/graphql_resolvers/network_get_meta_test.go b/test/acceptance/graphql_resolvers/network_get_meta_test.go
index 8975965b518..c9c3a5824a5 100644
--- a/test/acceptance/graphql_resolvers/network_get_meta_test.go
+++ b/test/acceptance/graphql_resolvers/network_get_meta_test.go
@@ -29,9 +29,9 @@ func TestNetworkGetMeta(t *testing.T) {
 						Things {
 							Instruments {
 								volume {
-									highest
-									lowest
-									average
+									maximum
+									minimum
+									mean
 								}
 							}
 						}
@@ -46,9 +46,9 @@ func TestNetworkGetMeta(t *testing.T) {
 	spew.Dump(result.Result)
 	fmt.Print("\n\n\n")
 	expected := map[string]interface{}{
-		"average": json.Number("82"),
-		"highest": json.Number("110"),
-		"lowest":  json.Number("65"),
+		"mean":    json.Number("82"),
+		"maximum": json.Number("110"),
+		"minimum": json.Number("65"),
 	}
 	assert.Equal(t, expected, volume)
 }