// 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 logAnalyticsParser = {
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 775,
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: 232,
facetPriority: 99,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: false,
isLargeData: true,
isMultiValued: true,
isPrimary: false,
isSystem: true,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 98,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sat Apr 03 21:37:59 UTC 2038"),
isKeepDuplicates: false,
}
,
parserFieldId: 721,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 649,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 980,
}
],
}
],
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("Fri May 23 21:47:51 UTC 2031"),
logTypeTestRequestVersion: 147,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: true,
parserSequence: 468,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 133,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 11,
version: "EXAMPLE-version-Value",
}
,
isParserWrittenOnce: false,
parserFunctions: [{
parserMetaPlugin: {
metaPluginParameters: [{
description: "EXAMPLE-description-Value",
name: "EXAMPLE-name-Value",
isMandatory: true,
isRepeatable: false,
pluginName: "EXAMPLE-pluginName-Value",
type: "EXAMPLE-type-Value",
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
name: "EXAMPLE-name-Value",
}
,
parserFunctionId: 948,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: true,
isSystem: true,
parserId: 575,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 977,
parserFunctionParameters: [{
parserFunctionId: 509,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 678,
parserMetaPluginParameterName: "EXAMPLE-parserMetaPluginParameterName-Value",
parserMetaPluginParameterValue: "EXAMPLE-parserMetaPluginParameterValue-Value",
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginParameter: {
description: "EXAMPLE-description-Value",
name: "EXAMPLE-name-Value",
isMandatory: false,
isRepeatable: true,
pluginName: "EXAMPLE-pluginName-Value",
type: "EXAMPLE-type-Value",
}
,
}
],
}
],
sourcesCount: 712,
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: false,
blockConditionField: "EXAMPLE-blockConditionField-Value",
blockConditionOperator: "EXAMPLE-blockConditionOperator-Value",
blockConditionValue: "EXAMPLE-blockConditionValue-Value",
labelConditionValue: "EXAMPLE-labelConditionValue-Value",
labelConditionValues: ["EXAMPLE--Value" ],
contentExample: "EXAMPLE-contentExample-Value",
isEnabled: false,
fieldName: "EXAMPLE-fieldName-Value",
labelConditionId: 325,
isSystem: false,
labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
sourceId: 965,
labelDisplayName: "EXAMPLE-labelDisplayName-Value",
storageField: "EXAMPLE-storageField-Value",
labelName: "EXAMPLE-labelName-Value",
isInlineLabelExistingInDatabase: true,
}
],
associationCount: 158,
associationEntity: [{
failureMessage: "EXAMPLE-failureMessage-Value",
agentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value",
timeLastAttempted: new Date("Sun Mar 25 06:53:06 UTC 2040"),
retryCount: 203,
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceTypeName: "EXAMPLE-sourceTypeName-Value",
lifeCycleState: loganalytics.models.LogAnalyticsAssociation.LifeCycleState.InProgress,
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: 60,
isEnabled: true,
fieldName: "EXAMPLE-fieldName-Value",
hashType: 134,
dataFilterId: 184,
isSystem: false,
matchRegularExpression: "EXAMPLE-matchRegularExpression-Value",
order: 581,
path: "EXAMPLE-path-Value",
replacementString: "EXAMPLE-replacementString-Value",
sourceId: 318,
filterType: loganalytics.models.LogAnalyticsSourceDataFilter.FilterType.HashMask,
}
],
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: 430,
facetPriority: 837,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: true,
isLargeData: true,
isMultiValued: true,
isPrimary: true,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 883,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Thu Sep 06 09:35:56 UTC 2040"),
isKeepDuplicates: true,
}
,
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: 697,
facetPriority: 46,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: true,
isLargeData: true,
isMultiValued: true,
isPrimary: false,
isSystem: false,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: true,
rangeFacetEligible: 984,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Thu Aug 30 09:12:17 UTC 2012"),
isKeepDuplicates: false,
}
,
extendedFieldDefinitionId: 932,
fieldName: "EXAMPLE-fieldName-Value",
fieldDisplayName: "EXAMPLE-fieldDisplayName-Value",
savedRegularExpressionName: "EXAMPLE-savedRegularExpressionName-Value",
extendedFieldId: 25,
}
],
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: 282,
isSystem: true,
regularExpression: "EXAMPLE-regularExpression-Value",
sourceId: 493,
timeUpdated: new Date("Mon Nov 01 01:59:30 UTC 2027"),
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: true,
displayName: "EXAMPLE-displayName-Value",
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelAlias.Priority.None,
}
],
countUsageInAlertRule: 301,
countUsageInSource: 857,
id: "EXAMPLE-id-Value",
suggestType: 99,
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 181,
impact: "EXAMPLE-impact-Value",
isSystem: false,
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelView.Priority.High,
recommendation: "EXAMPLE-recommendation-Value",
type: 976,
isUserDeleted: false,
}
],
metricDefinitions: [{
aggregationField: "EXAMPLE-aggregationField-Value",
bucketMetadata: "EXAMPLE-bucketMetadata-Value",
clockPeriod: "EXAMPLE-clockPeriod-Value",
description: "EXAMPLE-description-Value",
editVersion: 945,
fieldName: "EXAMPLE-fieldName-Value",
fieldValues: ["EXAMPLE--Value" ],
groupingField: "EXAMPLE-groupingField-Value",
isEnabled: false,
isSystem: true,
displayName: "EXAMPLE-displayName-Value",
metricReference: 668,
name: "EXAMPLE-name-Value",
metricType: loganalytics.models.LogAnalyticsMetric.MetricType.SumDistribution,
isMetricSourceEnabled: false,
operator: loganalytics.models.LogAnalyticsMetric.Operator.ContainsIgnoreCase,
entityType: "EXAMPLE-entityType-Value",
timeUpdated: new Date("Wed Nov 13 18:50:33 UTC 2019"),
unitType: "EXAMPLE-unitType-Value",
isUserCustomized: true,
}
],
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: 363,
}
],
patternCount: 487,
patterns: [{
convertedText: "EXAMPLE-convertedText-Value",
dbParserId: 726,
dbPatternDateTimeColumns: "EXAMPLE-dbPatternDateTimeColumns-Value",
dbPatternDateTimeField: "EXAMPLE-dbPatternDateTimeField-Value",
dbPatternSequenceColumn: "EXAMPLE-dbPatternSequenceColumn-Value",
fields: [{
field: {
ceeAlias: "EXAMPLE-ceeAlias-Value",
dataType: "EXAMPLE-dataType-Value",
regularExpression: "EXAMPLE-regularExpression-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 953,
facetPriority: 677,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: true,
isLargeData: true,
isMultiValued: false,
isPrimary: true,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 620,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Tue Apr 16 21:16:04 UTC 2002"),
isKeepDuplicates: false,
}
,
parserFieldId: 145,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 383,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 240,
}
],
}
],
isInclude: true,
isDefault: true,
patternFilter: {
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: false,
operatingSystem: "EXAMPLE-operatingSystem-Value",
patternId: 244,
sourceId: 813,
version: "EXAMPLE-version-Value",
}
,
alias: "EXAMPLE-alias-Value",
description: "EXAMPLE-description-Value",
isEnabled: true,
patternId: 482,
isSystem: true,
sourceId: 47,
isAgentWarningSuppressed: false,
patternText: "EXAMPLE-patternText-Value",
patternType: 240,
entityType: ["EXAMPLE--Value" ],
patternProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 110,
functions: [{
arguments: [{
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: 877,
argumentType: 999,
argumentId: 456,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 580,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
isEnabled: false,
function: {
metaFunctionArgument: [{
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: 252,
argumentType: 194,
argumentId: 680,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 773,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
component: "EXAMPLE-component-Value",
description: "EXAMPLE-description-Value",
editVersion: 929,
metaFunctionId: 968,
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: 11,
order: 306,
isSystem: false,
lookupColumn: "EXAMPLE-lookupColumn-Value",
lookupColumnPosition: 357,
lookupDisplayName: "EXAMPLE-lookupDisplayName-Value",
lookupMode: 45,
lookupTable: "EXAMPLE-lookupTable-Value",
sourceId: 618,
}
],
sourceId: 568,
name: "EXAMPLE-name-Value",
isSecureContent: false,
isSystem: false,
isAutoAssociationEnabled: false,
isAutoAssociationOverride: true,
ruleId: 451,
typeName: "EXAMPLE-typeName-Value",
typeDisplayName: "EXAMPLE-typeDisplayName-Value",
warningConfig: 493,
metadataFields: [{
fieldName: "EXAMPLE-fieldName-Value",
isEnabled: false,
isSystem: false,
key: "EXAMPLE-key-Value",
sourceName: "EXAMPLE-sourceName-Value",
}
],
labelDefinitions: [{
editVersion: 416,
isSystem: false,
sourceId: 816,
labelName: "EXAMPLE-labelName-Value",
}
],
entityTypes: [{
sourceId: 871,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
isTimezoneOverride: true,
timeUpdated: new Date("Mon Jul 21 16:36:32 UTC 2003"),
eventTypes: [{
eventTypeName: "EXAMPLE-eventTypeName-Value",
specVersion: "EXAMPLE-specVersion-Value",
isEnabled: true,
isSystem: false,
timeUpdated: new Date("Wed Aug 06 19:09:17 UTC 2003"),
}
],
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: true,
}
],
endpoints: [{
endpointType: "LOG_LIST", listEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 263,
request: {
method: loganalytics.requests.EndpointRequest.Method.Post,
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.BasicAuth,
credentialName: "EXAMPLE-credentialName-Value",
credentialEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 663,
response: {
contentType: "EXAMPLE-contentType-Value",
example: "EXAMPLE-example-Value",
}
,
proxy: {
url: "EXAMPLE-url-Value",
credentialName: "EXAMPLE-credentialName-Value",
credentialType: loganalytics.models.EndpointProxy.CredentialType.None,
}
,
}
,
}
,
proxy: {
url: "EXAMPLE-url-Value",
credentialName: "EXAMPLE-credentialName-Value",
credentialType: loganalytics.models.EndpointProxy.CredentialType.Token,
}
,
isEnabled: true,
isSystem: true,
endpointProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
,
logEndpoints: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 202,
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.BasicAuth,
credentialName: "EXAMPLE-credentialName-Value",
credentialEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 871,
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.BasicAuth,
}
,
isEnabled: true,
isSystem: true,
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.Regex,
isUserDeleted: false,
isNamespaceAware: false,
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: false,
}
],
isPositionAware: true,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 646,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: true,
isAutoAssociationEnabled: false,
entityTypes: [{
sourceId: 627,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 422,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 55,
isSystem: true,
parserType: loganalytics.models.DependentParser.ParserType.Odl,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 40,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
const extractStructuredLogFieldPathsRequest: loganalytics.requests.ExtractStructuredLogFieldPathsRequest = {
namespaceName: "EXAMPLE-namespaceName-Value",
loganParserDetails: logAnalyticsParser,
parserType: loganalytics.requests.ExtractStructuredLogFieldPathsRequest.ParserType.Delimited,
opcRetryToken: "EXAMPLE-opcRetryToken-Value",
opcRequestId: "NEQUOV6PMHFCYFH8IFQQ<unique_ID>",
};
// Send request to the Client.
const extractStructuredLogFieldPathsResponse = await client.extractStructuredLogFieldPaths(extractStructuredLogFieldPathsRequest);
}
catch (error) {
console.log("extractStructuredLogFieldPaths Failed with error " + error);
}
})();