/* * Copyright (c) 2011 Lockheed Martin Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.eurekastreams.server.search.modelview; import java.io.Serializable; import java.util.List; import org.eurekastreams.server.domain.DailyUsageSummary; /** * Contains Summary usage metrics. * */ public class UsageMetricSummaryDTO implements Serializable { /** * Serial version id. */ private static final long serialVersionUID = -5235759907279186759L; /** * Number of weekday records this summary is based on. */ private long weekdayRecordCount = 0; /** * average daily number of unique visitors. */ private long averageDailyUniqueVisitorCount = 0; /** * average daily number of page views. */ private long averageDailyPageViewCount = 0; /** * average daily number of people viewing streams. */ private long averageDailyStreamViewerCount = 0; /** * average daily number of streams viewed. */ private long averageDailyStreamViewCount = 0; /** * average daily number of people contributing to streams (comment and activities). */ private long averageDailyStreamContributorCount = 0; /** * average daily number of activities and comments posted. */ private long averageDailyMessageCount = 0; /** * Avg time (mins) to first comment (for activities that have comments). */ private long averageDailyActivityResponseTime = 0; /** * average daily number of comments per activity. */ private long averageDailyCommentPerActivityCount = 0; /** * Total activity count for all time. */ private Long totalActivityCount = 0L; /** * Total comment count for all time. */ private Long totalCommentCount = 0L; /** * Total contributor count - for all time - applies to streams only. */ private Long totalContributorCount = 0L; /** * A list of the daily usage metrics from the past 30 days, omitting weekends. */ private List<DailyUsageSummary> dailyStatistics; /** * @return the weekdayRecordCount */ public long getWeekdayRecordCount() { return weekdayRecordCount; } /** * @param inWeekdayRecordCount * the weekdayRecordCount to set */ public void setWeekdayRecordCount(final long inWeekdayRecordCount) { weekdayRecordCount = inWeekdayRecordCount; } /** * @return the averageDailyUniqueVisitorCount */ public long getAverageDailyUniqueVisitorCount() { return averageDailyUniqueVisitorCount; } /** * @param inAverageDailyUniqueVisitorCount * the averageDailyUniqueVisitorCount to set */ public void setAverageDailyUniqueVisitorCount(final long inAverageDailyUniqueVisitorCount) { averageDailyUniqueVisitorCount = inAverageDailyUniqueVisitorCount; } /** * @return the averageDailyPageViewCount */ public long getAverageDailyPageViewCount() { return averageDailyPageViewCount; } /** * @param inAverageDailyPageViewCount * the averageDailyPageViewCount to set */ public void setAverageDailyPageViewCount(final long inAverageDailyPageViewCount) { averageDailyPageViewCount = inAverageDailyPageViewCount; } /** * @return the averageDailyStreamViewerCount */ public long getAverageDailyStreamViewerCount() { return averageDailyStreamViewerCount; } /** * @param inAverageDailyStreamViewerCount * the averageDailyStreamViewerCount to set */ public void setAverageDailyStreamViewerCount(final long inAverageDailyStreamViewerCount) { averageDailyStreamViewerCount = inAverageDailyStreamViewerCount; } /** * @return the averageDailyStreamViewCount */ public long getAverageDailyStreamViewCount() { return averageDailyStreamViewCount; } /** * @param inAverageDailyStreamViewCount * the averageDailyStreamViewCount to set */ public void setAverageDailyStreamViewCount(final long inAverageDailyStreamViewCount) { averageDailyStreamViewCount = inAverageDailyStreamViewCount; } /** * @return the averageDailyStreamContributorCount */ public long getAverageDailyStreamContributorCount() { return averageDailyStreamContributorCount; } /** * @param inAverageDailyStreamContributorCount * the averageDailyStreamContributorCount to set */ public void setAverageDailyStreamContributorCount(final long inAverageDailyStreamContributorCount) { averageDailyStreamContributorCount = inAverageDailyStreamContributorCount; } /** * @return the averageDailyMessageCount */ public long getAverageDailyMessageCount() { return averageDailyMessageCount; } /** * @param inAverageDailyMessageCount * the averageDailyMessageCount to set */ public void setAverageDailyMessageCount(final long inAverageDailyMessageCount) { averageDailyMessageCount = inAverageDailyMessageCount; } /** * @return the averageDailyActivityResponseTime */ public long getAverageDailyActivityResponseTime() { return averageDailyActivityResponseTime; } /** * @param inAverageDailyActivityResponseTime * the averageDailyActivityResponseTime to set */ public void setAverageDailyActivityResponseTime(final long inAverageDailyActivityResponseTime) { averageDailyActivityResponseTime = inAverageDailyActivityResponseTime; } /** * @return the totalActivityCount */ public Long getTotalActivityCount() { return totalActivityCount; } /** * @param inTotalActivityCount * the totalActivityCount to set */ public void setTotalActivityCount(final Long inTotalActivityCount) { totalActivityCount = inTotalActivityCount; } /** * @return the totalCommentCount */ public Long getTotalCommentCount() { return totalCommentCount; } /** * @param inTotalCommentCount * the totalCommentCount to set */ public void setTotalCommentCount(final Long inTotalCommentCount) { totalCommentCount = inTotalCommentCount; } /** * @return the totalContributorCount */ public Long getTotalContributorCount() { return totalContributorCount; } /** * @param inTotalContributorCount * the totalContributorCount to set */ public void setTotalContributorCount(final Long inTotalContributorCount) { totalContributorCount = inTotalContributorCount; } /** * @return the dailyStatistics */ public List<DailyUsageSummary> getDailyStatistics() { return dailyStatistics; } /** * @param inDailyStatistics * the dailyStatistics to set */ public void setDailyStatistics(final List<DailyUsageSummary> inDailyStatistics) { dailyStatistics = inDailyStatistics; } /** * Get the setAverageDailyCommentPerActivityCount. * * @return the averageDailyCommentPerActivityCount */ public long getAverageDailyCommentPerActivityCount() { return averageDailyCommentPerActivityCount; } /** * Set the setAverageDailyCommentPerActivityCount. * * @param inAverageDailyCommentPerActivityCount * the averageDailyCommentPerActivityCount to set */ public void setAverageDailyCommentPerActivityCount(final long inAverageDailyCommentPerActivityCount) { averageDailyCommentPerActivityCount = inAverageDailyCommentPerActivityCount; } }