Skip to content

Instantly share code, notes, and snippets.

@darrenjrobinson
Created September 14, 2017 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenjrobinson/c08f847b8b131ab32037956f87f56ba9 to your computer and use it in GitHub Desktop.
Save darrenjrobinson/c08f847b8b131ab32037956f87f56ba9 to your computer and use it in GitHub Desktop.
MIM Portal Sync Engine Statistics Report
<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