Repository.XFRACAS.AddSystemMetric2: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}}
{{Template:Repository.AddSystemMetric2.Cmt}}
 
<onlyinclude>Inserts the time/usage values reported on a particular date for a particular serialized system (Metric 1 and 2).</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 of the part. 
 
''metric1Value''


:Required. Double. The value reported for Metric 1.


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 value reported for Metric 2.


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


:''metricDate'': Date of the reported metrics.
:Required. Date. The date when the value(s) were reported.

Latest revision as of 23:04, 30 November 2017

APIWiki.png


Member of: SynthesisAPI.Repository

Inserts the time/usage values reported on a particular date for a particular serialized system (Metric 1 and 2).

Syntax

AddSystemMetric2(serialHID, metric1Value, metric2Value, metricDate)

Parameters

serialHID

Required. Integer. The system hierarchy ID of the part.

metric1Value

Required. Double. The value reported for Metric 1.

metric2Value

Required. Double. The value reported for Metric 2.

metricDate

Required. Date. The date when the value(s) were reported.