ParserTestRunInput is an input datatype for providing data for testing a parser. It's used by the testParserV2() mutation field.

Table: ParserTestRunInput

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
fieldsToBeRemovedBeforeParsingStringyes   A list of fields that will be removed from the event before it's parsed. These fields will not be included when calculating usage.
fieldsToTagStringyes   Fields that are used as tags.
languageVersionLanguageVersionInputType    A specific language version.
packageIdUnversionedPackageSpecifier    The id of the package the parser is part of. This is used to properly resolve dependencies when testing the parser
parserNameStringyes   The name of the parser. This is part of the test output in the `#type` field in each parsed event.
repositoryNameRepoOrViewNameyes   The name of the repository the parser is located in. This is part of the test output in the `#repo` field in each parsed event.
schemaYAML    YAML specification of schema to validate parser output against
schemaNameSchema    Name of the used schema
scriptStringyes   The parser script that is executed for every incoming event.
testCasesParserTestCaseInputyes   The test cases to run the parsing script against.