comparison OrthancServer/Plugins/Engine/PluginsEnumerations.cpp @ 5336:dd9795dc380d

renamed MetricsType as MetricsUpdate to clarify
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 27 Jun 2023 15:56:04 +0200
parents fbe857e942cd
children b376abae664a
comparison
equal deleted inserted replaced
5335:c103b0e70d75 5336:dd9795dc380d
578 throw OrthancException(ErrorCode_ParameterOutOfRange); 578 throw OrthancException(ErrorCode_ParameterOutOfRange);
579 } 579 }
580 } 580 }
581 581
582 582
583 MetricsType Convert(OrthancPluginMetricsType type) 583 MetricsUpdate Convert(OrthancPluginMetricsType type)
584 { 584 {
585 switch (type) 585 switch (type)
586 { 586 {
587 case OrthancPluginMetricsType_Default: 587 case OrthancPluginMetricsType_Default:
588 return MetricsType_Default; 588 return MetricsUpdate_Directly;
589 589
590 case OrthancPluginMetricsType_Timer: 590 case OrthancPluginMetricsType_Timer:
591 return MetricsType_MaxOver10Seconds; 591 return MetricsUpdate_MaxOver10Seconds;
592 592
593 default: 593 default:
594 throw OrthancException(ErrorCode_ParameterOutOfRange); 594 throw OrthancException(ErrorCode_ParameterOutOfRange);
595 } 595 }
596 } 596 }