Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.