-
-
Save darrenjrobinson/c08f847b8b131ab32037956f87f56ba9 to your computer and use it in GitHub Desktop.
MIM Portal Sync Engine Statistics Report
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
<html> | |
<body> | |
<br/><br/><br/><br/><center> | |
<div class="container"> | |
<div class="mimuserslookup"> | |
<div class="ctxmim"> | |
<div id="loading"><h1>The MIM Statistics Report is being generated</h1> | |
<h4>This will take approximately 30 seconds, and it will automatically be displayed here</h4> | |
</div> | |
</center> | |
<div id="response"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$.ajaxSetup({ | |
error: function(xhr, status, error) { | |
// make the loading text disappear | |
$(window).ready(function() { | |
$('#loading').hide(); | |
}); | |
$('#response').html("<center>Whilst generating the report the following error occured: <br/><br/" + status + "</br>Error: " + error +"<center></br></br>Check that the MIM Sync Server is online and the MIMStats Azure Function is running."); | |
} | |
}); | |
$(document).ready(function() { | |
// call the Azure Function to get the Report | |
var result = $.get('https://myazurefunction.azurewebsites.net/api/CTXDevMIMStats?code=EfdHvyQBxSw5Qj31234567890D/PAyUF5H1yQ==', function(list) { | |
$('#response').html(list); // show the list | |
// make the generating report text disappear | |
$(window).ready(function() { | |
$('#loading').hide(); | |
}); | |
}); | |
// }); | |
}) | |
</script> | |
</div> | |
</body | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment