/** This is an automatically generated code sample.
To make this code sample work in your Oracle Cloud tenancy,
please replace the values for any parameters whose current values do not fit
your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
boolean, number, and enum parameters with values not fitting your use case).
*/
import com.oracle.bmc.ConfigFileReader;
import com.oracle.bmc.auth.AuthenticationDetailsProvider;
import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider;
import com.oracle.bmc.loganalytics.LogAnalyticsClient;
import com.oracle.bmc.loganalytics.model.*;
import com.oracle.bmc.loganalytics.requests.*;
import com.oracle.bmc.loganalytics.responses.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Date;
import java.util.UUID;
import java.util.Arrays;
public class TestParserExample {
public static void main(String[] args) throws Exception {
/**
* Create a default authentication provider that uses the DEFAULT
* profile in the configuration file.
* Refer to <see href="https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File>the public documentation</see> on how to prepare a configuration file.
*/
final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault();
final AuthenticationDetailsProvider provider = new ConfigFileAuthenticationDetailsProvider(configFile);
/* Create a service client */
LogAnalyticsClient client = LogAnalyticsClient.builder().build(provider);
/* Create a request and dependent object(s). */
TestParserPayloadDetails testParserPayloadDetails = TestParserPayloadDetails.builder()
.content("EXAMPLE-content-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.encoding("EXAMPLE-encoding-Value")
.exampleContent("EXAMPLE-exampleContent-Value")
.fieldMaps(new ArrayList<>(Arrays.asList(LogAnalyticsParserField.builder()
.field(LogAnalyticsField.builder()
.ceeAlias("EXAMPLE-ceeAlias-Value")
.dataType("EXAMPLE-dataType-Value")
.regularExpression("EXAMPLE-regularExpression-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(636L)
.facetPriority(240L)
.name("EXAMPLE-name-Value")
.isFacetEligible(false)
.isHighCardinality(false)
.isLargeData(true)
.isMultiValued(true)
.isPrimary(true)
.isSystem(false)
.isSummarizable(false)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(false)
.isMetricValueEligible(true)
.rangeFacetEligible(994L)
.isTableEligible(false)
.unitType("EXAMPLE-unitType-Value").build())
.parserFieldId(422L)
.parserFieldExpression("EXAMPLE-parserFieldExpression-Value")
.parserFieldName("EXAMPLE-parserFieldName-Value")
.storageFieldName("EXAMPLE-storageFieldName-Value")
.parserFieldIntegratorName("EXAMPLE-parserFieldIntegratorName-Value")
.parserName("EXAMPLE-parserName-Value")
.parserFieldSequence(803L)
.parser(LogAnalyticsParser.builder()
.content("EXAMPLE-content-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(961L)
.encoding("EXAMPLE-encoding-Value")
.exampleContent("EXAMPLE-exampleContent-Value")
.footerContent("EXAMPLE-footerContent-Value")
.headerContent("EXAMPLE-headerContent-Value")
.name("EXAMPLE-name-Value")
.isDefault(true)
.isSingleLineContent(false)
.isSystem(false)
.language("EXAMPLE-language-Value")
.timeUpdated(new Date("Tue Feb 07 01:16:19 UTC 2040"))
.logTypeTestRequestVersion(202)
.parserIgnorelineCharacters("EXAMPLE-parserIgnorelineCharacters-Value")
.isHidden(true)
.parserSequence(462)
.parserTimezone("EXAMPLE-parserTimezone-Value")
.parserFilter(LogAnalyticsParserFilter.builder()
.id("ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value")
.agentVersion("EXAMPLE-agentVersion-Value")
.isInUse(702L)
.operatingSystem("EXAMPLE-operatingSystem-Value")
.parserId(423L)
.version("EXAMPLE-version-Value").build())
.isParserWrittenOnce(true)
.parserFunctions(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunction.builder()
.parserMetaPlugin(LogAnalyticsParserMetaPlugin.builder()
.metaPluginParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserMetaPluginParameter.builder()
.description("EXAMPLE-description-Value")
.name("EXAMPLE-name-Value")
.isMandatory(false)
.isRepeatable(false)
.pluginName("EXAMPLE-pluginName-Value")
.type("EXAMPLE-type-Value").build())))
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.name("EXAMPLE-name-Value").build())
.parserFunctionId(814L)
.parserFunctionName("EXAMPLE-parserFunctionName-Value")
.isEnabled(false)
.isSystem(false)
.parserId(525L)
.parserName("EXAMPLE-parserName-Value")
.parserMetaPluginName("EXAMPLE-parserMetaPluginName-Value")
.parserFunctionPriority(667L)
.parserFunctionParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunctionParameter.builder()
.parserFunctionId(168L)
.parserFunctionParameterName("EXAMPLE-parserFunctionParameterName-Value")
.parserFunctionParameterId(21L)
.parserMetaPluginParameterName("EXAMPLE-parserMetaPluginParameterName-Value")
.parserMetaPluginParameterValue("EXAMPLE-parserMetaPluginParameterValue-Value")
.parserName("EXAMPLE-parserName-Value")
.parserMetaPluginParameter(LogAnalyticsParserMetaPluginParameter.builder()
.description("EXAMPLE-description-Value")
.name("EXAMPLE-name-Value")
.isMandatory(false)
.isRepeatable(true)
.pluginName("EXAMPLE-pluginName-Value")
.type("EXAMPLE-type-Value").build()).build()))).build())))
.sourcesCount(616L)
.sources(new ArrayList<>(Arrays.asList(LogAnalyticsSource.builder()
.labelConditions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceLabelCondition.builder()
.message("EXAMPLE-message-Value")
.isVisible(false)
.blockConditionField("EXAMPLE-blockConditionField-Value")
.blockConditionOperator("EXAMPLE-blockConditionOperator-Value")
.blockConditionValue("EXAMPLE-blockConditionValue-Value")
.labelConditionValue("EXAMPLE-labelConditionValue-Value")
.labelConditionValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.contentExample("EXAMPLE-contentExample-Value")
.isEnabled(true)
.fieldName("EXAMPLE-fieldName-Value")
.labelConditionId(353L)
.isSystem(false)
.labelConditionOperator("EXAMPLE-labelConditionOperator-Value")
.sourceId(719L)
.labelDisplayName("EXAMPLE-labelDisplayName-Value")
.storageField("EXAMPLE-storageField-Value")
.labelName("EXAMPLE-labelName-Value")
.isInlineLabelExistingInDatabase(true).build())))
.associationCount(575)
.associationEntity(new ArrayList<>(Arrays.asList(LogAnalyticsAssociation.builder()
.failureMessage("EXAMPLE-failureMessage-Value")
.agentId("ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value")
.timeLastAttempted(new Date("Sun Feb 18 07:06:02 UTC 2029"))
.retryCount(119L)
.sourceName("EXAMPLE-sourceName-Value")
.sourceDisplayName("EXAMPLE-sourceDisplayName-Value")
.sourceTypeName("EXAMPLE-sourceTypeName-Value")
.lifeCycleState(LogAnalyticsAssociation.LifeCycleState.Accepted)
.entityId("ocid1.test.oc1..<unique_ID>EXAMPLE-entityId-Value")
.entityName("EXAMPLE-entityName-Value")
.entityTypeName("EXAMPLE-entityTypeName-Value")
.host("EXAMPLE-host-Value")
.agentEntityName("EXAMPLE-agentEntityName-Value")
.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value")
.logGroupId("ocid1.test.oc1..<unique_ID>EXAMPLE-logGroupId-Value")
.logGroupName("EXAMPLE-logGroupName-Value")
.logGroupCompartment("EXAMPLE-logGroupCompartment-Value").build())))
.dataFilterDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceDataFilter.builder()
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(610L)
.isEnabled(false)
.fieldName("EXAMPLE-fieldName-Value")
.hashType(810)
.dataFilterId(607L)
.isSystem(true)
.matchRegularExpression("EXAMPLE-matchRegularExpression-Value")
.order(193L)
.path("EXAMPLE-path-Value")
.replacementString("EXAMPLE-replacementString-Value")
.sourceId(631L)
.filterType(LogAnalyticsSourceDataFilter.FilterType.HashMask).build())))
.databaseCredential("EXAMPLE-databaseCredential-Value")
.extendedFieldDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceExtendedFieldDefinition.builder()
.field(LogAnalyticsField.builder()
.ceeAlias("EXAMPLE-ceeAlias-Value")
.dataType("EXAMPLE-dataType-Value")
.regularExpression("EXAMPLE-regularExpression-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(58L)
.facetPriority(124L)
.name("EXAMPLE-name-Value")
.isFacetEligible(false)
.isHighCardinality(true)
.isLargeData(true)
.isMultiValued(false)
.isPrimary(false)
.isSystem(true)
.isSummarizable(false)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(true)
.isMetricValueEligible(true)
.rangeFacetEligible(746L)
.isTableEligible(false)
.unitType("EXAMPLE-unitType-Value").build())
.displayRegularExpression("EXAMPLE-displayRegularExpression-Value")
.extendedFields(new ArrayList<>(Arrays.asList(LogAnalyticsExtendedField.builder()
.field(LogAnalyticsField.builder()
.ceeAlias("EXAMPLE-ceeAlias-Value")
.dataType("EXAMPLE-dataType-Value")
.regularExpression("EXAMPLE-regularExpression-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(906L)
.facetPriority(811L)
.name("EXAMPLE-name-Value")
.isFacetEligible(true)
.isHighCardinality(true)
.isLargeData(true)
.isMultiValued(true)
.isPrimary(false)
.isSystem(true)
.isSummarizable(false)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(true)
.isMetricValueEligible(false)
.rangeFacetEligible(65L)
.isTableEligible(true)
.unitType("EXAMPLE-unitType-Value").build())
.extendedFieldDefinitionId(963L)
.fieldName("EXAMPLE-fieldName-Value")
.fieldDisplayName("EXAMPLE-fieldDisplayName-Value")
.savedRegularExpressionName("EXAMPLE-savedRegularExpressionName-Value")
.extendedFieldId(804L).build())))
.baseFieldName("EXAMPLE-baseFieldName-Value")
.baseFieldLogText("EXAMPLE-baseFieldLogText-Value")
.conditionDataType("EXAMPLE-conditionDataType-Value")
.conditionField("EXAMPLE-conditionField-Value")
.conditionOperator("EXAMPLE-conditionOperator-Value")
.conditionValue("EXAMPLE-conditionValue-Value")
.convertedRegularExpression("EXAMPLE-convertedRegularExpression-Value")
.isEnabled(true)
.extendedFieldDefinitionId(188L)
.isSystem(true)
.regularExpression("EXAMPLE-regularExpression-Value")
.sourceId(104L)
.timeUpdated(new Date("Mon Jul 13 02:31:45 UTC 2020")).build())))
.isForCloud(true)
.labels(new ArrayList<>(Arrays.asList(LogAnalyticsLabelView.builder()
.aliases(new ArrayList<>(Arrays.asList(LogAnalyticsLabelAlias.builder()
.alias("EXAMPLE-alias-Value")
.aliasDisplayName("EXAMPLE-aliasDisplayName-Value")
.isSystem(true)
.displayName("EXAMPLE-displayName-Value")
.name("EXAMPLE-name-Value")
.priority(LogAnalyticsLabelAlias.Priority.Medium).build())))
.countUsageInAlertRule(568L)
.countUsageInSource(263L)
.id("EXAMPLE-id-Value")
.suggestType(465L)
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(279L)
.impact("EXAMPLE-impact-Value")
.isSystem(true)
.name("EXAMPLE-name-Value")
.priority(LogAnalyticsLabelView.Priority.Low)
.recommendation("EXAMPLE-recommendation-Value")
.type(970L)
.isUserDeleted(false).build())))
.metricDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsMetric.builder()
.aggregationField("EXAMPLE-aggregationField-Value")
.bucketMetadata("EXAMPLE-bucketMetadata-Value")
.clockPeriod("EXAMPLE-clockPeriod-Value")
.description("EXAMPLE-description-Value")
.editVersion(800L)
.fieldName("EXAMPLE-fieldName-Value")
.fieldValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.groupingField("EXAMPLE-groupingField-Value")
.isEnabled(false)
.isSystem(false)
.displayName("EXAMPLE-displayName-Value")
.metricReference(66L)
.name("EXAMPLE-name-Value")
.metricType(LogAnalyticsMetric.MetricType.AverageDistribution)
.isMetricSourceEnabled(false)
.operator(LogAnalyticsMetric.Operator.EqualIgnoreCase)
.entityType("EXAMPLE-entityType-Value")
.timeUpdated(new Date("Mon Aug 06 19:02:12 UTC 2046"))
.unitType("EXAMPLE-unitType-Value")
.isUserCustomized(true).build())))
.metrics(new ArrayList<>(Arrays.asList(LogAnalyticsSourceMetric.builder()
.isMetricSourceEnabled(true)
.metricName("EXAMPLE-metricName-Value")
.sourceName("EXAMPLE-sourceName-Value")
.entityType("EXAMPLE-entityType-Value").build())))
.parameters(new ArrayList<>(Arrays.asList(LogAnalyticsParameter.builder()
.defaultValue("EXAMPLE-defaultValue-Value")
.description("EXAMPLE-description-Value")
.isActive(true)
.name("EXAMPLE-name-Value")
.sourceId(820L).build())))
.patternCount(545)
.patterns(new ArrayList<>(Arrays.asList(LogAnalyticsSourcePattern.builder()
.convertedText("EXAMPLE-convertedText-Value")
.dbParserId(879L)
.dbPatternDateTimeColumns("EXAMPLE-dbPatternDateTimeColumns-Value")
.dbPatternDateTimeField("EXAMPLE-dbPatternDateTimeField-Value")
.dbPatternSequenceColumn("EXAMPLE-dbPatternSequenceColumn-Value")
.isInclude(false)
.isDefault(true)
.patternFilter(LogAnalyticsPatternFilter.builder()
.agentVersion("EXAMPLE-agentVersion-Value")
.isInUse(false)
.operatingSystem("EXAMPLE-operatingSystem-Value")
.patternId(44L)
.sourceId(646L)
.version("EXAMPLE-version-Value").build())
.alias("EXAMPLE-alias-Value")
.description("EXAMPLE-description-Value")
.isEnabled(false)
.patternId(677L)
.isSystem(true)
.sourceId(434L)
.isAgentWarningSuppressed(true)
.patternText("EXAMPLE-patternText-Value")
.patternType(138L)
.entityType(new ArrayList<>(Arrays.asList("EXAMPLE--Value"))).build())))
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(598L)
.functions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceFunction.builder()
.arguments(new ArrayList<>(Arrays.asList(LogAnalyticsMetaFunctionArgument.builder()
.isOverrideOutputFields(false)
.argumentDisplayName("EXAMPLE-argumentDisplayName-Value")
.argumentExample("EXAMPLE-argumentExample-Value")
.argumentService("EXAMPLE-argumentService-Value")
.argumentDataType("EXAMPLE-argumentDataType-Value")
.argumentDescription("EXAMPLE-argumentDescription-Value")
.argumentName("EXAMPLE-argumentName-Value")
.argumentOrder(651L)
.argumentType(133L)
.argumentId(424L)
.argumentLookupColumn("EXAMPLE-argumentLookupColumn-Value")
.argumentLookupColumnPosition(22L)
.argumentValue("EXAMPLE-argumentValue-Value")
.argumentReference("EXAMPLE-argumentReference-Value").build())))
.isEnabled(true)
.function(LogAnalyticsMetaFunction.builder()
.metaFunctionArgument(new ArrayList<>(Arrays.asList(LogAnalyticsMetaFunctionArgument.builder()
.isOverrideOutputFields(false)
.argumentDisplayName("EXAMPLE-argumentDisplayName-Value")
.argumentExample("EXAMPLE-argumentExample-Value")
.argumentService("EXAMPLE-argumentService-Value")
.argumentDataType("EXAMPLE-argumentDataType-Value")
.argumentDescription("EXAMPLE-argumentDescription-Value")
.argumentName("EXAMPLE-argumentName-Value")
.argumentOrder(304L)
.argumentType(890L)
.argumentId(500L)
.argumentLookupColumn("EXAMPLE-argumentLookupColumn-Value")
.argumentLookupColumnPosition(347L)
.argumentValue("EXAMPLE-argumentValue-Value")
.argumentReference("EXAMPLE-argumentReference-Value").build())))
.component("EXAMPLE-component-Value")
.description("EXAMPLE-description-Value")
.editVersion(593L)
.metaFunctionId(412L)
.javaClassName("EXAMPLE-javaClassName-Value")
.name("EXAMPLE-name-Value").build())
.functionName(LogAnalyticsSourceFunction.FunctionName.Geolocation)
.functionReference("EXAMPLE-functionReference-Value")
.sourceReference("EXAMPLE-sourceReference-Value")
.features(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.functionId(949L)
.order(438L)
.isSystem(true)
.lookupColumn("EXAMPLE-lookupColumn-Value")
.lookupColumnPosition(509L)
.lookupDisplayName("EXAMPLE-lookupDisplayName-Value")
.lookupMode(898L)
.lookupTable("EXAMPLE-lookupTable-Value")
.sourceId(158L).build())))
.sourceId(897L)
.name("EXAMPLE-name-Value")
.isSecureContent(true)
.isSystem(true)
.isAutoAssociationEnabled(false)
.isAutoAssociationOverride(true)
.ruleId(412L)
.typeName("EXAMPLE-typeName-Value")
.typeDisplayName("EXAMPLE-typeDisplayName-Value")
.warningConfig(458L)
.metadataFields(new ArrayList<>(Arrays.asList(LogAnalyticsSourceMetadataField.builder()
.fieldName("EXAMPLE-fieldName-Value")
.isEnabled(true)
.isSystem(false)
.key("EXAMPLE-key-Value")
.sourceName("EXAMPLE-sourceName-Value").build())))
.labelDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsLabelDefinition.builder()
.editVersion(807L)
.isSystem(false)
.sourceId(31L)
.labelName("EXAMPLE-labelName-Value").build())))
.entityTypes(new ArrayList<>(Arrays.asList(LogAnalyticsSourceEntityType.builder()
.sourceId(357L)
.entityType("EXAMPLE-entityType-Value")
.entityTypeCategory("EXAMPLE-entityTypeCategory-Value")
.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value").build())))
.isTimezoneOverride(false)
.timeUpdated(new Date("Tue Feb 11 01:17:22 UTC 2014"))
.eventTypes(new ArrayList<>(Arrays.asList(EventType.builder()
.eventTypeName("EXAMPLE-eventTypeName-Value")
.specVersion("EXAMPLE-specVersion-Value")
.isEnabled(true)
.isSystem(true)
.timeUpdated(new Date("Mon Jul 07 12:25:29 UTC 2014")).build())))
.categories(new ArrayList<>(Arrays.asList(LogAnalyticsCategory.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.type("EXAMPLE-type-Value")
.isSystem(false).build()))).build())))
.shouldTokenizeOriginalText(false)
.fieldDelimiter("EXAMPLE-fieldDelimiter-Value")
.fieldQualifier("EXAMPLE-fieldQualifier-Value")
.type(LogAnalyticsParser.Type.Json)
.isUserDeleted(false)
.isNamespaceAware(false)
.categories(new ArrayList<>(Arrays.asList(LogAnalyticsCategory.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.type("EXAMPLE-type-Value")
.isSystem(false).build()))).build())
.structuredColumnInfo("EXAMPLE-structuredColumnInfo-Value").build())))
.footerContent("EXAMPLE-footerContent-Value")
.headerContent("EXAMPLE-headerContent-Value")
.name("EXAMPLE-name-Value")
.isDefault(true)
.isSingleLineContent(true)
.isSystem(true)
.language("EXAMPLE-language-Value")
.timeUpdated(new Date("Sun Aug 08 22:35:35 UTC 2032"))
.logTypeTestRequestVersion(912)
.metadata(UiParserTestMetadata.builder()
.lastModifiedTime("EXAMPLE-lastModifiedTime-Value")
.logFileName("EXAMPLE-logFileName-Value")
.timeZone(new Date("Thu Apr 20 16:40:39 UTC 2034")).build())
.parserIgnorelineCharacters("EXAMPLE-parserIgnorelineCharacters-Value")
.isHidden(442L)
.parserSequence(65)
.parserTimezone("EXAMPLE-parserTimezone-Value")
.isParserWrittenOnce(false)
.parserFunctions(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunction.builder()
.parserMetaPlugin(LogAnalyticsParserMetaPlugin.builder()
.metaPluginParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserMetaPluginParameter.builder()
.description("EXAMPLE-description-Value")
.name("EXAMPLE-name-Value")
.isMandatory(true)
.isRepeatable(true)
.pluginName("EXAMPLE-pluginName-Value")
.type("EXAMPLE-type-Value").build())))
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.name("EXAMPLE-name-Value").build())
.parserFunctionId(446L)
.parserFunctionName("EXAMPLE-parserFunctionName-Value")
.isEnabled(true)
.isSystem(false)
.parserId(293L)
.parserName("EXAMPLE-parserName-Value")
.parserMetaPluginName("EXAMPLE-parserMetaPluginName-Value")
.parserFunctionPriority(407L)
.parserFunctionParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunctionParameter.builder()
.parserFunctionId(136L)
.parserFunctionParameterName("EXAMPLE-parserFunctionParameterName-Value")
.parserFunctionParameterId(562L)
.parserMetaPluginParameterName("EXAMPLE-parserMetaPluginParameterName-Value")
.parserMetaPluginParameterValue("EXAMPLE-parserMetaPluginParameterValue-Value")
.parserName("EXAMPLE-parserName-Value")
.parserMetaPluginParameter(LogAnalyticsParserMetaPluginParameter.builder()
.description("EXAMPLE-description-Value")
.name("EXAMPLE-name-Value")
.isMandatory(true)
.isRepeatable(false)
.pluginName("EXAMPLE-pluginName-Value")
.type("EXAMPLE-type-Value").build()).build()))).build())))
.shouldTokenizeOriginalText(false)
.fieldDelimiter("EXAMPLE-fieldDelimiter-Value")
.fieldQualifier("EXAMPLE-fieldQualifier-Value")
.type(TestParserPayloadDetails.Type.Odl)
.isNamespaceAware(false).build();
TestParserRequest testParserRequest = TestParserRequest.builder()
.namespaceName("EXAMPLE-namespaceName-Value")
.testParserPayloadDetails(testParserPayloadDetails)
.scope(TestParserRequest.Scope.LogEntries)
.reqOriginModule("EXAMPLE-reqOriginModule-Value")
.opcRetryToken("EXAMPLE-opcRetryToken-Value")
.opcRequestId("ONR9FOIKQAJZCEE9SGJC<unique_ID>").build();
/* Send request to the Client */
TestParserResponse response = client.testParser(testParserRequest);
}
}