NDepend.API Documentation
LogTrendMetrics(IAnalysisResult,DateTime) Method
NDepend.Analysis Namespace > ExtensionMethodsProjectAnalysis Class > LogTrendMetrics Method : LogTrendMetrics(IAnalysisResult,DateTime) Method
This analysisResult on which trend metrics values are computed.
The time at which trend metrics values are persisted, typically System.DateTime.System.DateTime.Now or IAnalysisResult.IAnalysisResult.AnalysisResultRef.IAnalysisResultRef.Date.
Force log trend metrics values for this analysisResult.
Syntax
[Extension()]
public static void LogTrendMetrics( 
   IAnalysisResult analysisResult,
   DateTime logDateTime
)

Parameters

analysisResult
This analysisResult on which trend metrics values are computed.
logDateTime
The time at which trend metrics values are persisted, typically System.DateTime.System.DateTime.Now or IAnalysisResult.IAnalysisResult.AnalysisResultRef.IAnalysisResultRef.Date.
Exceptions
ExceptionDescription
An error occurred while persisting in the trend store.
Remarks
Trend metrics are extracted from code queries found in IAnalysisResult.IAnalysisResult.AnalysisResultRef.IAnalysisResultRef.Project.NDepend.Project.IProject.CodeQueries and IAnalysisResult.IAnalysisResult.RulesExtractedFromCode.
Rules are extracted from the same code queries sets, for computation of code metrics: # Rules, # Rules Violated, # Rules Violations.
Trend metrics values are logged into the trend metrics store of the project IAnalysisResult.IAnalysisResult.AnalysisResultRef.IAnalysisResultRef.Project.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsProjectAnalysis Class
ExtensionMethodsProjectAnalysis Members
Overload List