This repository has been archived by the owner on Mar 7, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from CatalystCode/trustedsources-final
Trustedsources final
- Loading branch information
Showing
10 changed files
with
196 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
'use strict'; | ||
|
||
const streamingController = require('../../clients/streaming/StreamingController'); | ||
const eventHubSender = require('../../clients/eventhub/EventHubSender'); | ||
const trackEvent = require('../../clients/appinsights/AppInsightsClient').trackEvent; | ||
const restartPipelineExtraProps = require('../../clients/appinsights/LoggingClient').restartPipelineExtraProps; | ||
|
||
function restartPipeline(args, res) { // eslint-disable-line no-unused-vars | ||
return streamingController.restartPipeline(); | ||
} | ||
|
||
function publishEvents(args, res) { // eslint-disable-line no-unused-vars | ||
return eventHubSender.sendMessages(args && args.input && args.input.messages); | ||
} | ||
|
||
module.exports = { | ||
restartPipeline: trackEvent(restartPipeline, 'restartPipeline', restartPipelineExtraProps()), | ||
publishEvents: trackEvent(publishEvents, 'publishEvents') | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.