-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(DRAFT) Example Point of Sales ES Rules #1967
Draft
JimHagan
wants to merge
6
commits into
newrelic:main
Choose a base branch
from
JimHagan:jhagan_customer_es_examples
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entityBot
requested changes
Mar 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beep boop bop.
I have found some errors processing these changes:
* Error PARSING domainType: 'ext-test_DT' on LinkedHashMap<String, entitydefinitionemitter.models.CustomSummaryMetricDefinition> - jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `entitydefinitionemitter.models.CustomSummaryMetricDefinition` from Array value (token `JsonToken.START_ARRAY`)
at [Source: (StringReader); line: 2, column: 3] (through reference chain: LinkedHashMap["summary_metrics"])
* Error PARSING domainType: 'ext-test_DT' on LinkedHashMap<String, entitydefinitionemitter.models.CustomGoldenMetricDefinition> - jackson.module.kotlin.MissingKotlinParameterException: Instantiation of [simple type, class entitydefinitionemitter.models.CustomGoldenMetricDefinition] value failed for JSON property title due to missing (therefore NULL) value for creator parameter title which is a non-nullable type
at [Source: (StringReader); line: 7, column: 1] (through reference chain: LinkedHashMap["golden_metrics"]->entitydefinitionemitter.models.CustomGoldenMetricDefinition["title"])
* Error PARSING domainType: 'ext-test_FC' on LinkedHashMap<String, entitydefinitionemitter.models.CustomSummaryMetricDefinition> - jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `entitydefinitionemitter.models.CustomSummaryMetricDefinition` from Array value (token `JsonToken.START_ARRAY`)
at [Source: (StringReader); line: 2, column: 3] (through reference chain: LinkedHashMap["summary_metrics"])
* Error PARSING domainType: 'ext-test_FC' on LinkedHashMap<String, entitydefinitionemitter.models.CustomGoldenMetricDefinition> - jackson.module.kotlin.MissingKotlinParameterException: Instantiation of [simple type, class entitydefinitionemitter.models.CustomGoldenMetricDefinition] value failed for JSON property title due to missing (therefore NULL) value for creator parameter title which is a non-nullable type
at [Source: (StringReader); line: 7, column: 1] (through reference chain: LinkedHashMap["golden_metrics"]->entitydefinitionemitter.models.CustomGoldenMetricDefinition["title"])
* Error PARSING domainType: 'ext-test_KIOSK' on LinkedHashMap<String, entitydefinitionemitter.models.CustomSummaryMetricDefinition> - jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `entitydefinitionemitter.models.CustomSummaryMetricDefinition` from Array value (token `JsonToken.START_ARRAY`)
at [Source: (StringReader); line: 2, column: 3] (through reference chain: LinkedHashMap["summary_metrics"])
* Error PARSING domainType: 'ext-test_KIOSK' on LinkedHashMap<String, entitydefinitionemitter.models.CustomGoldenMetricDefinition> - jackson.module.kotlin.MissingKotlinParameterException: Instantiation of [simple type, class entitydefinitionemitter.models.CustomGoldenMetricDefinition] value failed for JSON property title due to missing (therefore NULL) value for creator parameter title which is a non-nullable type
at [Source: (StringReader); line: 17, column: 1] (through reference chain: LinkedHashMap["golden_metrics"]->entitydefinitionemitter.models.CustomGoldenMetricDefinition["title"])
* Error PARSING domainType: 'ext-test_KVS' on LinkedHashMap<String, entitydefinitionemitter.models.CustomSummaryMetricDefinition> - jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `entitydefinitionemitter.models.CustomSummaryMetricDefinition` from Array value (token `JsonToken.START_ARRAY`)
at [Source: (StringReader); line: 2, column: 3] (through reference chain: LinkedHashMap["summary_metrics"])
* Error PARSING domainType: 'ext-test_KVS' on LinkedHashMap<String, entitydefinitionemitter.models.CustomGoldenMetricDefinition> - jackson.module.kotlin.MissingKotlinParameterException: Instantiation of [simple type, class entitydefinitionemitter.models.CustomGoldenMetricDefinition] value failed for JSON property title due to missing (therefore NULL) value for creator parameter title which is a non-nullable type
at [Source: (StringReader); line: 7, column: 1] (through reference chain: LinkedHashMap["golden_metrics"]->entitydefinitionemitter.models.CustomGoldenMetricDefinition["title"])
* Error PARSING domainType: 'ext-test_POS' on entitydefinitionemitter.models.BaseEntityDefinition - jackson.databind.exc.MismatchedInputException: Missing required creator property 'name' (index 0)
at [Source: (StringReader); line: 50, column: 1] (through reference chain: entitydefinitionemitter.models.BaseEntityDefinition["synthesis"]->entitydefinitionemitter.models.CustomEntitySynthesisRules["rules"]->ArrayList[0]->entitydefinitionsclientsynthesis.models.definitions.EntitySynthesisRule["name"])
* Error PARSING domainType: 'ext-test_STORE' on LinkedHashMap<String, entitydefinitionemitter.models.CustomSummaryMetricDefinition> - jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `entitydefinitionemitter.models.CustomSummaryMetricDefinition` from Array value (token `JsonToken.START_ARRAY`)
at [Source: (StringReader); line: 2, column: 3] (through reference chain: LinkedHashMap["summary_metrics"])
* Error PARSING domainType: 'ext-test_STORE' on LinkedHashMap<String, entitydefinitionemitter.models.CustomGoldenMetricDefinition> - jackson.module.kotlin.MissingKotlinParameterException: Instantiation of [simple type, class entitydefinitionemitter.models.CustomGoldenMetricDefinition] value failed for JSON property title due to missing (therefore NULL) value for creator parameter title which is a non-nullable type
at [Source: (StringReader); line: 27, column: 1] (through reference chain: LinkedHashMap["golden_metrics"]->entitydefinitionemitter.models.CustomGoldenMetricDefinition["title"])
* Error VALIDATING domainType: 'EXT-KVS' on synthesis.tag.ttl for key 'country' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KVS' on synthesis.tag.ttl for key 'host.ip' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KVS' on synthesis.tag.ttl for key 'device.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KVS' on synthesis.tag.ttl for key 'geo.location.lon' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KVS' on synthesis.tag.ttl for key 'device.type' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KVS' on synthesis.tag.ttl for key 'store.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KVS' on synthesis.tag.ttl for key 'geo.location.lat' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-DT' on synthesis.tag.ttl for key 'country' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-DT' on synthesis.tag.ttl for key 'host.ip' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-DT' on synthesis.tag.ttl for key 'device.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-DT' on synthesis.tag.ttl for key 'geo.location.lon' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-DT' on synthesis.tag.ttl for key 'device.type' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-DT' on synthesis.tag.ttl for key 'store.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-DT' on synthesis.tag.ttl for key 'geo.location.lat' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-STORE' on synthesis.tag.ttl for key 'country' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-STORE' on synthesis.tag.ttl for key 'store.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-FC' on synthesis.tag.ttl for key 'country' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-FC' on synthesis.tag.ttl for key 'host.ip' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-FC' on synthesis.tag.ttl for key 'device.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-FC' on synthesis.tag.ttl for key 'geo.location.lon' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-FC' on synthesis.tag.ttl for key 'device.type' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-FC' on synthesis.tag.ttl for key 'store.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-FC' on synthesis.tag.ttl for key 'geo.location.lat' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KIOSK' on synthesis.tag.ttl for key 'country' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KIOSK' on synthesis.tag.ttl for key 'host.ip' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KIOSK' on synthesis.tag.ttl for key 'device.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KIOSK' on synthesis.tag.ttl for key 'geo.location.lon' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KIOSK' on synthesis.tag.ttl for key 'device.type' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KIOSK' on synthesis.tag.ttl for key 'store.number' - format.DateTimeParseException: Text cannot be parsed to a Duration
* Error VALIDATING domainType: 'EXT-KIOSK' on synthesis.tag.ttl for key 'geo.location.lat' - format.DateTimeParseException: Text cannot be parsed to a Duration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relevant information
This is currently build off Log data representing various events related to custom device types.
Included device types so far:
DT = Drive Through (device.type = 'DT')
KIOSK = Self Servce KIOSK (device.type = 'CSO') - will be KIOSK eventually
FC = Front Counter Device (device.type = 'FC')
POS = Point of Sale Device / Register (device.type = 'POS')
KVS = Kitchen Video System (device.type = 'KVS')
STORE = Store (this is not a device type -- it's an abstraction)
Checklist
identifier
will be unique and valid.About the Source Data
The source data for this entity will come from
Log
. Each candidate will contain the necessary components as defined in the synthesis rule. This simple count query facets by all necessary elements:FROM Log SELECT count(*) where device.type = 'CSO' facet country, store.number, device.type, device.number
The follwoing raw sample data can be used to validate the synthesis rules. This is a kiosk at "fake store" at the geographical center of the USA: