// 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 * as loganalytics from "oci-loganalytics";
import common = require("oci-common");
// 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.
const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();
(async () => {
try {
// Create a service client
const client = new loganalytics.LogAnalyticsClient({ authenticationDetailsProvider: provider });
// Create a request and dependent object(s).
const testParserPayloadDetails = {
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
encoding: "EXAMPLE-encoding-Value",
exampleContent: "EXAMPLE-exampleContent-Value",
fieldMaps: [{
field: {
ceeAlias: "EXAMPLE-ceeAlias-Value",
dataType: "EXAMPLE-dataType-Value",
regularExpression: "EXAMPLE-regularExpression-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 62,
facetPriority: 575,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: false,
isLargeData: true,
isMultiValued: false,
isPrimary: false,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: true,
rangeFacetEligible: 428,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sun Nov 03 09:45:17 UTC 2013"),
isKeepDuplicates: false,
}
,
parserFieldId: 207,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 839,
parser: {
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 763,
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: false,
language: "EXAMPLE-language-Value",
timeUpdated: new Date("Sun Jun 14 21:45:16 UTC 2009"),
logTypeTestRequestVersion: 839,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: false,
parserSequence: 535,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 860,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 490,
version: "EXAMPLE-version-Value",
}
,
isParserWrittenOnce: true,
parserFunctions: [{
parserMetaPlugin: {
metaPluginParameters: [{
description: "EXAMPLE-description-Value",
name: "EXAMPLE-name-Value",
isMandatory: false,
isRepeatable: false,
pluginName: "EXAMPLE-pluginName-Value",
type: "EXAMPLE-type-Value",
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
name: "EXAMPLE-name-Value",
}
,
parserFunctionId: 572,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: false,
isSystem: false,
parserId: 689,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 618,
parserFunctionParameters: [{
parserFunctionId: 19,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 133,
parserMetaPluginParameterName: "EXAMPLE-parserMetaPluginParameterName-Value",
parserMetaPluginParameterValue: "EXAMPLE-parserMetaPluginParameterValue-Value",
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginParameter: {
description: "EXAMPLE-description-Value",
name: "EXAMPLE-name-Value",
isMandatory: false,
isRepeatable: false,
pluginName: "EXAMPLE-pluginName-Value",
type: "EXAMPLE-type-Value",
}
,
}
],
}
],
sourcesCount: 75,
sources: [{
labelConditions: [{
conditionString: "EXAMPLE-conditionString-Value",
conditionBlock: {
conditionBlocksOperator: loganalytics.models.ConditionBlock.ConditionBlocksOperator.Or,
fieldName: "EXAMPLE-fieldName-Value",
labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
labelConditionValue: "EXAMPLE-labelConditionValue-Value",
labelConditionValues: ["EXAMPLE--Value" ],
}
,
message: "EXAMPLE-message-Value",
isVisible: true,
blockConditionField: "EXAMPLE-blockConditionField-Value",
blockConditionOperator: "EXAMPLE-blockConditionOperator-Value",
blockConditionValue: "EXAMPLE-blockConditionValue-Value",
labelConditionValue: "EXAMPLE-labelConditionValue-Value",
labelConditionValues: ["EXAMPLE--Value" ],
contentExample: "EXAMPLE-contentExample-Value",
isEnabled: true,
fieldName: "EXAMPLE-fieldName-Value",
labelConditionId: 730,
isSystem: true,
labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
sourceId: 762,
labelDisplayName: "EXAMPLE-labelDisplayName-Value",
storageField: "EXAMPLE-storageField-Value",
labelName: "EXAMPLE-labelName-Value",
isInlineLabelExistingInDatabase: true,
}
],
associationCount: 428,
associationEntity: [{
failureMessage: "EXAMPLE-failureMessage-Value",
agentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value",
timeLastAttempted: new Date("Sun Nov 11 02:56:18 UTC 2018"),
retryCount: 648,
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceTypeName: "EXAMPLE-sourceTypeName-Value",
lifeCycleState: loganalytics.models.LogAnalyticsAssociation.LifeCycleState.Succeeded,
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: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
patterns: [{
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
value: "EXAMPLE-value-Value",
effectiveLevel: "EXAMPLE-effectiveLevel-Value",
}
],
}
],
}
],
dataFilterDefinitions: [{
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 126,
isEnabled: true,
fieldName: "EXAMPLE-fieldName-Value",
hashType: 657,
dataFilterId: 799,
isSystem: true,
matchRegularExpression: "EXAMPLE-matchRegularExpression-Value",
order: 772,
path: "EXAMPLE-path-Value",
replacementString: "EXAMPLE-replacementString-Value",
sourceId: 505,
filterType: loganalytics.models.LogAnalyticsSourceDataFilter.FilterType.DropString,
}
],
databaseCredential: "EXAMPLE-databaseCredential-Value",
extendedFieldDefinitions: [{
field: {
ceeAlias: "EXAMPLE-ceeAlias-Value",
dataType: "EXAMPLE-dataType-Value",
regularExpression: "EXAMPLE-regularExpression-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 589,
facetPriority: 849,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: false,
isLargeData: true,
isMultiValued: true,
isPrimary: false,
isSystem: true,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: false,
rangeFacetEligible: 18,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Fri Aug 14 16:01:12 UTC 2026"),
isKeepDuplicates: false,
}
,
displayRegularExpression: "EXAMPLE-displayRegularExpression-Value",
extendedFields: [{
field: {
ceeAlias: "EXAMPLE-ceeAlias-Value",
dataType: "EXAMPLE-dataType-Value",
regularExpression: "EXAMPLE-regularExpression-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 259,
facetPriority: 854,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: true,
isLargeData: false,
isMultiValued: false,
isPrimary: true,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: false,
rangeFacetEligible: 852,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sun Jun 26 23:04:56 UTC 2039"),
isKeepDuplicates: false,
}
,
extendedFieldDefinitionId: 998,
fieldName: "EXAMPLE-fieldName-Value",
fieldDisplayName: "EXAMPLE-fieldDisplayName-Value",
savedRegularExpressionName: "EXAMPLE-savedRegularExpressionName-Value",
extendedFieldId: 601,
}
],
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: 59,
isSystem: true,
regularExpression: "EXAMPLE-regularExpression-Value",
sourceId: 711,
timeUpdated: new Date("Thu Jun 22 06:14:25 UTC 2045"),
conditionString: "EXAMPLE-conditionString-Value",
conditionBlock: {
conditionBlocksOperator: loganalytics.models.GenericConditionBlock.ConditionBlocksOperator.NotAnd,
name: "EXAMPLE-name-Value",
operator: "EXAMPLE-operator-Value",
value: "EXAMPLE-value-Value",
values: ["EXAMPLE--Value" ],
}
,
}
],
isForCloud: true,
labels: [{
aliases: [{
alias: "EXAMPLE-alias-Value",
aliasDisplayName: "EXAMPLE-aliasDisplayName-Value",
isSystem: false,
displayName: "EXAMPLE-displayName-Value",
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelAlias.Priority.Low,
}
],
countUsageInAlertRule: 856,
countUsageInSource: 524,
id: "EXAMPLE-id-Value",
suggestType: 678,
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 754,
impact: "EXAMPLE-impact-Value",
isSystem: false,
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelView.Priority.Low,
recommendation: "EXAMPLE-recommendation-Value",
type: 100,
isUserDeleted: true,
}
],
metricDefinitions: [{
aggregationField: "EXAMPLE-aggregationField-Value",
bucketMetadata: "EXAMPLE-bucketMetadata-Value",
clockPeriod: "EXAMPLE-clockPeriod-Value",
description: "EXAMPLE-description-Value",
editVersion: 508,
fieldName: "EXAMPLE-fieldName-Value",
fieldValues: ["EXAMPLE--Value" ],
groupingField: "EXAMPLE-groupingField-Value",
isEnabled: true,
isSystem: false,
displayName: "EXAMPLE-displayName-Value",
metricReference: 821,
name: "EXAMPLE-name-Value",
metricType: loganalytics.models.LogAnalyticsMetric.MetricType.SumDistribution,
isMetricSourceEnabled: true,
operator: loganalytics.models.LogAnalyticsMetric.Operator.InIgnoreCase,
entityType: "EXAMPLE-entityType-Value",
timeUpdated: new Date("Mon Jun 27 14:40:42 UTC 2044"),
unitType: "EXAMPLE-unitType-Value",
isUserCustomized: false,
}
],
metrics: [{
isMetricSourceEnabled: true,
metricName: "EXAMPLE-metricName-Value",
sourceName: "EXAMPLE-sourceName-Value",
entityType: "EXAMPLE-entityType-Value",
}
],
parameters: [{
defaultValue: "EXAMPLE-defaultValue-Value",
description: "EXAMPLE-description-Value",
isActive: false,
name: "EXAMPLE-name-Value",
sourceId: 624,
}
],
patternCount: 47,
patterns: [{
convertedText: "EXAMPLE-convertedText-Value",
dbParserId: 931,
dbPatternDateTimeColumns: "EXAMPLE-dbPatternDateTimeColumns-Value",
dbPatternDateTimeField: "EXAMPLE-dbPatternDateTimeField-Value",
dbPatternSequenceColumn: "EXAMPLE-dbPatternSequenceColumn-Value",
isInclude: true,
isDefault: true,
patternFilter: {
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: false,
operatingSystem: "EXAMPLE-operatingSystem-Value",
patternId: 166,
sourceId: 832,
version: "EXAMPLE-version-Value",
}
,
alias: "EXAMPLE-alias-Value",
description: "EXAMPLE-description-Value",
isEnabled: false,
patternId: 815,
isSystem: true,
sourceId: 155,
isAgentWarningSuppressed: true,
patternText: "EXAMPLE-patternText-Value",
patternType: 210,
entityType: ["EXAMPLE--Value" ],
patternProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 595,
functions: [{
arguments: [{
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: 503,
argumentType: 75,
argumentId: 141,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 34,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
isEnabled: true,
function: {
metaFunctionArgument: [{
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: 41,
argumentType: 495,
argumentId: 970,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 350,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
component: "EXAMPLE-component-Value",
description: "EXAMPLE-description-Value",
editVersion: 691,
metaFunctionId: 425,
javaClassName: "EXAMPLE-javaClassName-Value",
name: "EXAMPLE-name-Value",
}
,
functionName: loganalytics.models.LogAnalyticsSourceFunction.FunctionName.Geolocation,
functionReference: "EXAMPLE-functionReference-Value",
sourceReference: "EXAMPLE-sourceReference-Value",
features: ["EXAMPLE--Value" ],
functionId: 347,
order: 390,
isSystem: false,
lookupColumn: "EXAMPLE-lookupColumn-Value",
lookupColumnPosition: 453,
lookupDisplayName: "EXAMPLE-lookupDisplayName-Value",
lookupMode: 161,
lookupTable: "EXAMPLE-lookupTable-Value",
sourceId: 873,
}
],
sourceId: 585,
name: "EXAMPLE-name-Value",
isSecureContent: false,
isSystem: false,
isAutoAssociationEnabled: true,
isAutoAssociationOverride: false,
ruleId: 603,
typeName: "EXAMPLE-typeName-Value",
typeDisplayName: "EXAMPLE-typeDisplayName-Value",
warningConfig: 291,
metadataFields: [{
fieldName: "EXAMPLE-fieldName-Value",
isEnabled: true,
isSystem: false,
key: "EXAMPLE-key-Value",
sourceName: "EXAMPLE-sourceName-Value",
}
],
labelDefinitions: [{
editVersion: 450,
isSystem: true,
sourceId: 100,
labelName: "EXAMPLE-labelName-Value",
}
],
entityTypes: [{
sourceId: 864,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
isTimezoneOverride: false,
timeUpdated: new Date("Fri Dec 04 06:09:11 UTC 2048"),
eventTypes: [{
eventTypeName: "EXAMPLE-eventTypeName-Value",
specVersion: "EXAMPLE-specVersion-Value",
isEnabled: false,
isSystem: true,
timeUpdated: new Date("Fri Apr 29 21:14:54 UTC 2033"),
}
],
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: false,
}
],
endpoints: [{
endpointType: "LOG", logEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 770,
request: {
method: loganalytics.requests.EndpointRequest.Method.Get,
url: "EXAMPLE-url-Value",
contentType: "EXAMPLE-contentType-Value",
payload: "EXAMPLE-payload-Value",
headers: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
formParameters: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
,
response: {
contentType: "EXAMPLE-contentType-Value",
example: "EXAMPLE-example-Value",
}
,
credentials: {
credentialType: loganalytics.models.EndpointCredentials.CredentialType.DynamicToken,
credentialName: "EXAMPLE-credentialName-Value",
credentialEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 345,
response: {
contentType: "EXAMPLE-contentType-Value",
example: "EXAMPLE-example-Value",
}
,
proxy: {
url: "EXAMPLE-url-Value",
credentialName: "EXAMPLE-credentialName-Value",
credentialType: loganalytics.models.EndpointProxy.CredentialType.Token,
}
,
}
,
}
,
proxy: {
url: "EXAMPLE-url-Value",
credentialName: "EXAMPLE-credentialName-Value",
credentialType: loganalytics.models.EndpointProxy.CredentialType.Token,
}
,
isEnabled: false,
isSystem: false,
endpointProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
}
],
sourceProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
],
shouldTokenizeOriginalText: false,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.LogAnalyticsParser.Type.Json,
isUserDeleted: true,
isNamespaceAware: false,
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: false,
}
],
isPositionAware: false,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 549,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: false,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 675,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 712,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 536,
isSystem: false,
parserType: loganalytics.models.DependentParser.ParserType.Odl,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 847,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 986,
}
],
}
],
footerContent: "EXAMPLE-footerContent-Value",
headerContent: "EXAMPLE-headerContent-Value",
name: "EXAMPLE-name-Value",
isDefault: false,
isSingleLineContent: false,
isSystem: true,
language: "EXAMPLE-language-Value",
timeUpdated: new Date("Fri Sep 30 04:06:12 UTC 2005"),
logTypeTestRequestVersion: 327,
metadata: {
lastModifiedTime: "EXAMPLE-lastModifiedTime-Value",
logFileName: "EXAMPLE-logFileName-Value",
timeZone: new Date("Fri May 28 08:35:12 UTC 2010"),
}
,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: 667,
parserSequence: 629,
parserTimezone: "EXAMPLE-parserTimezone-Value",
isParserWrittenOnce: true,
parserFunctions: [{
parserMetaPlugin: {
metaPluginParameters: [{
description: "EXAMPLE-description-Value",
name: "EXAMPLE-name-Value",
isMandatory: false,
isRepeatable: false,
pluginName: "EXAMPLE-pluginName-Value",
type: "EXAMPLE-type-Value",
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
name: "EXAMPLE-name-Value",
}
,
parserFunctionId: 206,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: true,
isSystem: false,
parserId: 151,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 312,
parserFunctionParameters: [{
parserFunctionId: 578,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 971,
parserMetaPluginParameterName: "EXAMPLE-parserMetaPluginParameterName-Value",
parserMetaPluginParameterValue: "EXAMPLE-parserMetaPluginParameterValue-Value",
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginParameter: {
description: "EXAMPLE-description-Value",
name: "EXAMPLE-name-Value",
isMandatory: true,
isRepeatable: false,
pluginName: "EXAMPLE-pluginName-Value",
type: "EXAMPLE-type-Value",
}
,
}
],
}
],
shouldTokenizeOriginalText: false,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.TestParserPayloadDetails.Type.Delimited,
isNamespaceAware: true,
isPositionAware: true,
}
const testParserRequest: loganalytics.requests.TestParserRequest = {
namespaceName: "EXAMPLE-namespaceName-Value",
testParserPayloadDetails: testParserPayloadDetails,
scope: loganalytics.requests.TestParserRequest.Scope.LogLines,
reqOriginModule: "EXAMPLE-reqOriginModule-Value",
opcRetryToken: "EXAMPLE-opcRetryToken-Value",
opcRequestId: "BHJXUOTH1GFCY5XILGFA<unique_ID>",
};
// Send request to the Client.
const testParserResponse = await client.testParser(testParserRequest);
}
catch (error) {
console.log("testParser Failed with error " + error);
}
})();