// 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: 890,
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: 68,
facetPriority: 190,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: false,
isLargeData: false,
isMultiValued: true,
isPrimary: false,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 875,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value"
},
parserFieldId: 593,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 281,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-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("Wed Dec 10 20:28:54 UTC 2031"),
logTypeTestRequestVersion: 99,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: false,
parserSequence: 130,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 288,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 97,
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: 344,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: true,
isSystem: false,
parserId: 179,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 651,
parserFunctionParameters: [
{
parserFunctionId: 186,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 414,
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"
}
}
]
}
],
sourcesCount: 561,
sources: [
{
labelConditions: [
{
conditionString: "EXAMPLE-conditionString-Value",
conditionBlock: {
conditionBlocksOperator:
loganalytics.models.ConditionBlock.ConditionBlocksOperator.NotOr,
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: false,
fieldName: "EXAMPLE-fieldName-Value",
labelConditionId: 168,
isSystem: true,
labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
sourceId: 960,
labelDisplayName: "EXAMPLE-labelDisplayName-Value",
storageField: "EXAMPLE-storageField-Value",
labelName: "EXAMPLE-labelName-Value",
isInlineLabelExistingInDatabase: true
}
],
associationCount: 657,
associationEntity: [
{
failureMessage: "EXAMPLE-failureMessage-Value",
agentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value",
timeLastAttempted: new Date("Tue Mar 25 19:42:05 UTC 2008"),
retryCount: 233,
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceTypeName: "EXAMPLE-sourceTypeName-Value",
lifeCycleState: loganalytics.models.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: [
{
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: 529,
isEnabled: false,
fieldName: "EXAMPLE-fieldName-Value",
hashType: 106,
dataFilterId: 4,
isSystem: false,
matchRegularExpression: "EXAMPLE-matchRegularExpression-Value",
order: 910,
path: "EXAMPLE-path-Value",
replacementString: "EXAMPLE-replacementString-Value",
sourceId: 427,
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: 155,
facetPriority: 46,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: false,
isLargeData: false,
isMultiValued: false,
isPrimary: false,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 506,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value"
},
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: 422,
facetPriority: 240,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: false,
isLargeData: false,
isMultiValued: true,
isPrimary: false,
isSystem: true,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 215,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value"
},
extendedFieldDefinitionId: 75,
fieldName: "EXAMPLE-fieldName-Value",
fieldDisplayName: "EXAMPLE-fieldDisplayName-Value",
savedRegularExpressionName: "EXAMPLE-savedRegularExpressionName-Value",
extendedFieldId: 336
}
],
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: 201,
isSystem: false,
regularExpression: "EXAMPLE-regularExpression-Value",
sourceId: 83,
timeUpdated: new Date("Tue Apr 23 08:13:45 UTC 2047")
}
],
isForCloud: false,
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.High
}
],
countUsageInAlertRule: 551,
countUsageInSource: 419,
id: "EXAMPLE-id-Value",
suggestType: 495,
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 125,
impact: "EXAMPLE-impact-Value",
isSystem: true,
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelView.Priority.Medium,
recommendation: "EXAMPLE-recommendation-Value",
type: 995,
isUserDeleted: false
}
],
metricDefinitions: [
{
aggregationField: "EXAMPLE-aggregationField-Value",
bucketMetadata: "EXAMPLE-bucketMetadata-Value",
clockPeriod: "EXAMPLE-clockPeriod-Value",
description: "EXAMPLE-description-Value",
editVersion: 821,
fieldName: "EXAMPLE-fieldName-Value",
fieldValues: ["EXAMPLE--Value"],
groupingField: "EXAMPLE-groupingField-Value",
isEnabled: false,
isSystem: true,
displayName: "EXAMPLE-displayName-Value",
metricReference: 626,
name: "EXAMPLE-name-Value",
metricType: loganalytics.models.LogAnalyticsMetric.MetricType.CountDistribution,
isMetricSourceEnabled: true,
operator: loganalytics.models.LogAnalyticsMetric.Operator.InIgnoreCase,
entityType: "EXAMPLE-entityType-Value",
timeUpdated: new Date("Fri Jul 29 13:41:37 UTC 2011"),
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: 915
}
],
patternCount: 341,
patterns: [
{
convertedText: "EXAMPLE-convertedText-Value",
dbParserId: 422,
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: 204,
facetPriority: 654,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: false,
isLargeData: false,
isMultiValued: false,
isPrimary: true,
isSystem: true,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 979,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value"
},
parserFieldId: 487,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 696,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value"
}
],
isInclude: true,
isDefault: true,
patternFilter: {
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: false,
operatingSystem: "EXAMPLE-operatingSystem-Value",
patternId: 431,
sourceId: 323,
version: "EXAMPLE-version-Value"
},
alias: "EXAMPLE-alias-Value",
description: "EXAMPLE-description-Value",
isEnabled: false,
patternId: 298,
isSystem: true,
sourceId: 661,
isAgentWarningSuppressed: true,
patternText: "EXAMPLE-patternText-Value",
patternType: 19,
entityType: ["EXAMPLE--Value"],
patternProperties: [
{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value"
}
]
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 559,
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: 872,
argumentType: 68,
argumentId: 17,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 522,
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: 120,
argumentType: 964,
argumentId: 835,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 665,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value"
}
],
component: "EXAMPLE-component-Value",
description: "EXAMPLE-description-Value",
editVersion: 782,
metaFunctionId: 621,
javaClassName: "EXAMPLE-javaClassName-Value",
name: "EXAMPLE-name-Value"
},
functionName: loganalytics.models.LogAnalyticsSourceFunction.FunctionName.Lookup,
functionReference: "EXAMPLE-functionReference-Value",
sourceReference: "EXAMPLE-sourceReference-Value",
features: ["EXAMPLE--Value"],
functionId: 438,
order: 534,
isSystem: true,
lookupColumn: "EXAMPLE-lookupColumn-Value",
lookupColumnPosition: 787,
lookupDisplayName: "EXAMPLE-lookupDisplayName-Value",
lookupMode: 794,
lookupTable: "EXAMPLE-lookupTable-Value",
sourceId: 136
}
],
sourceId: 756,
name: "EXAMPLE-name-Value",
isSecureContent: false,
isSystem: false,
isAutoAssociationEnabled: false,
isAutoAssociationOverride: true,
ruleId: 728,
typeName: "EXAMPLE-typeName-Value",
typeDisplayName: "EXAMPLE-typeDisplayName-Value",
warningConfig: 564,
metadataFields: [
{
fieldName: "EXAMPLE-fieldName-Value",
isEnabled: false,
isSystem: true,
key: "EXAMPLE-key-Value",
sourceName: "EXAMPLE-sourceName-Value"
}
],
labelDefinitions: [
{
editVersion: 679,
isSystem: false,
sourceId: 158,
labelName: "EXAMPLE-labelName-Value"
}
],
entityTypes: [
{
sourceId: 425,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value"
}
],
isTimezoneOverride: true,
timeUpdated: new Date("Tue Mar 22 23:56:06 UTC 2039"),
eventTypes: [
{
eventTypeName: "EXAMPLE-eventTypeName-Value",
specVersion: "EXAMPLE-specVersion-Value",
isEnabled: true,
isSystem: true,
timeUpdated: new Date("Wed Apr 29 06:09:28 UTC 2048")
}
],
categories: [
{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: false
}
],
endpoints: [
{
endpointType: "LOG_LIST",
listEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 137,
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.DynamicToken,
credentialName: "EXAMPLE-credentialName-Value",
credentialEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 800,
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: false,
endpointProperties: [
{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value"
}
]
},
logEndpoints: [
{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 825,
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.DynamicToken,
credentialName: "EXAMPLE-credentialName-Value",
credentialEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 352,
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: true,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.LogAnalyticsParser.Type.Delimited,
isUserDeleted: false,
isNamespaceAware: true,
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: 496,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: false,
isAutoAssociationEnabled: true,
entityTypes: [
{
sourceId: 983,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value"
}
],
dependencies: [
{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 765
}
]
}
],
dependentParsers: [
{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 776,
isSystem: true,
parserType: loganalytics.models.DependentParser.ParserType.Delimited,
dependencies: [
{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 863
}
]
}
]
};
const extractStructuredLogFieldPathsRequest: loganalytics.requests.ExtractStructuredLogFieldPathsRequest = {
namespaceName: "EXAMPLE-namespaceName-Value",
loganParserDetails: logAnalyticsParser,
parserType: loganalytics.requests.ExtractStructuredLogFieldPathsRequest.ParserType.Xml,
opcRetryToken: "EXAMPLE-opcRetryToken-Value",
opcRequestId: "ISNWQ3UNK3YZGOLKNOYJ<unique_ID>"
};
// Send request to the Client.
const extractStructuredLogFieldPathsResponse = await client.extractStructuredLogFieldPaths(
extractStructuredLogFieldPathsRequest
);
} catch (error) {
console.log("extractStructuredLogFieldPaths Failed with error " + error);
}
})();