/** 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(550L)
.facetPriority(218L)
.name("EXAMPLE-name-Value")
.isFacetEligible(true)
.isHighCardinality(true)
.isLargeData(false)
.isMultiValued(false)
.isPrimary(false)
.isSystem(false)
.isSummarizable(true)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(true)
.isMetricValueEligible(true)
.rangeFacetEligible(657L)
.isTableEligible(true)
.unitType("EXAMPLE-unitType-Value")
.timeUpdated(new Date("Sat Oct 28 09:20:36 UTC 2006"))
.isKeepDuplicates(false).build())
.parserFieldId(161L)
.parserFieldExpression("EXAMPLE-parserFieldExpression-Value")
.parserFieldName("EXAMPLE-parserFieldName-Value")
.storageFieldName("EXAMPLE-storageFieldName-Value")
.parserFieldIntegratorName("EXAMPLE-parserFieldIntegratorName-Value")
.parserName("EXAMPLE-parserName-Value")
.parserFieldSequence(577L)
.parser(LogAnalyticsParser.builder()
.content("EXAMPLE-content-Value")
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(903L)
.encoding("EXAMPLE-encoding-Value")
.exampleContent("EXAMPLE-exampleContent-Value")
.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("Tue Sep 11 14:09:39 UTC 2007"))
.logTypeTestRequestVersion(521)
.parserIgnorelineCharacters("EXAMPLE-parserIgnorelineCharacters-Value")
.isHidden(false)
.parserSequence(623)
.parserTimezone("EXAMPLE-parserTimezone-Value")
.parserFilter(LogAnalyticsParserFilter.builder()
.id("ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value")
.agentVersion("EXAMPLE-agentVersion-Value")
.isInUse(749L)
.operatingSystem("EXAMPLE-operatingSystem-Value")
.parserId(680L)
.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(227L)
.parserFunctionName("EXAMPLE-parserFunctionName-Value")
.isEnabled(false)
.isSystem(false)
.parserId(830L)
.parserName("EXAMPLE-parserName-Value")
.parserMetaPluginName("EXAMPLE-parserMetaPluginName-Value")
.parserFunctionPriority(292L)
.parserFunctionParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunctionParameter.builder()
.parserFunctionId(733L)
.parserFunctionParameterName("EXAMPLE-parserFunctionParameterName-Value")
.parserFunctionParameterId(771L)
.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())))
.sourcesCount(597L)
.sources(new ArrayList<>(Arrays.asList(LogAnalyticsSource.builder()
.labelConditions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceLabelCondition.builder()
.conditionString("EXAMPLE-conditionString-Value")
.conditionBlock(ConditionBlock.builder()
.conditionBlocksOperator(ConditionBlock.ConditionBlocksOperator.Or)
.fieldName("EXAMPLE-fieldName-Value")
.labelConditionOperator("EXAMPLE-labelConditionOperator-Value")
.labelConditionValue("EXAMPLE-labelConditionValue-Value")
.labelConditionValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value"))).build())
.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(241L)
.isSystem(true)
.labelConditionOperator("EXAMPLE-labelConditionOperator-Value")
.sourceId(727L)
.labelDisplayName("EXAMPLE-labelDisplayName-Value")
.storageField("EXAMPLE-storageField-Value")
.labelName("EXAMPLE-labelName-Value")
.isInlineLabelExistingInDatabase(true).build())))
.associationCount(261)
.associationEntity(new ArrayList<>(Arrays.asList(LogAnalyticsAssociation.builder()
.failureMessage("EXAMPLE-failureMessage-Value")
.agentId("ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value")
.timeLastAttempted(new Date("Sun Jun 09 22:04:44 UTC 2030"))
.retryCount(270L)
.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")
.associationProperties(new ArrayList<>(Arrays.asList(AssociationProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value")
.patterns(new ArrayList<>(Arrays.asList(PatternOverride.builder()
.id("ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value")
.value("EXAMPLE-value-Value")
.effectiveLevel("EXAMPLE-effectiveLevel-Value").build()))).build()))).build())))
.dataFilterDefinitions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceDataFilter.builder()
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(806L)
.isEnabled(true)
.fieldName("EXAMPLE-fieldName-Value")
.hashType(105)
.dataFilterId(415L)
.isSystem(false)
.matchRegularExpression("EXAMPLE-matchRegularExpression-Value")
.order(985L)
.path("EXAMPLE-path-Value")
.replacementString("EXAMPLE-replacementString-Value")
.sourceId(267L)
.filterType(LogAnalyticsSourceDataFilter.FilterType.DropString).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(506L)
.facetPriority(22L)
.name("EXAMPLE-name-Value")
.isFacetEligible(true)
.isHighCardinality(false)
.isLargeData(false)
.isMultiValued(false)
.isPrimary(true)
.isSystem(false)
.isSummarizable(true)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(true)
.isMetricValueEligible(false)
.rangeFacetEligible(473L)
.isTableEligible(false)
.unitType("EXAMPLE-unitType-Value")
.timeUpdated(new Date("Wed Dec 22 00:31:14 UTC 2038"))
.isKeepDuplicates(false).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(345L)
.facetPriority(762L)
.name("EXAMPLE-name-Value")
.isFacetEligible(true)
.isHighCardinality(true)
.isLargeData(false)
.isMultiValued(true)
.isPrimary(true)
.isSystem(false)
.isSummarizable(true)
.mappedValue("EXAMPLE-mappedValue-Value")
.isMetricKeyEligible(false)
.isMetricValueEligible(false)
.rangeFacetEligible(472L)
.isTableEligible(true)
.unitType("EXAMPLE-unitType-Value")
.timeUpdated(new Date("Tue Mar 21 21:50:21 UTC 2006"))
.isKeepDuplicates(true).build())
.extendedFieldDefinitionId(888L)
.fieldName("EXAMPLE-fieldName-Value")
.fieldDisplayName("EXAMPLE-fieldDisplayName-Value")
.savedRegularExpressionName("EXAMPLE-savedRegularExpressionName-Value")
.extendedFieldId(984L).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(false)
.extendedFieldDefinitionId(637L)
.isSystem(false)
.regularExpression("EXAMPLE-regularExpression-Value")
.sourceId(660L)
.timeUpdated(new Date("Thu Jun 03 07:16:41 UTC 2010"))
.conditionString("EXAMPLE-conditionString-Value")
.conditionBlock(GenericConditionBlock.builder()
.conditionBlocksOperator(GenericConditionBlock.ConditionBlocksOperator.Or)
.name("EXAMPLE-name-Value")
.operator("EXAMPLE-operator-Value")
.value("EXAMPLE-value-Value")
.values(new ArrayList<>(Arrays.asList("EXAMPLE--Value"))).build()).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(false)
.displayName("EXAMPLE-displayName-Value")
.name("EXAMPLE-name-Value")
.priority(LogAnalyticsLabelAlias.Priority.High).build())))
.countUsageInAlertRule(262L)
.countUsageInSource(666L)
.id("EXAMPLE-id-Value")
.suggestType(729L)
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(282L)
.impact("EXAMPLE-impact-Value")
.isSystem(true)
.name("EXAMPLE-name-Value")
.priority(LogAnalyticsLabelView.Priority.Medium)
.recommendation("EXAMPLE-recommendation-Value")
.type(148L)
.isUserDeleted(true).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(351L)
.fieldName("EXAMPLE-fieldName-Value")
.fieldValues(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.groupingField("EXAMPLE-groupingField-Value")
.isEnabled(true)
.isSystem(false)
.displayName("EXAMPLE-displayName-Value")
.metricReference(942L)
.name("EXAMPLE-name-Value")
.metricType(LogAnalyticsMetric.MetricType.SumDistribution)
.isMetricSourceEnabled(true)
.operator(LogAnalyticsMetric.Operator.ContainsIgnoreCase)
.entityType("EXAMPLE-entityType-Value")
.timeUpdated(new Date("Sun Jun 06 05:52:34 UTC 2004"))
.unitType("EXAMPLE-unitType-Value")
.isUserCustomized(true).build())))
.metrics(new ArrayList<>(Arrays.asList(LogAnalyticsSourceMetric.builder()
.isMetricSourceEnabled(false)
.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(false)
.name("EXAMPLE-name-Value")
.sourceId(238L).build())))
.patternCount(916)
.patterns(new ArrayList<>(Arrays.asList(LogAnalyticsSourcePattern.builder()
.convertedText("EXAMPLE-convertedText-Value")
.dbParserId(582L)
.dbPatternDateTimeColumns("EXAMPLE-dbPatternDateTimeColumns-Value")
.dbPatternDateTimeField("EXAMPLE-dbPatternDateTimeField-Value")
.dbPatternSequenceColumn("EXAMPLE-dbPatternSequenceColumn-Value")
.isInclude(true)
.isDefault(false)
.patternFilter(LogAnalyticsPatternFilter.builder()
.agentVersion("EXAMPLE-agentVersion-Value")
.isInUse(true)
.operatingSystem("EXAMPLE-operatingSystem-Value")
.patternId(68L)
.sourceId(482L)
.version("EXAMPLE-version-Value").build())
.alias("EXAMPLE-alias-Value")
.description("EXAMPLE-description-Value")
.isEnabled(false)
.patternId(305L)
.isSystem(true)
.sourceId(246L)
.isAgentWarningSuppressed(true)
.patternText("EXAMPLE-patternText-Value")
.patternType(658L)
.entityType(new ArrayList<>(Arrays.asList("EXAMPLE--Value")))
.patternProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())))
.description("EXAMPLE-description-Value")
.displayName("EXAMPLE-displayName-Value")
.editVersion(130L)
.functions(new ArrayList<>(Arrays.asList(LogAnalyticsSourceFunction.builder()
.arguments(new ArrayList<>(Arrays.asList(LogAnalyticsMetaFunctionArgument.builder()
.isOverrideOutputFields(true)
.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(919L)
.argumentType(944L)
.argumentId(897L)
.argumentLookupColumn("EXAMPLE-argumentLookupColumn-Value")
.argumentLookupColumnPosition(359L)
.argumentValue("EXAMPLE-argumentValue-Value")
.argumentReference("EXAMPLE-argumentReference-Value").build())))
.isEnabled(true)
.function(LogAnalyticsMetaFunction.builder()
.metaFunctionArgument(new ArrayList<>(Arrays.asList(LogAnalyticsMetaFunctionArgument.builder()
.isOverrideOutputFields(true)
.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(872L)
.argumentType(863L)
.argumentId(718L)
.argumentLookupColumn("EXAMPLE-argumentLookupColumn-Value")
.argumentLookupColumnPosition(301L)
.argumentValue("EXAMPLE-argumentValue-Value")
.argumentReference("EXAMPLE-argumentReference-Value").build())))
.component("EXAMPLE-component-Value")
.description("EXAMPLE-description-Value")
.editVersion(608L)
.metaFunctionId(860L)
.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(876L)
.order(513L)
.isSystem(true)
.lookupColumn("EXAMPLE-lookupColumn-Value")
.lookupColumnPosition(337L)
.lookupDisplayName("EXAMPLE-lookupDisplayName-Value")
.lookupMode(664L)
.lookupTable("EXAMPLE-lookupTable-Value")
.sourceId(863L).build())))
.sourceId(965L)
.name("EXAMPLE-name-Value")
.isSecureContent(true)
.isSystem(true)
.isAutoAssociationEnabled(true)
.isAutoAssociationOverride(true)
.ruleId(375L)
.typeName("EXAMPLE-typeName-Value")
.typeDisplayName("EXAMPLE-typeDisplayName-Value")
.warningConfig(333L)
.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(582L)
.isSystem(true)
.sourceId(728L)
.labelName("EXAMPLE-labelName-Value").build())))
.entityTypes(new ArrayList<>(Arrays.asList(LogAnalyticsSourceEntityType.builder()
.sourceId(255L)
.entityType("EXAMPLE-entityType-Value")
.entityTypeCategory("EXAMPLE-entityTypeCategory-Value")
.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value").build())))
.isTimezoneOverride(false)
.timeUpdated(new Date("Fri Nov 30 03:00:47 UTC 2035"))
.eventTypes(new ArrayList<>(Arrays.asList(EventType.builder()
.eventTypeName("EXAMPLE-eventTypeName-Value")
.specVersion("EXAMPLE-specVersion-Value")
.isEnabled(true)
.isSystem(false)
.timeUpdated(new Date("Tue Feb 10 20:27:17 UTC 2043")).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())))
.endpoints(new ArrayList<>(Arrays.asList(LogListTypeEndpoint.builder()
.listEndpoint(LogListEndpoint.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.model("EXAMPLE-model-Value")
.endpointId(212L)
.request(EndpointRequest.builder()
.method(EndpointRequest.Method.Get)
.url("EXAMPLE-url-Value")
.contentType("EXAMPLE-contentType-Value")
.payload("EXAMPLE-payload-Value")
.headers(new ArrayList<>(Arrays.asList(NameValuePair.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build())))
.formParameters(new ArrayList<>(Arrays.asList(NameValuePair.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())
.response(EndpointResponse.builder()
.contentType("EXAMPLE-contentType-Value")
.example("EXAMPLE-example-Value").build())
.credentials(EndpointCredentials.builder()
.credentialType(EndpointCredentials.CredentialType.DynamicToken)
.credentialName("EXAMPLE-credentialName-Value")
.credentialEndpoint(CredentialEndpoint.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.model("EXAMPLE-model-Value")
.endpointId(608L)
.response(EndpointResponse.builder()
.contentType("EXAMPLE-contentType-Value")
.example("EXAMPLE-example-Value").build())
.proxy(EndpointProxy.builder()
.url("EXAMPLE-url-Value")
.credentialName("EXAMPLE-credentialName-Value")
.credentialType(EndpointProxy.CredentialType.None).build()).build()).build())
.proxy(EndpointProxy.builder()
.url("EXAMPLE-url-Value")
.credentialName("EXAMPLE-credentialName-Value")
.credentialType(EndpointProxy.CredentialType.BasicAuth).build())
.isEnabled(true)
.isSystem(true)
.endpointProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())
.logEndpoints(new ArrayList<>(Arrays.asList(LogEndpoint.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.model("EXAMPLE-model-Value")
.endpointId(190L)
.request(EndpointRequest.builder()
.method(EndpointRequest.Method.Post)
.url("EXAMPLE-url-Value")
.contentType("EXAMPLE-contentType-Value")
.payload("EXAMPLE-payload-Value")
.headers(new ArrayList<>(Arrays.asList(NameValuePair.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build())))
.formParameters(new ArrayList<>(Arrays.asList(NameValuePair.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())
.response(EndpointResponse.builder()
.contentType("EXAMPLE-contentType-Value")
.example("EXAMPLE-example-Value").build())
.credentials(EndpointCredentials.builder()
.credentialType(EndpointCredentials.CredentialType.DynamicToken)
.credentialName("EXAMPLE-credentialName-Value")
.credentialEndpoint(CredentialEndpoint.builder()
.name("EXAMPLE-name-Value")
.description("EXAMPLE-description-Value")
.model("EXAMPLE-model-Value")
.endpointId(965L)
.response(EndpointResponse.builder()
.contentType("EXAMPLE-contentType-Value")
.example("EXAMPLE-example-Value").build())
.proxy(EndpointProxy.builder()
.url("EXAMPLE-url-Value")
.credentialName("EXAMPLE-credentialName-Value")
.credentialType(EndpointProxy.CredentialType.None).build()).build()).build())
.proxy(EndpointProxy.builder()
.url("EXAMPLE-url-Value")
.credentialName("EXAMPLE-credentialName-Value")
.credentialType(EndpointProxy.CredentialType.None).build())
.isEnabled(false)
.isSystem(true)
.endpointProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build()))).build())))
.sourceProperties(new ArrayList<>(Arrays.asList(LogAnalyticsProperty.builder()
.name("EXAMPLE-name-Value")
.value("EXAMPLE-value-Value").build()))).build())))
.shouldTokenizeOriginalText(false)
.fieldDelimiter("EXAMPLE-fieldDelimiter-Value")
.fieldQualifier("EXAMPLE-fieldQualifier-Value")
.type(LogAnalyticsParser.Type.Xml)
.isUserDeleted(true)
.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(true).build())))
.isPositionAware(false)
.dependentSources(new ArrayList<>(Arrays.asList(DependentSource.builder()
.sourceName("EXAMPLE-sourceName-Value")
.sourceDisplayName("EXAMPLE-sourceDisplayName-Value")
.sourceId(392L)
.sourceType("EXAMPLE-sourceType-Value")
.isSystem(true)
.isAutoAssociationEnabled(true)
.entityTypes(new ArrayList<>(Arrays.asList(LogAnalyticsSourceEntityType.builder()
.sourceId(431L)
.entityType("EXAMPLE-entityType-Value")
.entityTypeCategory("EXAMPLE-entityTypeCategory-Value")
.entityTypeDisplayName("EXAMPLE-entityTypeDisplayName-Value").build())))
.dependencies(new ArrayList<>(Arrays.asList(Dependency.builder()
.type("EXAMPLE-type-Value")
.referenceType("EXAMPLE-referenceType-Value")
.referenceId(90L)
.referenceName("EXAMPLE-referenceName-Value")
.referenceDisplayName("EXAMPLE-referenceDisplayName-Value").build()))).build())))
.dependentParsers(new ArrayList<>(Arrays.asList(DependentParser.builder()
.parserName("EXAMPLE-parserName-Value")
.parserDisplayName("EXAMPLE-parserDisplayName-Value")
.parserId(992L)
.isSystem(false)
.parserType(DependentParser.ParserType.Delimited)
.dependencies(new ArrayList<>(Arrays.asList(Dependency.builder()
.type("EXAMPLE-type-Value")
.referenceType("EXAMPLE-referenceType-Value")
.referenceId(270L)
.referenceName("EXAMPLE-referenceName-Value")
.referenceDisplayName("EXAMPLE-referenceDisplayName-Value").build()))).build()))).build())
.structuredColumnInfo("EXAMPLE-structuredColumnInfo-Value")
.actions(new ArrayList<>(Arrays.asList(ParserAction.builder()
.name("EXAMPLE-name-Value")
.order(571).build()))).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("Tue May 10 12:04:43 UTC 2011"))
.logTypeTestRequestVersion(118)
.metadata(UiParserTestMetadata.builder()
.lastModifiedTime("EXAMPLE-lastModifiedTime-Value")
.logFileName("EXAMPLE-logFileName-Value")
.timeZone(new Date("Thu Aug 21 18:46:44 UTC 2036")).build())
.parserIgnorelineCharacters("EXAMPLE-parserIgnorelineCharacters-Value")
.isHidden(722L)
.parserSequence(362)
.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(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(101L)
.parserFunctionName("EXAMPLE-parserFunctionName-Value")
.isEnabled(true)
.isSystem(false)
.parserId(969L)
.parserName("EXAMPLE-parserName-Value")
.parserMetaPluginName("EXAMPLE-parserMetaPluginName-Value")
.parserFunctionPriority(289L)
.parserFunctionParameters(new ArrayList<>(Arrays.asList(LogAnalyticsParserFunctionParameter.builder()
.parserFunctionId(977L)
.parserFunctionParameterName("EXAMPLE-parserFunctionParameterName-Value")
.parserFunctionParameterId(924L)
.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(true)
.pluginName("EXAMPLE-pluginName-Value")
.type("EXAMPLE-type-Value").build()).build()))).build())))
.shouldTokenizeOriginalText(true)
.fieldDelimiter("EXAMPLE-fieldDelimiter-Value")
.fieldQualifier("EXAMPLE-fieldQualifier-Value")
.type(TestParserPayloadDetails.Type.Odl)
.isNamespaceAware(false)
.isPositionAware(true).build();
TestParserRequest testParserRequest = TestParserRequest.builder()
.namespaceName("EXAMPLE-namespaceName-Value")
.testParserPayloadDetails(testParserPayloadDetails)
.scope(TestParserRequest.Scope.LogLinesLogEntries)
.reqOriginModule("EXAMPLE-reqOriginModule-Value")
.opcRetryToken("EXAMPLE-opcRetryToken-Value")
.opcRequestId("M1CTVZFEF55MNQCE8KH7<unique_ID>").build();
/* Send request to the Client */
TestParserResponse response = client.testParser(testParserRequest);
}
}