How to use the datax-common.servicePostApi function in datax-common

To help you get started, we’ve selected a few datax-common 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 microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / api.js View on Github external
export const restartSparkJob = name =>
    servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.flow, 'job/restart', name);
github microsoft / data-accelerator / Website / Packages / datax-query / src / modules / query / api.js View on Github external
export const executeQuery = (queryMetadata, selectedQuery, kernelId) =>
    servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.interactiveQuery, 'kernel/executequery', {
        name: queryMetadata.name,
        displayName: queryMetadata.displayName,
        query: selectedQuery,
        kernelId: kernelId,
        rules: queryMetadata.rules,
        outputTemplates: queryMetadata.outputTemplates
    });
github microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / api.js View on Github external
export const getInputSchema = flow =>
    servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.schemaInference, 'inputdata/inferschema', {
        name: flow.name,
        displayName: flow.displayName,
        userName: flow.owner,
        eventhubConnectionString: flow.input.properties.inputEventhubConnection,
        inputSubscriptionId: flow.input.properties.inputSubscriptionId,
        inputResourceGroup: flow.input.properties.inputResourceGroup,
        eventHubNames: flow.input.properties.inputEventhubName,
        inputType: flow.input.type,
        seconds: flow.samplingInputDuration
    });
github microsoft / data-accelerator / Website / Packages / datax-pipeline / src / modules / flowDefinition / api.js View on Github external
export const saveFlow = (config, query) =>
    servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.flow, 'flow/save', config, query);
github microsoft / data-accelerator / Website / Packages / datax-query / src / modules / query / api.js View on Github external
export const deleteAllKernels = flowName =>
    servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.interactiveQuery, 'kernels/deleteall', flowName);
github microsoft / data-accelerator / Website / Packages / datax-query / src / modules / query / api.js View on Github external
export const getTableSchemas = queryMetadata =>
    servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.flow, 'userqueries/schema', {
        name: queryMetadata.name,
        displayName: queryMetadata.displayName,
        query: queryMetadata.query,
        inputSchema: queryMetadata.inputSchema,
        rules: queryMetadata.rules,
        outputTemplates: queryMetadata.outputTemplates
    });