# Copyright (c) 2024, Huawei Technologies Co., Ltd.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0  (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
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"
    TABLE_MSTX_EVENTS = "MSTX_EVENTS"