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 ApplicationMetricsConstants {
27 
28   public static final String ENTITY_TYPE =
29       "YARN_APPLICATION";
30 
31   public static final String CREATED_EVENT_TYPE =
32       "YARN_APPLICATION_CREATED";
33 
34   public static final String FINISHED_EVENT_TYPE =
35       "YARN_APPLICATION_FINISHED";
36 
37   public static final String ACLS_UPDATED_EVENT_TYPE =
38       "YARN_APPLICATION_ACLS_UPDATED";
39 
40   public static final String NAME_ENTITY_INFO =
41       "YARN_APPLICATION_NAME";
42 
43   public static final String TYPE_ENTITY_INFO =
44       "YARN_APPLICATION_TYPE";
45 
46   public static final String USER_ENTITY_INFO =
47       "YARN_APPLICATION_USER";
48 
49   public static final String QUEUE_ENTITY_INFO =
50       "YARN_APPLICATION_QUEUE";
51 
52   public static final String SUBMITTED_TIME_ENTITY_INFO =
53       "YARN_APPLICATION_SUBMITTED_TIME";
54 
55   public static final String APP_VIEW_ACLS_ENTITY_INFO =
56       "YARN_APPLICATION_VIEW_ACLS";
57 
58   public static final String DIAGNOSTICS_INFO_EVENT_INFO =
59       "YARN_APPLICATION_DIAGNOSTICS_INFO";
60 
61   public static final String FINAL_STATUS_EVENT_INFO =
62       "YARN_APPLICATION_FINAL_STATUS";
63 
64   public static final String STATE_EVENT_INFO =
65       "YARN_APPLICATION_STATE";
66 
67   public static final String APP_CPU_METRICS =
68       "YARN_APPLICATION_CPU_METRIC";
69 
70   public static final String APP_MEM_METRICS =
71       "YARN_APPLICATION_MEM_METRIC";
72 
73   public static final String LATEST_APP_ATTEMPT_EVENT_INFO =
74       "YARN_APPLICATION_LATEST_APP_ATTEMPT";
75 
76 }
77