From fe066b08de0c6ab85166b2ad923e595ce675cfa4 Mon Sep 17 00:00:00 2001 From: apmmachine <58790750+apmmachine@users.noreply.github.com> Date: Wed, 17 Nov 2021 05:52:46 -0500 Subject: [PATCH] synchronize json schema specs (#1150) --- internal/apmschema/jsonschema/error.json | 8 +++++++ internal/apmschema/jsonschema/metricset.json | 25 ++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/internal/apmschema/jsonschema/error.json b/internal/apmschema/jsonschema/error.json index 2170ccc32..839b55376 100644 --- a/internal/apmschema/jsonschema/error.json +++ b/internal/apmschema/jsonschema/error.json @@ -1096,6 +1096,14 @@ "object" ], "properties": { + "name": { + "description": "Name is the generic designation of a transaction in the scope of a single service, eg: 'GET /users/:id'.", + "type": [ + "null", + "string" + ], + "maxLength": 1024 + }, "sampled": { "description": "Sampled indicates whether or not the full information for a transaction is captured. If a transaction is unsampled no spans and less context information will be reported.", "type": [ diff --git a/internal/apmschema/jsonschema/metricset.json b/internal/apmschema/jsonschema/metricset.json index 391ae3480..9a3eff315 100644 --- a/internal/apmschema/jsonschema/metricset.json +++ b/internal/apmschema/jsonschema/metricset.json @@ -129,6 +129,31 @@ } } }, + "service": { + "description": "Service holds selected information about the correlated service.", + "type": [ + "null", + "object" + ], + "properties": { + "name": { + "description": "Name of the correlated service.", + "type": [ + "null", + "string" + ], + "maxLength": 1024 + }, + "version": { + "description": "Version of the correlated service.", + "type": [ + "null", + "string" + ], + "maxLength": 1024 + } + } + }, "span": { "description": "Span holds selected information about the correlated transaction.", "type": [