# -------------------------------------------------------------------------
# Copyright (c) 2024 Huawei Technologies Co., Ltd.
# This file is part of the MindStudio project.
#
# MindStudio is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
#    http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# -------------------------------------------------------------------------
class TableConstant:
    RANK_SET = "rank_set"
    STEP = "step"
    RANK_ID = "rank_id"
    TYPE = "type"
    HCCL_OP_NAME = "hccl_op_name"
    GROUP_NAME = "group_name"
    START_TIMESTAMP = "start_timestamp"
    ELAPSED_TIME = "elapse_time"
    TRANSIT_TIME = "transit_time"
    WAIT_TIME = "wait_time"
    SYNCHRONIZATION_TIME = "synchronization_time"
    IDLE_TIME = "idle_time"
    SYNCHRONIZATION_TIME_RATIO = "synchronization_time_ratio"
    WAIT_TIME_RATIO = "wait_time_ratio"
    BAND_TYPE = "band_type"
    TRANSIT_SIZE = "transit_size"
    BANDWIDTH = "bandwidth"
    LARGE_PACKET_RATIO = "large_packet_ratio"
    PACKAGE_SIZE = "package_size"
    COUNT = "count"
    TOTAL_DURATION = "total_duration"
    SRC_RANK = "src_rank"
    DST_RANK = "dst_rank"
    TRANSPORT_TYPE = "transport_type"
    OPNAME = "op_name"
    GROUP_ID = "group_id"
    PG_NAME = "pg_name"
    NAME = "name"
    VALUE = "value"
    OP_STATE = "opState"

    # table name
    TABLE_STRING_IDS = "STRING_IDS"
    TABLE_COMPUTE_TASK_INFO = "COMPUTE_TASK_INFO"
    TABLE_COMMUNICATION_OP = "COMMUNICATION_OP"
    TABLE_TASK = "TASK"
    TABLE_META_DATA = "META_DATA"
    TABLE_COMM_ANALYZER_MATRIX = "CommAnalyzerMatrix"