How to use the datax-common.Constants.services 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 deleteFlow = flow =>
    servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.flow, 'flow/delete', {
        subscription: flow.subscription,
        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
    });
github microsoft / data-accelerator / Website / Packages / datax-query / src / modules / query / api.js View on Github external
export const getCodeGenQuery = queryMetadata =>
    servicePostApi(Constants.serviceRouteApi, Constants.serviceApplication, Constants.services.flow, 'userqueries/codegen', {
        name: queryMetadata.name,
        displayName: queryMetadata.displayName,
        query: queryMetadata.query,
        rules: queryMetadata.rules,
        outputTemplates: queryMetadata.outputTemplates
    });
github microsoft / data-accelerator / Website / Packages / datax-query / src / modules / query / api.js View on Github external
export const resampleInput = (queryMetadata, kernelId) =>
    servicePostApi(
        Constants.serviceRouteApi,
        Constants.serviceApplication,
        Constants.services.liveData,
        'inputdata/refreshsampleandkernel',
        {
            name: queryMetadata.name,
            displayName: queryMetadata.displayName,
            userName: queryMetadata.userName,
            kernelId: kernelId,
            inputSchema: queryMetadata.inputSchema,
            normalizationSnippet: queryMetadata.normalizationSnippet,
            eventhubConnectionString: queryMetadata.eventhubConnection,
            inputSubscriptionId: queryMetadata.inputSubscriptionId,
            inputResourceGroup: queryMetadata.inputResourceGroup,
            eventHubNames: queryMetadata.eventhubNames,
            inputType: queryMetadata.inputType,
            seconds: queryMetadata.seconds
        }
    );