// 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: 193,
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: 759,
facetPriority: 448,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: true,
isLargeData: true,
isMultiValued: true,
isPrimary: true,
isSystem: false,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: false,
rangeFacetEligible: 694,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sat Oct 05 06:30:32 UTC 2002"),
isKeepDuplicates: false,
}
,
parserFieldId: 949,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 293,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 845,
}
],
}
],
footerContent: "EXAMPLE-footerContent-Value",
headerContent: "EXAMPLE-headerContent-Value",
name: "EXAMPLE-name-Value",
isDefault: true,
isSingleLineContent: false,
isSystem: true,
language: "EXAMPLE-language-Value",
timeUpdated: new Date("Mon Feb 18 12:08:14 UTC 2008"),
logTypeTestRequestVersion: 355,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: false,
parserSequence: 920,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 983,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 719,
version: "EXAMPLE-version-Value",
}
,
isParserWrittenOnce: true,
parserFunctions: [{
parserMetaPlugin: {
metaPluginParameters: [{
description: "EXAMPLE-description-Value",
name: "EXAMPLE-name-Value",
isMandatory: true,
isRepeatable: true,
pluginName: "EXAMPLE-pluginName-Value",
type: "EXAMPLE-type-Value",
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
name: "EXAMPLE-name-Value",
}
,
parserFunctionId: 764,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: false,
isSystem: false,
parserId: 63,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 542,
parserFunctionParameters: [{
parserFunctionId: 34,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 892,
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: 191,
sources: [{
labelConditions: [{
conditionString: "EXAMPLE-conditionString-Value",
conditionBlock: {
conditionBlocksOperator: loganalytics.models.ConditionBlock.ConditionBlocksOperator.NotAnd,
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: 330,
isSystem: false,
labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
sourceId: 143,
labelDisplayName: "EXAMPLE-labelDisplayName-Value",
storageField: "EXAMPLE-storageField-Value",
labelName: "EXAMPLE-labelName-Value",
isInlineLabelExistingInDatabase: true,
}
],
associationCount: 627,
associationEntity: [{
failureMessage: "EXAMPLE-failureMessage-Value",
agentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value",
timeLastAttempted: new Date("Sat Aug 23 14:54:02 UTC 2008"),
retryCount: 540,
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: 886,
isEnabled: false,
fieldName: "EXAMPLE-fieldName-Value",
hashType: 855,
dataFilterId: 803,
isSystem: true,
matchRegularExpression: "EXAMPLE-matchRegularExpression-Value",
order: 897,
path: "EXAMPLE-path-Value",
replacementString: "EXAMPLE-replacementString-Value",
sourceId: 616,
filterType: loganalytics.models.LogAnalyticsSourceDataFilter.FilterType.Mask,
}
],
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: 130,
facetPriority: 346,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: false,
isLargeData: false,
isMultiValued: false,
isPrimary: false,
isSystem: true,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 836,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sun Apr 03 13:27:17 UTC 2016"),
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: 874,
facetPriority: 199,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: false,
isLargeData: false,
isMultiValued: true,
isPrimary: false,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 387,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Mon May 30 11:05:30 UTC 2022"),
isKeepDuplicates: true,
}
,
extendedFieldDefinitionId: 444,
fieldName: "EXAMPLE-fieldName-Value",
fieldDisplayName: "EXAMPLE-fieldDisplayName-Value",
savedRegularExpressionName: "EXAMPLE-savedRegularExpressionName-Value",
extendedFieldId: 307,
}
],
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: 91,
isSystem: true,
regularExpression: "EXAMPLE-regularExpression-Value",
sourceId: 430,
timeUpdated: new Date("Thu Jan 05 23:57:07 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: false,
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: 774,
countUsageInSource: 592,
id: "EXAMPLE-id-Value",
suggestType: 239,
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 374,
impact: "EXAMPLE-impact-Value",
isSystem: false,
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelView.Priority.None,
recommendation: "EXAMPLE-recommendation-Value",
type: 238,
isUserDeleted: false,
}
],
metricDefinitions: [{
aggregationField: "EXAMPLE-aggregationField-Value",
bucketMetadata: "EXAMPLE-bucketMetadata-Value",
clockPeriod: "EXAMPLE-clockPeriod-Value",
description: "EXAMPLE-description-Value",
editVersion: 994,
fieldName: "EXAMPLE-fieldName-Value",
fieldValues: ["EXAMPLE--Value" ],
groupingField: "EXAMPLE-groupingField-Value",
isEnabled: false,
isSystem: false,
displayName: "EXAMPLE-displayName-Value",
metricReference: 712,
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 Dec 27 20:47:43 UTC 2017"),
unitType: "EXAMPLE-unitType-Value",
isUserCustomized: false,
}
],
metrics: [{
isMetricSourceEnabled: false,
metricName: "EXAMPLE-metricName-Value",
sourceName: "EXAMPLE-sourceName-Value",
entityType: "EXAMPLE-entityType-Value",
}
],
parameters: [{
defaultValue: "EXAMPLE-defaultValue-Value",
description: "EXAMPLE-description-Value",
isActive: true,
name: "EXAMPLE-name-Value",
sourceId: 840,
}
],
patternCount: 909,
patterns: [{
convertedText: "EXAMPLE-convertedText-Value",
dbParserId: 535,
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: 998,
facetPriority: 413,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: false,
isLargeData: true,
isMultiValued: true,
isPrimary: true,
isSystem: false,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 729,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Thu Dec 01 03:29:43 UTC 2005"),
isKeepDuplicates: false,
}
,
parserFieldId: 674,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 376,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 675,
}
],
}
],
isInclude: true,
isDefault: true,
patternFilter: {
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: false,
operatingSystem: "EXAMPLE-operatingSystem-Value",
patternId: 925,
sourceId: 229,
version: "EXAMPLE-version-Value",
}
,
alias: "EXAMPLE-alias-Value",
description: "EXAMPLE-description-Value",
isEnabled: false,
patternId: 547,
isSystem: true,
sourceId: 281,
isAgentWarningSuppressed: false,
patternText: "EXAMPLE-patternText-Value",
patternType: 798,
entityType: ["EXAMPLE--Value" ],
patternProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 432,
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: 857,
argumentType: 701,
argumentId: 320,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 237,
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: 514,
argumentType: 856,
argumentId: 655,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 961,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
component: "EXAMPLE-component-Value",
description: "EXAMPLE-description-Value",
editVersion: 110,
metaFunctionId: 175,
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: 133,
order: 243,
isSystem: false,
lookupColumn: "EXAMPLE-lookupColumn-Value",
lookupColumnPosition: 530,
lookupDisplayName: "EXAMPLE-lookupDisplayName-Value",
lookupMode: 756,
lookupTable: "EXAMPLE-lookupTable-Value",
sourceId: 12,
}
],
sourceId: 766,
name: "EXAMPLE-name-Value",
isSecureContent: false,
isSystem: false,
isAutoAssociationEnabled: false,
isAutoAssociationOverride: false,
ruleId: 506,
typeName: "EXAMPLE-typeName-Value",
typeDisplayName: "EXAMPLE-typeDisplayName-Value",
warningConfig: 55,
metadataFields: [{
fieldName: "EXAMPLE-fieldName-Value",
isEnabled: true,
isSystem: false,
key: "EXAMPLE-key-Value",
sourceName: "EXAMPLE-sourceName-Value",
}
],
labelDefinitions: [{
editVersion: 136,
isSystem: true,
sourceId: 566,
labelName: "EXAMPLE-labelName-Value",
}
],
entityTypes: [{
sourceId: 946,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
isTimezoneOverride: false,
timeUpdated: new Date("Fri Jul 10 19:11:08 UTC 2037"),
eventTypes: [{
eventTypeName: "EXAMPLE-eventTypeName-Value",
specVersion: "EXAMPLE-specVersion-Value",
isEnabled: false,
isSystem: false,
timeUpdated: new Date("Tue Jul 08 15:09:53 UTC 2042"),
}
],
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: 617,
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: 160,
response: {
contentType: "EXAMPLE-contentType-Value",
example: "EXAMPLE-example-Value",
}
,
proxy: {
url: "EXAMPLE-url-Value",
credentialName: "EXAMPLE-credentialName-Value",
credentialType: loganalytics.models.EndpointProxy.CredentialType.BasicAuth,
}
,
}
,
}
,
proxy: {
url: "EXAMPLE-url-Value",
credentialName: "EXAMPLE-credentialName-Value",
credentialType: loganalytics.models.EndpointProxy.CredentialType.BasicAuth,
}
,
isEnabled: false,
isSystem: false,
endpointProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
,
logEndpoints: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 182,
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.StaticToken,
credentialName: "EXAMPLE-credentialName-Value",
credentialEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 995,
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.BasicAuth,
}
,
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: true,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 549,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: false,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 381,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 646,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 565,
isSystem: false,
parserType: loganalytics.models.DependentParser.ParserType.Xml,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 808,
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: "2PJKLWWQOA3T2O1N1QDR<unique_ID>",
};
// Send request to the Client.
const extractStructuredLogFieldPathsResponse = await client.extractStructuredLogFieldPaths(extractStructuredLogFieldPathsRequest);
}
catch (error) {
console.log("extractStructuredLogFieldPaths Failed with error " + error);
}
})();