content: /*
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
   ~                                                                               ~
   ~ The MIT License (MIT)                                                         ~
   ~                                                                               ~
   ~ Copyright (c) 2015-2025 miaixz.org and other contributors.                    ~
   ~                                                                               ~
   ~ Permission is hereby granted, free of charge, to any person obtaining a copy  ~
   ~ of this software and associated documentation files (the "Software"), to deal ~
   ~ in the Software without restriction, including without limitation the rights  ~
   ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell     ~
   ~ copies of the Software, and to permit persons to whom the Software is         ~
   ~ furnished to do so, subject to the following conditions:                      ~
   ~                                                                               ~
   ~ The above copyright notice and this permission notice shall be included in    ~
   ~ all copies or substantial portions of the Software.                           ~
   ~                                                                               ~
   ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR    ~
   ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,      ~
   ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE   ~
   ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER        ~
   ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ~
   ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN     ~
   ~ THE SOFTWARE.                                                                 ~
   ~                                                                               ~
   ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
  */
  package org.miaixz.bus.spring.metrics;
  
  import lombok.Getter;
  import lombok.Setter;
  
  import java.util.ArrayList;
  import java.util.List;
  
  /**
   * 启动消耗统计组件，用于收集和统计应用程序启动过程中的各项性能指标。
   * <p>
   * 该类提供了记录应用程序名称、启动耗时以及各阶段统计信息的功能， 可用于全面监控和分析应用程序的启动性能。
   * </p>
   *
   * @author Kimi Liu
   * @since Java 17+
   */
  @Getter
  @Setter
  public class StartupMetrics {
  
      /**
       * 应用程序名称
       * <p>
       * 记录当前启动的应用程序的名称，用于标识不同的应用程序实例
       * </p>
       */
      private String appName;
  
      /**
       * 应用程序启动耗时（毫秒）
       * <p>
       * 记录应用程序从开始启动到完成启动所花费的总时间
       * </p>
       */
      private long applicationBootElapsedTime = 0;
  
      /**
       * 应用程序启动时间戳
       * <p>
       * 记录应用程序启动的时间点（毫秒级时间戳）
       * </p>
       */
      private long applicationBootTime;
  
      /**
       * 启动阶段统计信息列表
       * <p>
       * 存储应用程序启动过程中各个阶段的统计信息，每个阶段都是一个BaseMetrics对象
       * </p>
       */
      private List<BaseMetrics> stageStats = new ArrayList<>();
  
  }
  