Showing posts with label storage. Show all posts
Showing posts with label storage. Show all posts

Monday, March 9, 2015

Monitor user logins storage consumption and apps usage with the Admin SDK

Security is a top priority for Google, just as it is for many of our Google Apps customers. As a domain administrator, a big part of keeping your users safe is knowing when and how they are using their accounts. Since we launched the Admin SDK Reports API in June, weve continued to add features to let you more easily visualize Google Apps usage and security in your domain. These new features include:

Security Reports

  • Login audit—View all web browser based logins with IP information for all users in your domain. You can use this data to monitor all successful, failed, and suspicious logins in your domain.
  • Authorized applications—View a list of third-party applications that users in your domain have shared data with. Gain visibility into how many users are accessing each application. Revoke access to specific apps using the security tab on Admin console.

Usage Reports

  • Storage quota—View user-level quota usage. This is available both as total usage and split by Gmail, Drive and Google+ photos for every user in the domain. Monitor which users are nearing their quota limits and acquire more storage if necessary.
  • Google+ usage—View 1-day, 7-day and 30-day active Google+ usage in your domain. See the number of Hangouts attended by users in your domain.

Refer to the Reports API documentation for more details on how to use the Reports API and to see what is possible with all of our entire Admin SDK.


Rishi Dhand profile

Rishi Dhand is a Product Manager on the Google Apps for Business team. In addition to working on data migration features, he also works on the Google Apps administration platform with focus on building new security and admin reporting features. In his free time, he enjoys playing squash and badminton.

Read more »

Wednesday, February 4, 2015

HTML5 Data Storage Example

One of the key feature in HTML5 is ability to store data on the local machine is known as data storage. Html 5 data storage is an extension of the already existing cookie mechanism.  There are two types of storages one is session storage and another is local storage. These two types share same methods and properties but the difference is how long data is stored. In either case both types are origin depended which means the data we treat must be from the same source or the same server. The data is stored as items. Items are nothing but key/value pairs.

HTML5 SESSION STORAGE AND LOCAL STORAGE

List of Very Useful methods.

getItem(key): we can get the value using this method.
setItem(key, value): we can set key and value using this method.
Length: To find how many items are in session storage.
Key(index): Used to find a particular value.
removeItem(key): To delete single item.
Clear: If you wish to clear the saved items then use the clear().


Session storage: It lasts as long its page or tap is open. It is tied to window or tab. 

home.html
  
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: #009B57;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 {
font-weight: bold;

}
-->
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
</script>
<script src="DataStorage.js"></script>
</head>
<body>
<div style="padding-top:200px" align="center">
<table width="432" align="center" cellpadding="5" cellspacing="1"
style="border:1px solid #009B57">
<tr>
<td colspan="5"><div align="center"><h4>HTML5 SESSION STORAGE AND LOCAL
STORAGE EXAMPLE </h4></div></td>
</tr>
<tr>
<td colspan="3"><span>Key</span></td>
<td width="56"><span class="style1">:</span></td>
<td width="166">
<label>
<input type="text" name="key" id="key" />
</label>
</td>
</tr>
<tr>
<td colspan="3"><span>Value</span></td>
<td><span class="style2"><strong>:</strong></span></td>
<td>
<label>
<input type="text" name="value" id="value" />
</label>
</td>
</tr>
<tr>
<td width="62">
<input type="button" name="save" id="save" value="Save" />
</td>
<td width="68">
<input type="button" name="retrieve" id="retrieve" value="Retrieve" />
</td>
<td width="56">
<input type="button" name="delete" id="delete" value="Delete" />
</td>
<td>
<input type="button" name="review" id="review" value="Review" />
</td>
<td>
<input type="button" name="clear" id="clear" value="Clear" />
</td>
</tr>
</table>
<section id="data" style="padding: 15px;
border: 1px solid #009B57; width:432px">
No data
</section>
</div>
</body>
</html>

DataStorage.js

function save()
{
var key = $(#key).val();
var value = $(#value).val();
sessionStorage[key] = value;
$(#data).html(Item is Saved);
}

function retrieve()
{
var key = $(#key).val();
var value = sessionStorage[key];
$(#data).html( + key + : + value + );
}

function deleteItem()
{
if (confirm(Delete?))
{
var key = $(#key).val();
sessionStorage.removeItem(key);
$(#data).html(Item is deleted.);

}
}

function reviewListOfItems()
{
var p=;
for(var i = 0; i < sessionStorage.length; i++)
{
var key = sessionStorage.key(i);
var value = sessionStorage[key];
p=key+" "+value++p;

}
$(#data).html( +p+);

}

function clearAllItems()
{
if (confirm(Do u want to clear?))
{
sessionStorage.clear();
$(#data).html(Items are cleared.);

}
}

$(document).ready(function(){
$(#save).click(function(){
save();
});
$(#retrieve).click(function(){
retrieve();
});
$(#delete).click(function(){
deleteItem();
});
$(#review).click(function(){
reviewListOfItems();
});
$(#clear).click(function(){
clearAllItems();
});
});

Local storage: It is persisted on the hardware. Local storage: There is a  potential problem with session storage that is the storage is limit if u close the tab or browser the data is lost when the session is lost we can solve this with the local storage.

Dont worry about local storage example just copy the above code and replace with localStorage where we have sessionStorage.

for example:
function save()
{
var key = $(#key).val();
var value = $(#value).val();
localStorage[key] = value;
$(#data).html(

Item is Saved

);
}
Read more »