TWiki
>
ETICS Web
>
MetricsSchema
(2008-04-24,
LorenzoDini
)
(raw view)
E
dit
A
ttach
P
DF
---+ Schema for Plugin generated Metrics Here follows the schema that must be used by plugins to add metrics in the build-status.xml file during the build or test submissions. There are two types of metrics: * *OVERALL* that are the metrics related the whole build or test submission. * *MODULE* that are the metrics related to a specific component. The *OVERALL* metrics can be added directly inside the *project* tag of the build-status.xml as defined in the schema available here: [[http://etics.cvs.cern.ch:8180/cgi-bin/etics.cgi/org.etics.build-system.schemas/src/build-status.xsd?view=markup][build-status.xsd]] In particular: <verbatim> <xs:element name="project"> <xs:complexType> <xs:sequence> <xs:element ref="modules"/> <xs:element ref="commands" minOccurs="0"/> <xs:element ref="dependencies" minOccurs="0"/> <xs:element ref="envs" minOccurs="0"/> <xs:element ref="metrics" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> [...] </xs:complexType> </xs:element> </verbatim> The *MODULE* metrics can be added directly inside the *module* tag of the build-status.xml: <verbatim> <xs:element name="module"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element ref="artefacts" minOccurs="0"/> <xs:element ref="dependency" minOccurs="0"/> <xs:element ref="usedby" minOccurs="0"/> <xs:element ref="metrics" minOccurs="0"/> </xs:sequence> </xs:complexType> </xs:element> </verbatim> Each metric must follow the schema available here: [[http://etics.cvs.cern.ch:8180/cgi-bin/etics.cgi/org.etics.repository.schemas/src/metrics.xsd?view=markup][metrics.xsd]] In particular: <verbatim> <xs:element name="metrics"> <xs:complexType> <xs:sequence> <xs:element ref="value" minOccurs="0" maxOccurs="unbounded"/> A metric can include a set of values to describe parts of the metric </xs:sequence> <xs:attribute name="value" type="xs:string" use="optional"/> The value of the metric <xs:attribute name="context" type="xs:string" use="optional"/> A comma separated list of tags describing the context in wich the metric has been computed <xs:attribute name="name" type="xs:string" use="optional"/> Name of the metric <xs:attribute name="minvalue" type="xs:string" use="optional"/> If applicable, the minimum of the range where the value can land <xs:attribute name="maxvalue" type="xs:string" use="optional"/> If applicable, the maximum of the range where the value can land <xs:attribute name="unit" type="xs:string" use="optional"/> Unit of the metric. Examples are lines of code, m/s, bugs, etc. <xs:attribute name="type" use="optional"> The numerical type of value <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="integer"/> <xs:enumeration value="percentage"/> <xs:enumeration value="float"/> <xs:enumeration value="boolean"/> <xs:enumeration value="enum"/> <xs:enumeration value="other"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="detailshtmllink" type="xs:string" use="optional"/> Relative url within the reports of the HTML page with details <xs:attribute name="detailsxmllink" type="xs:string" use="optional"/> Relative url within the reports of an additional XML description. Examples are JUnit </xs:complexType> </xs:element> <xs:element name="value"> <xs:complexType> <xs:complexContent> <xs:extension base="xs:anyType"> Value is a key/value pair where to store additional details of the metric <xs:attribute name="name" type="xs:string" use="optional"/> <xs:attribute name="value" type="xs:string" use="optional"/> <xs:attribute name="unit" type="xs:string" use="optional"/> <xs:attribute name="type" use="optional"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="boolean"/> <xs:enumeration value="text"/> <xs:enumeration value="string"/> <xs:enumeration value="binary"/> <xs:enumeration value="time"/> <xs:enumeration value="datetime"/> <xs:enumeration value="date"/> <xs:enumeration value="integer"/> <xs:enumeration value="float"/> <xs:enumeration value="enum"/> <xs:enumeration value="other"/> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> </verbatim> -- Main.LorenzoDini - 24 Apr 2008
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r1 - 2008-04-24
-
LorenzoDini
Log In
ETICS
ETICS Web
ETICS Web Home
Changes
Index
Search
Support Knowledge Base
Public webs
Public webs
ABATBEA
ACPP
ADCgroup
AEGIS
AfricaMap
AgileInfrastructure
ALICE
AliceEbyE
AliceSPD
AliceSSD
AliceTOF
AliFemto
ALPHA
Altair
ArdaGrid
ASACUSA
AthenaFCalTBAna
Atlas
AtlasLBNL
AXIALPET
CAE
CALICE
CDS
CENF
CERNSearch
CLIC
Cloud
CloudServices
CMS
Controls
CTA
CvmFS
DB
DefaultWeb
DESgroup
DPHEP
DM-LHC
DSSGroup
EGEE
EgeePtf
ELFms
EMI
ETICS
FIOgroup
FlukaTeam
Frontier
Gaudi
GeneratorServices
GuidesInfo
HardwareLabs
HCC
HEPIX
ILCBDSColl
ILCTPC
IMWG
Inspire
IPv6
IT
ItCommTeam
ITCoord
ITdeptTechForum
ITDRP
ITGT
ITSDC
LAr
LCG
LCGAAWorkbook
Leade
LHCAccess
LHCAtHome
LHCb
LHCgas
LHCONE
LHCOPN
LinuxSupport
Main
Medipix
Messaging
MPGD
NA49
NA61
NA62
NTOF
Openlab
PDBService
Persistency
PESgroup
Plugins
PSAccess
PSBUpgrade
R2Eproject
RCTF
RD42
RFCond12
RFLowLevel
ROXIE
Sandbox
SocialActivities
SPI
SRMDev
SSM
Student
SuperComputing
Support
SwfCatalogue
TMVA
TOTEM
TWiki
UNOSAT
Virtualization
VOBox
WITCH
XTCA
Welcome Guest
Login
or
Register
Cern Search
TWiki Search
Google Search
ETICS
All webs
Copyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use
Discourse
or
Send feedback