comparison OrthancServer/Plugins/Engine/PluginsEnumerations.cpp @ 5337:b376abae664a

Metrics can be stored either as floating-point numbers, or as integers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Jun 2023 17:55:09 +0200
parents dd9795dc380d
children 48b8dae6dc77
comparison
equal deleted inserted replaced
5336:dd9795dc380d 5337:b376abae664a
578 throw OrthancException(ErrorCode_ParameterOutOfRange); 578 throw OrthancException(ErrorCode_ParameterOutOfRange);
579 } 579 }
580 } 580 }
581 581
582 582
583 MetricsUpdate Convert(OrthancPluginMetricsType type) 583 MetricsUpdatePolicy Convert(OrthancPluginMetricsType type)
584 { 584 {
585 switch (type) 585 switch (type)
586 { 586 {
587 case OrthancPluginMetricsType_Default: 587 case OrthancPluginMetricsType_Default:
588 return MetricsUpdate_Directly; 588 return MetricsUpdatePolicy_Directly;
589 589
590 case OrthancPluginMetricsType_Timer: 590 case OrthancPluginMetricsType_Timer:
591 return MetricsUpdate_MaxOver10Seconds; 591 return MetricsUpdatePolicy_MaxOver10Seconds;
592 592
593 default: 593 default:
594 throw OrthancException(ErrorCode_ParameterOutOfRange); 594 throw OrthancException(ErrorCode_ParameterOutOfRange);
595 } 595 }
596 } 596 }