减少TraceItem数据量较大时的性能浪费
智能大石头 authored at 2024-10-22 08:41:14
1.05 KiB
Stardust
namespace Stardust.Web.Models
{
    public class GraphViewModel
    {
        public String TraceId { get; set; }

        public String Title { get; set; }

        public String Layout { get; set; }

        public GraphCategory[] Categories { get; set; }

        public GraphLink[] Links { get; set; }

        public GraphNode[] Nodes { get; set; }
    }

    public class GraphCategory
    {
        public String Name { get; set; }

        public String Symbol { get; set; }
    }

    public class GraphLink
    {
        public String Source { get; set; }

        public String Target { get; set; }
    }

    public class GraphNode
    {
        public String Id { get; set; }

        public String Name { get; set; }

        public Int32 Category { get; set; }

        public Double SymbolSize { get; set; }

        //public Boolean Draggable { get; set; } = true;

        //public Boolean Fixed { get; set; } = false;

        //public Double X { get; set; }

        //public Double Y { get; set; }

        public Double Value { get; set; }
    }
}