// 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: 144,
isSystem: true,
labelConditionOperator: "EXAMPLE-labelConditionOperator-Value",
sourceId: 193,
labelDisplayName: "EXAMPLE-labelDisplayName-Value",
storageField: "EXAMPLE-storageField-Value",
labelName: "EXAMPLE-labelName-Value",
isInlineLabelExistingInDatabase: false,
}
],
associationCount: 934,
associationEntity: [{
failureMessage: "EXAMPLE-failureMessage-Value",
agentId: "ocid1.test.oc1..<unique_ID>EXAMPLE-agentId-Value",
timeLastAttempted: new Date("Wed May 11 06:13:18 UTC 2022"),
retryCount: 643,
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceTypeName: "EXAMPLE-sourceTypeName-Value",
lifeCycleState: loganalytics.models.LogAnalyticsAssociation.LifeCycleState.Failed,
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: 268,
isEnabled: true,
fieldName: "EXAMPLE-fieldName-Value",
hashType: 623,
dataFilterId: 265,
isSystem: false,
matchRegularExpression: "EXAMPLE-matchRegularExpression-Value",
order: 24,
path: "EXAMPLE-path-Value",
replacementString: "EXAMPLE-replacementString-Value",
sourceId: 67,
filterType: loganalytics.models.LogAnalyticsSourceDataFilter.FilterType.DropString,
}
],
databaseCredential: "EXAMPLE-databaseCredential-Value",
extendedFieldDefinitions: [{
field: {
ceeAlias: "EXAMPLE-ceeAlias-Value",
dataType: "EXAMPLE-dataType-Value",
regularExpression: "EXAMPLE-regularExpression-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 791,
facetPriority: 644,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: false,
isLargeData: true,
isMultiValued: true,
isPrimary: true,
isSystem: true,
isSummarizable: true,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: false,
rangeFacetEligible: 334,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sun Feb 28 20:28:41 UTC 2049"),
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: 241,
facetPriority: 687,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: true,
isLargeData: false,
isMultiValued: false,
isPrimary: false,
isSystem: true,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: false,
rangeFacetEligible: 148,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sun Aug 31 15:51:38 UTC 2008"),
isKeepDuplicates: false,
}
,
extendedFieldDefinitionId: 767,
fieldName: "EXAMPLE-fieldName-Value",
fieldDisplayName: "EXAMPLE-fieldDisplayName-Value",
savedRegularExpressionName: "EXAMPLE-savedRegularExpressionName-Value",
extendedFieldId: 398,
}
],
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: 603,
isSystem: true,
regularExpression: "EXAMPLE-regularExpression-Value",
sourceId: 172,
timeUpdated: new Date("Tue Jul 19 04:30:08 UTC 2016"),
conditionString: "EXAMPLE-conditionString-Value",
conditionBlock: {
conditionBlocksOperator: loganalytics.models.GenericConditionBlock.ConditionBlocksOperator.NotOr,
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.High,
}
],
countUsageInAlertRule: 335,
countUsageInSource: 897,
id: "EXAMPLE-id-Value",
suggestType: 852,
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 864,
impact: "EXAMPLE-impact-Value",
isSystem: true,
name: "EXAMPLE-name-Value",
priority: loganalytics.models.LogAnalyticsLabelView.Priority.High,
recommendation: "EXAMPLE-recommendation-Value",
type: 84,
isUserDeleted: false,
}
],
metricDefinitions: [{
aggregationField: "EXAMPLE-aggregationField-Value",
bucketMetadata: "EXAMPLE-bucketMetadata-Value",
clockPeriod: "EXAMPLE-clockPeriod-Value",
description: "EXAMPLE-description-Value",
editVersion: 325,
fieldName: "EXAMPLE-fieldName-Value",
fieldValues: ["EXAMPLE--Value" ],
groupingField: "EXAMPLE-groupingField-Value",
isEnabled: true,
isSystem: true,
displayName: "EXAMPLE-displayName-Value",
metricReference: 199,
name: "EXAMPLE-name-Value",
metricType: loganalytics.models.LogAnalyticsMetric.MetricType.Sum,
isMetricSourceEnabled: false,
operator: loganalytics.models.LogAnalyticsMetric.Operator.ContainsIgnoreCase,
entityType: "EXAMPLE-entityType-Value",
timeUpdated: new Date("Thu Aug 25 02:51:29 UTC 2044"),
unitType: "EXAMPLE-unitType-Value",
isUserCustomized: false,
}
],
metrics: [{
isMetricSourceEnabled: false,
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: 675,
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: 986,
facetPriority: 869,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: true,
isLargeData: false,
isMultiValued: true,
isPrimary: true,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 752,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Thu Dec 25 13:11:44 UTC 2036"),
isKeepDuplicates: true,
}
,
parserFieldId: 564,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 431,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 23,
}
],
}
],
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("Tue Jan 20 08:30:52 UTC 2032"),
logTypeTestRequestVersion: 322,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: false,
parserSequence: 323,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 801,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 573,
version: "EXAMPLE-version-Value",
}
,
isParserWrittenOnce: false,
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: 239,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: true,
isSystem: false,
parserId: 32,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 661,
parserFunctionParameters: [{
parserFunctionId: 312,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 571,
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: 177,
shouldTokenizeOriginalText: false,
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: 816,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: false,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 925,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 5,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 446,
isSystem: false,
parserType: loganalytics.models.DependentParser.ParserType.Delimited,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 722,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
],
parameters: [{
defaultValue: "EXAMPLE-defaultValue-Value",
description: "EXAMPLE-description-Value",
isActive: true,
name: "EXAMPLE-name-Value",
sourceId: 117,
}
],
patternCount: 502,
patterns: [{
convertedText: "EXAMPLE-convertedText-Value",
dbParserId: 48,
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: 913,
facetPriority: 998,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: false,
isLargeData: true,
isMultiValued: false,
isPrimary: false,
isSystem: true,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: true,
rangeFacetEligible: 370,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Sun Jun 26 13:44:48 UTC 2011"),
isKeepDuplicates: false,
}
,
parserFieldId: 547,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 320,
parser: {
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 281,
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("Thu Nov 13 01:38:03 UTC 2042"),
logTypeTestRequestVersion: 339,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: false,
parserSequence: 286,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 237,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 313,
version: "EXAMPLE-version-Value",
}
,
isParserWrittenOnce: false,
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: 655,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: true,
isSystem: false,
parserId: 175,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 144,
parserFunctionParameters: [{
parserFunctionId: 51,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 722,
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: 756,
shouldTokenizeOriginalText: true,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.LogAnalyticsParser.Type.Delimited,
isUserDeleted: false,
isNamespaceAware: false,
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: false,
}
],
isPositionAware: false,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 506,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: true,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 590,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 136,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 567,
isSystem: true,
parserType: loganalytics.models.DependentParser.ParserType.Regex,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 862,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 828,
}
],
}
],
isInclude: true,
isDefault: false,
patternFilter: {
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: false,
operatingSystem: "EXAMPLE-operatingSystem-Value",
patternId: 481,
sourceId: 74,
version: "EXAMPLE-version-Value",
}
,
alias: "EXAMPLE-alias-Value",
description: "EXAMPLE-description-Value",
isEnabled: true,
patternId: 945,
isSystem: false,
sourceId: 617,
isAgentWarningSuppressed: false,
patternText: "EXAMPLE-patternText-Value",
patternType: 345,
entityType: ["EXAMPLE--Value" ],
patternProperties: [{
name: "EXAMPLE-name-Value",
value: "EXAMPLE-value-Value",
}
],
}
],
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 68,
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: 151,
argumentType: 182,
argumentId: 717,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 212,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
isEnabled: false,
function: {
metaFunctionArgument: [{
isOverrideOutputFields: true,
argumentDisplayName: "EXAMPLE-argumentDisplayName-Value",
argumentExample: "EXAMPLE-argumentExample-Value",
argumentService: "EXAMPLE-argumentService-Value",
argumentDataType: "EXAMPLE-argumentDataType-Value",
argumentDescription: "EXAMPLE-argumentDescription-Value",
argumentName: "EXAMPLE-argumentName-Value",
argumentOrder: 180,
argumentType: 251,
argumentId: 767,
argumentLookupColumn: "EXAMPLE-argumentLookupColumn-Value",
argumentLookupColumnPosition: 748,
argumentValue: "EXAMPLE-argumentValue-Value",
argumentReference: "EXAMPLE-argumentReference-Value",
}
],
component: "EXAMPLE-component-Value",
description: "EXAMPLE-description-Value",
editVersion: 918,
metaFunctionId: 623,
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: 646,
order: 360,
isSystem: false,
lookupColumn: "EXAMPLE-lookupColumn-Value",
lookupColumnPosition: 761,
lookupDisplayName: "EXAMPLE-lookupDisplayName-Value",
lookupMode: 596,
lookupTable: "EXAMPLE-lookupTable-Value",
sourceId: 755,
}
],
sourceId: 446,
name: "EXAMPLE-name-Value",
isSecureContent: false,
isSystem: true,
parsers: [{
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 736,
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: 953,
facetPriority: 807,
name: "EXAMPLE-name-Value",
isFacetEligible: true,
isHighCardinality: true,
isLargeData: false,
isMultiValued: false,
isPrimary: false,
isSystem: true,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: false,
isMetricValueEligible: true,
rangeFacetEligible: 559,
isTableEligible: true,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Mon Jul 01 09:38:26 UTC 2047"),
isKeepDuplicates: true,
}
,
parserFieldId: 163,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 991,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 641,
}
],
}
],
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("Tue Apr 21 13:36:10 UTC 2015"),
logTypeTestRequestVersion: 109,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: true,
parserSequence: 982,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 645,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 987,
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: 825,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: false,
isSystem: true,
parserId: 44,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 247,
parserFunctionParameters: [{
parserFunctionId: 809,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 761,
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: 365,
shouldTokenizeOriginalText: true,
fieldDelimiter: "EXAMPLE-fieldDelimiter-Value",
fieldQualifier: "EXAMPLE-fieldQualifier-Value",
type: loganalytics.models.LogAnalyticsParser.Type.Regex,
isUserDeleted: true,
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: 451,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: false,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 773,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 99,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 526,
isSystem: false,
parserType: loganalytics.models.DependentParser.ParserType.Json,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 985,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
],
isAutoAssociationEnabled: false,
isAutoAssociationOverride: true,
ruleId: 323,
typeName: "EXAMPLE-typeName-Value",
typeDisplayName: "EXAMPLE-typeDisplayName-Value",
warningConfig: 602,
metadataFields: [{
fieldName: "EXAMPLE-fieldName-Value",
isEnabled: true,
isSystem: false,
key: "EXAMPLE-key-Value",
sourceName: "EXAMPLE-sourceName-Value",
}
],
labelDefinitions: [{
editVersion: 876,
isSystem: false,
sourceId: 802,
labelName: "EXAMPLE-labelName-Value",
}
],
entityTypes: [{
sourceId: 946,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
isTimezoneOverride: true,
userParsers: [{
content: "EXAMPLE-content-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
editVersion: 504,
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: 423,
facetPriority: 846,
name: "EXAMPLE-name-Value",
isFacetEligible: false,
isHighCardinality: true,
isLargeData: true,
isMultiValued: true,
isPrimary: false,
isSystem: false,
isSummarizable: false,
mappedValue: "EXAMPLE-mappedValue-Value",
isMetricKeyEligible: true,
isMetricValueEligible: false,
rangeFacetEligible: 139,
isTableEligible: false,
unitType: "EXAMPLE-unitType-Value",
timeUpdated: new Date("Fri Oct 28 02:35:30 UTC 2005"),
isKeepDuplicates: true,
}
,
parserFieldId: 763,
parserFieldExpression: "EXAMPLE-parserFieldExpression-Value",
parserFieldName: "EXAMPLE-parserFieldName-Value",
storageFieldName: "EXAMPLE-storageFieldName-Value",
parserFieldIntegratorName: "EXAMPLE-parserFieldIntegratorName-Value",
parserName: "EXAMPLE-parserName-Value",
parserFieldSequence: 881,
structuredColumnInfo: "EXAMPLE-structuredColumnInfo-Value",
actions: [{
name: "EXAMPLE-name-Value",
order: 752,
}
],
}
],
footerContent: "EXAMPLE-footerContent-Value",
headerContent: "EXAMPLE-headerContent-Value",
name: "EXAMPLE-name-Value",
isDefault: true,
isSingleLineContent: false,
isSystem: false,
language: "EXAMPLE-language-Value",
timeUpdated: new Date("Tue Jan 25 17:01:26 UTC 2005"),
logTypeTestRequestVersion: 412,
parserIgnorelineCharacters: "EXAMPLE-parserIgnorelineCharacters-Value",
isHidden: true,
parserSequence: 977,
parserTimezone: "EXAMPLE-parserTimezone-Value",
parserFilter: {
id: "ocid1.test.oc1..<unique_ID>EXAMPLE-id-Value",
agentVersion: "EXAMPLE-agentVersion-Value",
isInUse: 481,
operatingSystem: "EXAMPLE-operatingSystem-Value",
parserId: 788,
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: 128,
parserFunctionName: "EXAMPLE-parserFunctionName-Value",
isEnabled: false,
isSystem: false,
parserId: 632,
parserName: "EXAMPLE-parserName-Value",
parserMetaPluginName: "EXAMPLE-parserMetaPluginName-Value",
parserFunctionPriority: 545,
parserFunctionParameters: [{
parserFunctionId: 668,
parserFunctionParameterName: "EXAMPLE-parserFunctionParameterName-Value",
parserFunctionParameterId: 136,
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: 277,
shouldTokenizeOriginalText: true,
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: false,
dependentSources: [{
sourceName: "EXAMPLE-sourceName-Value",
sourceDisplayName: "EXAMPLE-sourceDisplayName-Value",
sourceId: 112,
sourceType: "EXAMPLE-sourceType-Value",
isSystem: false,
isAutoAssociationEnabled: true,
entityTypes: [{
sourceId: 993,
entityType: "EXAMPLE-entityType-Value",
entityTypeCategory: "EXAMPLE-entityTypeCategory-Value",
entityTypeDisplayName: "EXAMPLE-entityTypeDisplayName-Value",
}
],
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 960,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
dependentParsers: [{
parserName: "EXAMPLE-parserName-Value",
parserDisplayName: "EXAMPLE-parserDisplayName-Value",
parserId: 62,
isSystem: true,
parserType: loganalytics.models.DependentParser.ParserType.Json,
dependencies: [{
type: "EXAMPLE-type-Value",
referenceType: "EXAMPLE-referenceType-Value",
referenceId: 248,
referenceName: "EXAMPLE-referenceName-Value",
referenceDisplayName: "EXAMPLE-referenceDisplayName-Value",
}
],
}
],
}
],
timeUpdated: new Date("Sat Jan 29 04:35:47 UTC 2000"),
eventTypes: [{
eventTypeName: "EXAMPLE-eventTypeName-Value",
specVersion: "EXAMPLE-specVersion-Value",
isEnabled: true,
isSystem: false,
timeUpdated: new Date("Sat Dec 03 19:34:38 UTC 2005"),
}
],
categories: [{
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
displayName: "EXAMPLE-displayName-Value",
type: "EXAMPLE-type-Value",
isSystem: false,
}
],
endpoints: [{
endpointType: "LOG", logEndpoint: {
name: "EXAMPLE-name-Value",
description: "EXAMPLE-description-Value",
model: "EXAMPLE-model-Value",
endpointId: 797,
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: 603,
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: true,
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: "GAMCZOBGLFEEYRLXRO8Z<unique_ID>",
};
// Send request to the Client.
const validateSourceExtendedFieldDetailsResponse = await client.validateSourceExtendedFieldDetails(validateSourceExtendedFieldDetailsRequest);
}
catch (error) {
console.log("validateSourceExtendedFieldDetails Failed with error " + error);
}
})();