Class Index | File Index

Classes


Namespace OWF.Metrics


Defined in: Widget.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
OWF.Metrics.logBatchMetrics(metrics)
Logs a set of metrics to the server all at once.
<static>  
OWF.Metrics.logMetric(userId, userName, metricSite, componentName, componentId, componentInstanceId, metricTypeId, metricData)
Basic logging capability - meant to be called by other methods which transform or validate data.
<static>  
OWF.Metrics.logWidgetRender(userId, userName, metricSite, widget)
Log view of widget - see calls in dashboards.
Namespace Detail
OWF.Metrics
Method Detail
<static> OWF.Metrics.logBatchMetrics(metrics)
Logs a set of metrics to the server all at once. All metrics passed into a call to this function will be logged in a single HTTP request, instead of one request per metric
Parameters:
{Array} metrics
{String} metrics[*].userId
{String} metrics[*].userName
{Number} metrics[*].metricTime
The time at which is metric was collected (in UNIX time)
{String} metrics[*].site
Identifier, potentially URL, for source of metric - typically OWF instance
{String} metrics[*].component
{String} metrics[*].componentId
{String} metrics[*].instanceId
{String} metrics[*].metricTypeId
String describing metric - recommend package name construct
{String} metrics[*].widgetData
Any additional data for metric - do any necessary validation appropriate to metricTypeId before sending through
{String} metrics[*].userAgent
Should be set to the user-agent string of the browser
Since:
OWF 6.0

<static> OWF.Metrics.logMetric(userId, userName, metricSite, componentName, componentId, componentInstanceId, metricTypeId, metricData)
Basic logging capability - meant to be called by other methods which transform or validate data.
Parameters:
{String} userId
{String} userName
{String} metricSite
Identifier, potentially URL, for source of metric - typically OWF instance
{String} componentName
{String} componentId
{String} componentInstanceId
{String} metricTypeId
String describing metric - recommend package name construct
{String} metricData
Any additional data for metric - do any necessary validation appropriate to metricTypeId before sending through
Since:
OWF 3.8.0

<static> OWF.Metrics.logWidgetRender(userId, userName, metricSite, widget)
Log view of widget - see calls in dashboards.
Parameters:
{String} userId
- see Ozone.metrics.logMetric userId
{String} userName
- see Ozone.metrics.logMetric userName
{String} metricSite
- see Ozone.metrics.logMetric metricSite
{Object} widget
Since:
OWF 3.8.0

Documentation generated by JsDoc Toolkit 2.3.2 on Fri Oct 05 2012 16:51:04 GMT-0400 (EDT)