Skip to content

Configure AMQPConfig

Nathan Leach edited this page May 21, 2021 · 4 revisions

An example AMQPConfig element is shown below:

<AMQPConfig DefaultExchange="bar">
  <RecordSpecs>
	<Record Name="SAST_Scan_Summary">
		<MessageHeaders>
			<Header Key="RecordType" Spec="SAST_Scan_Summary" />
			<Header Key="ScanType" Spec="{ScanType}" />
		</MessageHeaders> 
	</Record>

	<Record Name="SAST_Scan_Detail" Exchange="foo" 
          TopicSpec="{ScanType}.{NodeId}.{Status}.{ResultSeverity}.{QueryLanguage}.{QueryName}">
		<Filter Mode="Reject">
			<Fields>
				<Field Name="NodeCodeSnippet"/>
			</Fields>
		</Filter>
		<MessageHeaders>
			<Header Key="RecordType" Spec="SAST_Scan_Detail" />
			<Header Key="ScanType" Spec="{ScanType}" />
		</MessageHeaders> 
	</Record>
  </RecordSpecs>
</AMQPConfig>


AMQPConfig Element

The top level element.

Attribute Name Required Default Description
DefaultExchange Y N/A The name of the MQ Exchange where records will be published unless overridden with a record-specific configuration.