import moment , { Moment } from 'moment-timezone' ; import { METRIC_TYPE } from './' ; export interface ApplicationUsageMetric { type : METRIC_TYPE . APPLICATION_USAGE ; appId : string ; viewId : string ; startTime : Moment ; numberOfClicks : number ; } export function createApplicationUsageMetric ( appId , viewId ) { return { type : METRIC_TYPE . APPLICATION_USAGE , appId , viewId , startTime : moment ( ) , numberOfClicks : 0 , } ; }