View Javadoc
1   package com.foxinmy.weixin4j.mp.datacube;
2   
3   import java.io.Serializable;
4   import java.util.Date;
5   
6   import com.alibaba.fastjson.annotation.JSONField;
7   
8   /**
9    * 数据统计:接口分析数据
10   * 
11   * @className InterfaceSummary
12   * @author jinyu(foxinmy@gmail.com)
13   * @date 2015年1月30日
14   * @since JDK 1.6
15   * @see
16   */
17  public class InterfaceSummary implements Serializable {
18  
19  	private static final long serialVersionUID = -8812979112580350988L;
20  
21  	/**
22  	 * 引用的日期
23  	 */
24  	@JSONField(name = "ref_date")
25  	private Date refDate;
26  	/**
27  	 * 数据的小时,包括从000到2300,分别代表的是[000,100)到[2300,2400),即每日的第1小时和最后1小时
28  	 */
29  	@JSONField(name = "ref_hour")
30  	private int refHour;
31  	/**
32  	 * 通过服务器配置地址获得消息后,被动回复用户消息的次数
33  	 */
34  	@JSONField(name = "callback_count")
35  	private int callbackCount;
36  	/**
37  	 * 上述动作的失败次数
38  	 */
39  	@JSONField(name = "fail_count")
40  	private int failCount;
41  	/**
42  	 * 总耗时,除以callback_count即为平均耗时
43  	 */
44  	@JSONField(name = "total_time_cost")
45  	private int totalTimeCost;
46  	/**
47  	 * 最大耗时
48  	 */
49  	@JSONField(name = "max_time_cost")
50  	private int maxTimeCost;
51  
52  	public Date getRefDate() {
53  		return refDate;
54  	}
55  
56  	public void setRefDate(Date refDate) {
57  		this.refDate = refDate;
58  	}
59  
60  	public int getRefHour() {
61  		return refHour;
62  	}
63  
64  	public void setRefHour(int refHour) {
65  		this.refHour = refHour;
66  	}
67  
68  	public int getCallbackCount() {
69  		return callbackCount;
70  	}
71  
72  	public void setCallbackCount(int callbackCount) {
73  		this.callbackCount = callbackCount;
74  	}
75  
76  	public int getFailCount() {
77  		return failCount;
78  	}
79  
80  	public void setFailCount(int failCount) {
81  		this.failCount = failCount;
82  	}
83  
84  	public int getTotalTimeCost() {
85  		return totalTimeCost;
86  	}
87  
88  	public void setTotalTimeCost(int totalTimeCost) {
89  		this.totalTimeCost = totalTimeCost;
90  	}
91  
92  	public int getMaxTimeCost() {
93  		return maxTimeCost;
94  	}
95  
96  	public void setMaxTimeCost(int maxTimeCost) {
97  		this.maxTimeCost = maxTimeCost;
98  	}
99  
100 	@Override
101 	public String toString() {
102 		return "InterfaceSummary [refDate=" + refDate + ", refHour=" + refHour
103 				+ ", callbackCount=" + callbackCount + ", failCount="
104 				+ failCount + ", totalTimeCost=" + totalTimeCost
105 				+ ", maxTimeCost=" + maxTimeCost + "]";
106 	}
107 }