Know Your Cloud Resource Costs on Azure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CostMonitoring.Functions | |
{ | |
public static class CostMonitoringTimerTrigger | |
{ | |
public static async void Run(TimerInfo myTimer, TraceWriter log) | |
{ | |
log.Info($"C# Timer trigger function executed at: {DateTime.Now}"); | |
// Defines all dependencies to be injected. | |
... | |
// Aggregates all usage data. | |
var aggregator = new CostAggregationService(...); | |
await aggregator.ProcessAsync(dateStart, dateEnd).ConfigureAwait(false); | |
// Sends alerts/warnings to applied users. | |
var reminder = new CostReminderService(...); | |
await reminder.ProcessAsync(dateStart, dateEnd, options.RunEntirePeriod, ...).ConfigureAwait(false); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment