{"size": 737, "ext": "js", "max_stars_repo_path": "lib/src-server/example-timer.js", "max_stars_repo_name": "toldsoftware/azure-functions-server", "max_stars_repo_stars_event_min_datetime": "2017-05-10T04:46:13.000Z", "max_stars_repo_stars_event_max_datetime": "2017-05-10T04:46:13.000Z", "max_issues_repo_path": "lib/src-server/example-timer.js", "max_issues_repo_name": "toldsoftware/azure-functions-server", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/src-server/example-timer.js", "max_forks_repo_name": "toldsoftware/azure-functions-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 35.0952380952, "max_line_length": 82, "alphanum_fraction": 0.5807327001}
"use strict";
var tslib_1 = require("tslib");
// https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer
// {second} {minute} {hour} {day} {month} {day of the week}
// schedule: 0 0 0 * * *
function tick(context, timer) {
    return tslib_1.__awaiter(this, void 0, void 0, function () {
        var timeStamp;
        return tslib_1.__generator(this, function (_a) {
            timeStamp = new Date().toISOString();
            if (timer.isPastDue) {
                context.log('Timer is Past Due');
            }
            context.log('Timer ran!', timeStamp);
            context.done();
            return [2 /*return*/];
        });
    });
}
exports.tick = tick;
//# sourceMappingURL=example-timer.js.map