-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from alertlogic/integration
Release 1.0.1
- Loading branch information
Showing
19 changed files
with
434 additions
and
185 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$date = Get-Date | ||
$min = ($date.Minute + 1) % 15 | ||
$sec = $date.Second | ||
$new_schedule = "$sec $min-59/15 * * * *" | ||
Write-Output "Updating Master timer trigger with ($new_schedule)." | ||
$master_function = Get-Content '..\\wwwroot\\Master\\function.json' -raw | ConvertFrom-Json | ||
$master_function.bindings | % {if($_.name -eq 'AlertlogicMasterTimer'){$_.schedule=$new_schedule}} | ||
$master_function | ConvertTo-Json | set-content '..\\wwwroot\\Master\\function.json' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$randH = Get-Random -minimum 0 -maximum 11 | ||
$randM = Get-Random -minimum 0 -maximum 59 | ||
$randS = Get-Random -minimum 0 -maximum 59 | ||
$randH12 = $randH + 12 | ||
$new_schedule = "$randS $randM $randH,$randH12 * * *" | ||
Write-Output "Updating Updater timer trigger with ($new_schedule)". | ||
$master_function = Get-Content '..\\wwwroot\\Updater\\function.json' -raw | ConvertFrom-Json | ||
$master_function.bindings | % {if($_.name -eq 'AlertlogicUpdaterTimer'){$_.schedule=$new_schedule}} | ||
$master_function | ConvertTo-Json | set-content '..\\wwwroot\\Updater\\function.json' |
Oops, something went wrong.