Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log("Ingest from file");
ingestClient.ingestFromFile("file.json", null, (err) => {
if (err) {
console.log(err);
}
console.log("Ingestion done?");
setTimeout(waitForFailures, 0);
setTimeout(waitForSuccess, 0);
});
ingestClient.ingestFromBlob(
new BlobDescriptor("https://.blob.core.windows.net//file.json.gz", 1024 * 50 /* 50MB file */),
null,
(err) => {
if (err) {
console.log(err);
}
console.log("Ingestion done?");
setTimeout(waitForFailures, 0);
setTimeout(waitForSuccess, 0);
}
);