Repository.XFRACAS.AddSystemMetric2: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{InProgress}}{{DISPLAYTITLE:Repository.XFRACAS.AddSystemMetric2 Method}}{{Template:API}}{{Template:APIBreadcrumb|10|.[[Repository Class|Repository]]}}
{{Template:Repository.AddSystemMetric2.Cmt}}
 
 
<onlyinclude>Inserts the run hours and number of starts that have been reported for the unit at the time of the incident, and the date of the report.</onlyinclude>


== Syntax ==
== Syntax ==
*Repository.AddSystemMetric2(<font color=blue>ByVal</font> SerialHID<font color=blue> As Integer</font>,<font color=blue>ByVal</font> metric1Value<font color=blue> As Double</font>,<font color=blue>ByVal</font> metric2Value<font color=blue> As Double</font>,<font color=blue>ByVal</font> metricDate<font color=blue> As Date</font>)
'''AddSystemMetric2'''(''serialHID'', ''metric1Value'', ''metric2Value'', ''metricDate'')
 
===Parameters===
''serialHID''
 
:Required. Integer. The system hierarchy ID number of the part that was repaired or replaced during the incident. 
 
''metric1Value''


:Required. Double. The total run hours.


Parameters
''metric2Value''
SerialHID = ID corresponding to the serial_hid column in the SerialHierarchy table
:''metric1Value'': Value to insert into the column ReportedRunHrs.run_hrs


:''metric2Value'': Value to insert into the column ReportedRunHrs.nr_of_starts
:Required. Double. The number of starts.


:''metric3Value'': Value to insert into the column ReportedRunHrs.kw_run_hrs
''metricDate''


:''metricDate'': Date of the reported metrics.
:Required. Date. The date the metrics were reported.

Revision as of 17:52, 29 October 2015

Template:InProgress

APIWiki.png


Member of: SynthesisAPI10.Repository


Inserts the run hours and number of starts that have been reported for the unit at the time of the incident, and the date of the report.

Syntax

AddSystemMetric2(serialHID, metric1Value, metric2Value, metricDate)

Parameters

serialHID

Required. Integer. The system hierarchy ID number of the part that was repaired or replaced during the incident.

metric1Value

Required. Double. The total run hours.

metric2Value

Required. Double. The number of starts.

metricDate

Required. Date. The date the metrics were reported.