// 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 logAnalyticsSource = {
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: 440,
isSystem: false,
labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
sourceId: 902,
labelDisplayName: "EXAMPLE-labelDisplayName-Value",
storageField: "EXAMPLE-storageField-Value",
labelName: "EXAMPLE-labelName-Value",
isInlineLabelExistingInDatabase: true,
}
],
associationCount: 186,
associationEntity: [{
failureMessage: "EXAMPLE-failureMessage-Value",
agentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value",
timeLastAttempted: new Date("Wed Jun 29 20:42:16 UTC 2005"),
retryCount: 937,
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: 467,
isEnabled: false,
fieldName: "EXAMPLE-fieldName-Value",
hashType: 460,
dataFilterId: 311,
isSystem: false,
matchRegularExpression: "EXAMPLE-matchRegularExpression-Value",
order: 835,
path: "EXAMPLE-path-Value",
replacementString: "EXAMPLE-replacementString-Value",
sourceId: 684,
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: 44,
facetPriority: 512,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: false,
isLargeData: true,
isMultiValued: true,
isPrimary: true,
isSystem: true,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: true,
rangeFacetEligible: 364,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sat Jun 03 04:19:39 UTC 2023"),
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: 159,
facetPriority: 291,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: true,
isLargeData: false,
isMultiValued: false,
isPrimary: true,
isSystem: true,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 750,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Wed Jan 04 10:32:30 UTC 2034"),
isKeepDuplicates: false,
}
,
extendedFieldDefinitionId: 66,
fieldName: "EXAMPLE-fieldName-Value",
fieldDisplayName: "EXAMPLE-fieldDisplayName-Value",
savedRegularExpressionName: "EXAMPLE-savedRegularExpressionName-Value",
extendedFieldId: 804,
}
],
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: 514,
isSystem: true,
regularExpression: "EXAMPLE-regularExpression-Value",
sourceId: 329,
timeUpdated: new Date("Fri Mar 08 17:05:46 UTC 2024"),
conditionString: "EXAMPLE-conditionString-Value",
conditionBlock: {
conditionBlocksOperator: loganalytics.models.GenericConditionBlock.ConditionBlocksOperator.Or,
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: true,
displayName: "EXAMPLE-displayName-Value",
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelAlias.Priority.Low,
}
],
countUsageInAlertRule: 259,
countUsageInSource: 785,
id: "EXAMPLE-id-Value",
suggestType: 241,
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 98,
impact: "EXAMPLE-impact-Value",
isSystem: false,
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelView.Priority.Low,
recommendation: "EXAMPLE-recommendation-Value",
type: 26,
isUserDeleted: false,
}
],
metricDefinitions: [{
aggregationField: "EXAMPLE-aggregationField-Value",
bucketMetadata: "EXAMPLE-bucketMetadata-Value",
clockPeriod: "EXAMPLE-clockPeriod-Value",
description: "EXAMPLE-description-Value",
editVersion: 29,
fieldName: "EXAMPLE-fieldName-Value",
fieldValues: ["EXAMPLE--Value" ],
groupingField: "EXAMPLE-groupingField-Value",
isEnabled: true,
isSystem: true,
displayName: "EXAMPLE-displayName-Value",
metricReference: 0,
name: "EXAMPLE-name-Value",
metricType: loganalytics.models.LogAnalyticsMetric.MetricType.Average,
isMetricSourceEnabled: true,
operator: loganalytics.models.LogAnalyticsMetric.Operator.ContainsIgnoreCase,
entityType: "EXAMPLE-entityType-Value",
timeUpdated: new Date("Wed Jan 13 19:14:51 UTC 2038"),
unitType: "EXAMPLE-unitType-Value",
isUserCustomized: false,
}
],
metrics: [{
isMetricSourceEnabled: true,
metricName: "EXAMPLE-metricName-Value",
sourceName: "EXAMPLE-sourceName-Value",
entityType: "EXAMPLE-entityType-Value",
}
],
oobParsers: [{
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 778,
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: 317,
facetPriority: 52,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: false,
isLargeData: true,
isMultiValued: false,
isPrimary: false,
isSystem: false,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 491,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Fri Apr 16 10:43:50 UTC 2010"),
isKeepDuplicates: false,
}
,
parserFieldId: 123,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 534,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 937,
}
],
}
],
footerContent: "EXAMPLE-footerContent-Value",
headerContent: "EXAMPLE-headerContent-Value",
name: "EXAMPLE-name-Value",
isDefault: false,
isSingleLineContent: true,
isSystem: false,
language: "EXAMPLE-language-Value",
timeUpdated: new Date("Mon Sep 13 09:12:47 UTC 2032"),
logTypeTestRequestVersion: 451,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: true,
parserSequence: 464,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 354,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 722,
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: 133,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: true,
isSystem: false,
parserId: 647,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 591,
parserFunctionParameters: [{
parserFunctionId: 198,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 586,
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: 169,
shouldTokenizeOriginalText: false,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.LogAnalyticsParser.Type.Json,
isUserDeleted: false,
isNamespaceAware: false,
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: true,
}
],
isPositionAware: false,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 260,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: true,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 607,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 847,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 15,
isSystem: true,
parserType: loganalytics.models.DependentParser.ParserType.Xml,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 819,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
],
parameters: [{
defaultValue: "EXAMPLE-defaultValue-Value",
description: "EXAMPLE-description-Value",
isActive: true,
name: "EXAMPLE-name-Value",
sourceId: 284,
}
],
patternCount: 639,
patterns: [{
convertedText: "EXAMPLE-convertedText-Value",
dbParserId: 69,
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: 889,
facetPriority: 478,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: true,
isLargeData: true,
isMultiValued: true,
isPrimary: true,
isSystem: false,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 995,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sat Jul 08 11:25:55 UTC 2006"),
isKeepDuplicates: false,
}
,
parserFieldId: 796,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 44,
parser: {
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 751,
encoding: "EXAMPLE-encoding-Value",
exampleContent: "EXAMPLE-exampleContent-Value",
footerContent: "EXAMPLE-footerContent-Value",
headerContent: "EXAMPLE-headerContent-Value",
name: "EXAMPLE-name-Value",
isDefault: false,
isSingleLineContent: false,
isSystem: false,
language: "EXAMPLE-language-Value",
timeUpdated: new Date("Fri Oct 21 18:02:47 UTC 2044"),
logTypeTestRequestVersion: 702,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: false,
parserSequence: 657,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 606,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 380,
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: 120,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: true,
isSystem: true,
parserId: 401,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 513,
parserFunctionParameters: [{
parserFunctionId: 964,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 902,
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: 344,
shouldTokenizeOriginalText: false,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.LogAnalyticsParser.Type.Xml,
isUserDeleted: false,
isNamespaceAware: false,
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: true,
}
],
isPositionAware: true,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 820,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: false,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 501,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 66,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 92,
isSystem: true,
parserType: loganalytics.models.DependentParser.ParserType.Delimited,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 342,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 282,
}
],
}
],
isInclude: true,
isDefault: false,
patternFilter: {
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: true,
operatingSystem: "EXAMPLE-operatingSystem-Value",
patternId: 555,
sourceId: 602,
version: "EXAMPLE-version-Value",
}
,
alias: "EXAMPLE-alias-Value",
description: "EXAMPLE-description-Value",
isEnabled: false,
patternId: 48,
isSystem: true,
sourceId: 660,
isAgentWarningSuppressed: true,
patternText: "EXAMPLE-patternText-Value",
patternType: 154,
entityType: ["EXAMPLE--Value" ],
patternProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 371,
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: 771,
argumentType: 208,
argumentId: 189,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 590,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
isEnabled: true,
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: 268,
argumentType: 523,
argumentId: 633,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 63,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
component: "EXAMPLE-component-Value",
description: "EXAMPLE-description-Value",
editVersion: 233,
metaFunctionId: 265,
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: 803,
order: 748,
isSystem: true,
lookupColumn: "EXAMPLE-lookupColumn-Value",
lookupColumnPosition: 228,
lookupDisplayName: "EXAMPLE-lookupDisplayName-Value",
lookupMode: 715,
lookupTable: "EXAMPLE-lookupTable-Value",
sourceId: 575,
}
],
sourceId: 90,
name: "EXAMPLE-name-Value",
isSecureContent: false,
isSystem: false,
parsers: [{
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 432,
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: 812,
facetPriority: 948,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: false,
isLargeData: true,
isMultiValued: true,
isPrimary: true,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 22,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Fri Apr 17 16:36:10 UTC 2009"),
isKeepDuplicates: false,
}
,
parserFieldId: 20,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 101,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 379,
}
],
}
],
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("Sun Jun 10 21:23:43 UTC 2035"),
logTypeTestRequestVersion: 141,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: false,
parserSequence: 921,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 209,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 93,
version: "EXAMPLE-version-Value",
}
,
isParserWrittenOnce: false,
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: 723,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: true,
isSystem: false,
parserId: 581,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 335,
parserFunctionParameters: [{
parserFunctionId: 87,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 617,
parserMetaPluginParameterName: "EXAMPLE-parserMetaPluginParameterName-Value",
parserMetaPluginParameterValue: "EXAMPLE-parserMetaPluginParameterValue-Value",
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginParameter: {
description: "EXAMPLE-description-Value",
name: "EXAMPLE-name-Value",
isMandatory: true,
isRepeatable: true,
pluginName: "EXAMPLE-pluginName-Value",
type: "EXAMPLE-type-Value",
}
,
}
],
}
],
sourcesCount: 724,
shouldTokenizeOriginalText: false,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.LogAnalyticsParser.Type.Json,
isUserDeleted: false,
isNamespaceAware: true,
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: true,
}
],
isPositionAware: true,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 135,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: true,
isAutoAssociationEnabled: false,
entityTypes: [{
sourceId: 662,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 872,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 153,
isSystem: true,
parserType: loganalytics.models.DependentParser.ParserType.Regex,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 444,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
],
isAutoAssociationEnabled: true,
isAutoAssociationOverride: true,
ruleId: 758,
typeName: "EXAMPLE-typeName-Value",
typeDisplayName: "EXAMPLE-typeDisplayName-Value",
warningConfig: 388,
metadataFields: [{
fieldName: "EXAMPLE-fieldName-Value",
isEnabled: true,
isSystem: false,
key: "EXAMPLE-key-Value",
sourceName: "EXAMPLE-sourceName-Value",
}
],
labelDefinitions: [{
editVersion: 369,
isSystem: true,
sourceId: 655,
labelName: "EXAMPLE-labelName-Value",
}
],
entityTypes: [{
sourceId: 612,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
isTimezoneOverride: false,
userParsers: [{
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 968,
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: 809,
facetPriority: 499,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: false,
isLargeData: true,
isMultiValued: true,
isPrimary: true,
isSystem: true,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 178,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Fri May 27 14:11:28 UTC 2016"),
isKeepDuplicates: false,
}
,
parserFieldId: 619,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 808,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 178,
}
],
}
],
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("Thu Nov 21 01:12:23 UTC 2019"),
logTypeTestRequestVersion: 381,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: true,
parserSequence: 91,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 210,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 171,
version: "EXAMPLE-version-Value",
}
,
isParserWrittenOnce: false,
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: 642,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: false,
isSystem: true,
parserId: 265,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 903,
parserFunctionParameters: [{
parserFunctionId: 298,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 949,
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: 713,
shouldTokenizeOriginalText: false,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.LogAnalyticsParser.Type.Delimited,
isUserDeleted: true,
isNamespaceAware: false,
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: true,
}
],
isPositionAware: true,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 697,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: false,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 199,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 686,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 240,
isSystem: false,
parserType: loganalytics.models.DependentParser.ParserType.Xml,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 367,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
],
timeUpdated: new Date("Wed Dec 20 06:06:47 UTC 2034"),
eventTypes: [{
eventTypeName: "EXAMPLE-eventTypeName-Value",
specVersion: "EXAMPLE-specVersion-Value",
isEnabled: false,
isSystem: true,
timeUpdated: new Date("Sat Dec 07 20:33:26 UTC 2041"),
}
],
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: 296,
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.StaticToken,
credentialName: "EXAMPLE-credentialName-Value",
credentialEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 803,
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.None,
}
,
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: 659,
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.StaticToken,
credentialName: "EXAMPLE-credentialName-Value",
credentialEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 802,
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.None,
}
,
isEnabled: true,
isSystem: false,
endpointProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
]
}
],
sourceProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
const validateSourceExtendedFieldDetailsRequest: loganalytics.requests.ValidateSourceExtendedFieldDetailsRequest = {
namespaceName: "EXAMPLE-namespaceName-Value",
logAnalyticsSource: logAnalyticsSource,
opcRetryToken: "EXAMPLE-opcRetryToken-Value",
opcRequestId: "PRX5SAOZRLBI1MS6WPYK<unique_ID>",
};
// Send request to the Client.
const validateSourceExtendedFieldDetailsResponse = await client.validateSourceExtendedFieldDetails(validateSourceExtendedFieldDetailsRequest);
}
catch (error) {
console.log("validateSourceExtendedFieldDetails Failed with error " + error);
}
})();