The logic is currently that the template is scanned for potential values, and those that are found are reported in the extra tag for the JSON. A bit clumsy, but allows the user to choose specific fields to include in the reported data.
25 lines
872 B
C#
25 lines
872 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Duplicati.Library.Modules.Builtin
|
|
{
|
|
/// <summary>
|
|
/// Interface for describing a result serializer
|
|
/// </summary>
|
|
public interface IResultFormatSerializer
|
|
{
|
|
/// <summary>
|
|
/// Serialize the specified result and logLines.
|
|
/// </summary>
|
|
/// <returns>The serialized result string.</returns>
|
|
/// <param name="result">The result to serialize.</param>
|
|
/// <param name="loglines">The log lines to serialize.</param>
|
|
/// <param name="additional">Additional parameters to include</param>
|
|
string Serialize(object result, IEnumerable<string> loglines, Dictionary<string, string> additional);
|
|
|
|
/// <summary>
|
|
/// Returns the format that the serializer represents
|
|
/// </summary>
|
|
ResultExportFormat Format { get; }
|
|
}
|
|
}
|