How to use the azure-kusto-ingest.BlobDescriptor function in azure-kusto-ingest

To help you get started, we’ve selected a few azure-kusto-ingest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-kusto-node / azure-kusto-ingest / example.js View on Github external
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);
    }
);