{
    "name": "AWLoader",
    "properties": {
        "activities": [
            {
                "name": "Truncate Target",
                "type": "SqlServerStoredProcedure",
                "policy": {
                    "timeout": "7.00:00:00",
                    "retry": 0,
                    "retryIntervalInSeconds": 30,
                    "secureOutput": false,
                    "secureInput": false
                },
                "typeProperties": {
                    "storedProcedureName": "[stage].[TruncateWxReadings]"
                },
                "linkedServiceName": {
                    "referenceName": "AWAzureSQLDB",
                    "type": "LinkedServiceReference"
                }
            },
            {
                "name": "Copy Data",
                "type": "Copy",
                "dependsOn": [
                    {
                        "activity": "Truncate Target",
                        "dependencyConditions": [
                            "Succeeded"
                        ]
                    }
                ],
                "policy": {
                    "timeout": "7.00:00:00",
                    "retry": 0,
                    "retryIntervalInSeconds": 30,
                    "secureOutput": false,
                    "secureInput": false
                },
                "typeProperties": {
                    "source": {
                        "type": "BlobSource",
                        "recursive": true
                    },
                    "sink": {
                        "type": "SqlSink",
                        "writeBatchSize": 10000
                    },
                    "enableStaging": false,
                    "dataIntegrationUnits": 0,
                    "translator": {
                        "type": "TabularTranslator",
                        "columnMappings": {
                            "Timestamp": "WxReadingDateTime",
                            "Outdoor Temperature": "WxReadingOutdoorTemperature",
                            "Outdoor Humidity": "WxReadingOutdoorHumidity",
                            "Dew Point": "WxReadingDewpoint",
                            "Heat Index": "WxReadingHeatIndex",
                            "Wind Chill": "WxReadingWindChill",
                            "Barometric Pressure": "WxReadingBarometricPressure",
                            "Rain": "WxReadingRain",
                            "Wind Speed": "WxReadingWindSpeed",
                            "Wind Average": "WxReadingWindAverage",
                            "Peak Wind": "WxReadingPeakWind",
                            "Wind Direction": "WxReadingWindDirection",
                            "Indoor Temperature": "WxReadingIndoorTemperature",
                            "Indoor Humidity": "WxReadingIndoorHumidity"
                        }
                    }
                },
                "inputs": [
                    {
                        "referenceName": "AWAzureBlob",
                        "type": "DatasetReference"
                    }
                ],
                "outputs": [
                    {
                        "referenceName": "AndyWeatherAzureSqlTable",
                        "type": "DatasetReference"
                    }
                ]
            }
        ]
    },
    "type": "Microsoft.DataFactory/factories/pipelines"
}