storage-report-codegen.xml 1.95 KB
<?xml version="1.0" encoding="UTF-8"?>
<model>
  <entity name="storage-report" root="true">
    <attribute name="id" value-type="String" />
    <attribute name="name" value-type="String" />
    <attribute name="type" value-type="String" />
    <attribute name="startTime" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
    <attribute name="endTime" value-type="Date" format="yyyy-MM-dd HH:mm:ss" />
    <element name="id" value-type="String" type="list" names="ids" />
    <element name="ip" value-type="String" type="list" names="ips" />
    <element name="op" value-type="String" type="list" names="ops" />
    <entity-ref name="machine" type="list" names="machines" />
  </entity>
  <entity name="machine">
    <attribute name="id" value-type="String" />
    <entity-ref name="domain" type="list" names="domains" />
  </entity>
  <entity name="domain">
    <attribute name="id" value-type="String" />
    <entity-ref name="operation" type="list" names="operations" />
    <entity-ref name="sql" type="list" names="sqls" />
  </entity>
  <entity name="operation">
    <attribute name="id" value-type="String" />
    <attribute name="count" value-type="int" />
    <attribute name="avg" value-type="int" />
    <attribute name="sum" value-type="int" />
    <attribute name="error" value-type="int" />
    <attribute name="long-count" value-type="int" />
    <entity-ref name="segment" type="list" names="segments" />
  </entity>
  <entity name="segment">
    <attribute name="id" value-type="int" />
    <attribute name="count" value-type="int" />
    <attribute name="avg" value-type="int" />
    <attribute name="sum" value-type="int" />
    <attribute name="error" value-type="int" />
    <attribute name="long-count" value-type="int" />
  </entity>
  <entity name="sql">
    <attribute name="id" value-type="String" />
    <attribute name="statement" value-type="String" />
    <attribute name="count" value-type="int" />
  </entity>
</model>