-
Notifications
You must be signed in to change notification settings - Fork 321
/
DataPipelineStatus.cs
65 lines (53 loc) · 1.75 KB
/
DataPipelineStatus.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace Microsoft.KernelMemory;
public class DataPipelineStatus
{
[JsonPropertyOrder(0)]
[JsonPropertyName("completed")]
public bool Completed { get; set; } = false;
/// <summary>
/// Currently used to track deleted documents.
/// </summary>
[JsonPropertyOrder(2)]
[JsonPropertyName("empty")]
public bool Empty { get; set; } = false;
[JsonPropertyOrder(10)]
[JsonPropertyName("index")]
public string Index { get; set; } = string.Empty;
/// <summary>
/// Unique Id
/// </summary>
[JsonPropertyOrder(11)]
[JsonPropertyName("document_id")]
public string DocumentId { get; set; } = string.Empty;
[JsonPropertyOrder(12)]
[JsonPropertyName("tags")]
public TagCollection Tags { get; set; } = [];
[JsonPropertyOrder(13)]
[JsonPropertyName("creation")]
public DateTimeOffset Creation { get; set; } = DateTimeOffset.MinValue;
[JsonPropertyOrder(14)]
[JsonPropertyName("last_update")]
public DateTimeOffset LastUpdate { get; set; }
/// <summary>
/// Full list of the steps in this pipeline.
/// </summary>
[JsonPropertyOrder(15)]
[JsonPropertyName("steps")]
public List<string> Steps { get; set; } = [];
/// <summary>
/// List of the steps remaining.
/// </summary>
[JsonPropertyOrder(16)]
[JsonPropertyName("remaining_steps")]
public List<string> RemainingSteps { get; set; } = [];
/// <summary>
/// List of steps already completed.
/// </summary>
[JsonPropertyOrder(17)]
[JsonPropertyName("completed_steps")]
public List<string> CompletedSteps { get; set; } = [];
}