1 /** 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package org.apache.hadoop.yarn.server.metrics; 20 21 import org.apache.hadoop.classification.InterfaceAudience.Private; 22 import org.apache.hadoop.classification.InterfaceStability.Unstable; 23 24 @Private 25 @Unstable 26 public class AppAttemptMetricsConstants { 27 28 public static final String ENTITY_TYPE = 29 "YARN_APPLICATION_ATTEMPT"; 30 31 public static final String REGISTERED_EVENT_TYPE = 32 "YARN_APPLICATION_ATTEMPT_REGISTERED"; 33 34 public static final String FINISHED_EVENT_TYPE = 35 "YARN_APPLICATION_ATTEMPT_FINISHED"; 36 37 public static final String PARENT_PRIMARY_FILTER = 38 "YARN_APPLICATION_ATTEMPT_PARENT"; 39 40 public static final String TRACKING_URL_EVENT_INFO = 41 "YARN_APPLICATION_ATTEMPT_TRACKING_URL"; 42 43 public static final String ORIGINAL_TRACKING_URL_EVENT_INFO = 44 "YARN_APPLICATION_ATTEMPT_ORIGINAL_TRACKING_URL"; 45 46 public static final String HOST_EVENT_INFO = 47 "YARN_APPLICATION_ATTEMPT_HOST"; 48 49 public static final String RPC_PORT_EVENT_INFO = 50 "YARN_APPLICATION_ATTEMPT_RPC_PORT"; 51 52 public static final String MASTER_CONTAINER_EVENT_INFO = 53 "YARN_APPLICATION_ATTEMPT_MASTER_CONTAINER"; 54 55 public static final String DIAGNOSTICS_INFO_EVENT_INFO = 56 "YARN_APPLICATION_ATTEMPT_DIAGNOSTICS_INFO"; 57 58 public static final String FINAL_STATUS_EVENT_INFO = 59 "YARN_APPLICATION_ATTEMPT_FINAL_STATUS"; 60 61 public static final String STATE_EVENT_INFO = 62 "YARN_APPLICATION_ATTEMPT_STATE"; 63 64 } 65