package com.dianping.cat;

public class CatConstants {
	/**
	 * Cat Json length
	 */
	public static final int MAX_LENGTH = 1000;

	public static final int MAX_ITEM_LENGTH = 50;

	/**
	 * Cat instrument attribute names
	 */
	public static final String CAT_STATE = "cat-state";
	
	public static final String CAT_PAGE_URI = "cat-page-uri";

	/**
	 * Pigeon Transation Type
	 */
	public static final String TYPE_CALL = "Call";

	public static final String TYPE_RESULT = "Result";

	public static final String TYPE_TimeOut = "PigeonTimeOut";

	public static final String TYPE_SERVICE = "Service";

	public static final String TYPE_REMOTE_CALL = "RemoteCall";

	public static final String TYPE_REQUEST = "Request";

	public static final String TYPE_RESPONSE = "Respone";

	/**
	 * Pigeon Event Type, it is used to record the param
	 */

	public static final String TYPE_PIGEON_REQUEST = "PigeonRequest";

	public static final String TYPE_PIGEON_RESPONSE = "PigeonRespone";

	/**
	 * Pigeon Event name
	 */
	public static final String NAME_REQUEST = "PigeonRequest";

	public static final String NAME_RESPONSE = "PigeonRespone";

	public static final String NAME_TIME_OUT = "ClientTimeOut";

	/**
	 * Pigeon Context Info
	 */
	public static final String PIGEON_ROOT_MESSAGE_ID = "RootMessageId";

	public static final String PIGEON_CURRENT_MESSAGE_ID = "CurrentMessageId";

	public static final String PIGEON_SERVER_MESSAGE_ID = "ServerMessageId";

	public static final String PIGEON_RESPONSE_MESSAGE_ID = "ResponseMessageId";

	public static final String TYPE_SQL = "SQL";

	public static final String TYPE_SQL_PARAM = "SQL.PARAM";

	public static final String TYPE_URL = "URL";

	public static final String TYPE_URL_FORWARD = "URL.Forward";

	public static final String TYPE_ACTION = "Action";

	public static final int ERROR_COUNT = 100;

	public static final int SUCCESS_COUNT = 1000;

}
@@ -1781,16 +1781,74 @@
 Action%22;
+%0A%09%0A%09public static final String TYPE_METRIC = %22metricType%22;
 %0A%0A%09publi

Add a metricType into CatConstants