private FlowEventHubOutputSpec ProcessOutputEventHub(FlowGuiOutput uiOutput) { if (uiOutput != null && uiOutput.Properties != null) { FlowEventHubOutputSpec eventhubOutput = new FlowEventHubOutputSpec() { ConnectionStringRef = uiOutput.Properties.ConnectionString, CompressionType = uiOutput.Properties.CompressionType, Format = uiOutput.Properties.Format }; return(eventhubOutput); } else { return(null); } }
private FlowEventHubOutputSpec ProcessOutputMetric(FlowGuiOutput uiOutput) { if (uiOutput != null && uiOutput.Properties != null) { var sparkKeyVaultName = Configuration[Constants.ConfigSettingName_RuntimeKeyVaultName]; var metricsEhConnectionStringKey = Configuration[Constants.ConfigSettingName_MetricEventHubConnectionKey]; FlowEventHubOutputSpec eventhubOutput = new FlowEventHubOutputSpec() { ConnectionStringRef = KeyVaultUri.ComposeUri(sparkKeyVaultName, metricsEhConnectionStringKey), CompressionType = "none", Format = "json" }; return(eventhubOutput); } else { return(null); } }