-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
IndexerExecutionResult.cs
142 lines (127 loc) · 5.94 KB
/
IndexerExecutionResult.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Represents the result of an individual indexer execution.
/// </summary>
public partial class IndexerExecutionResult
{
/// <summary>
/// Initializes a new instance of the IndexerExecutionResult class.
/// </summary>
public IndexerExecutionResult()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the IndexerExecutionResult class.
/// </summary>
/// <param name="status">The outcome of this indexer execution.
/// Possible values include: 'transientFailure', 'success',
/// 'inProgress', 'reset'</param>
/// <param name="errorMessage">The error message indicating the
/// top-level error, if any.</param>
/// <param name="startTime">The start time of this indexer
/// execution.</param>
/// <param name="endTime">The end time of this indexer execution, if
/// the execution has already completed.</param>
/// <param name="errors">The item-level indexing errors.</param>
/// <param name="warnings">The item-level indexing warnings.</param>
/// <param name="itemCount">The number of items that were processed
/// during this indexer execution. This includes both successfully
/// processed items and items where indexing was attempted but
/// failed.</param>
/// <param name="failedItemCount">The number of items that failed to be
/// indexed during this indexer execution.</param>
/// <param name="initialTrackingState">Change tracking state with which
/// an indexer execution started.</param>
/// <param name="finalTrackingState">Change tracking state with which
/// an indexer execution finished.</param>
public IndexerExecutionResult(IndexerExecutionStatus status = default(IndexerExecutionStatus), string errorMessage = default(string), System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), IList<ItemError> errors = default(IList<ItemError>), IList<ItemWarning> warnings = default(IList<ItemWarning>), int itemCount = default(int), int failedItemCount = default(int), string initialTrackingState = default(string), string finalTrackingState = default(string))
{
Status = status;
ErrorMessage = errorMessage;
StartTime = startTime;
EndTime = endTime;
Errors = errors;
Warnings = warnings;
ItemCount = itemCount;
FailedItemCount = failedItemCount;
InitialTrackingState = initialTrackingState;
FinalTrackingState = finalTrackingState;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets the outcome of this indexer execution. Possible values
/// include: 'transientFailure', 'success', 'inProgress', 'reset'
/// </summary>
[JsonProperty(PropertyName = "status")]
public IndexerExecutionStatus Status { get; private set; }
/// <summary>
/// Gets the error message indicating the top-level error, if any.
/// </summary>
[JsonProperty(PropertyName = "errorMessage")]
public string ErrorMessage { get; private set; }
/// <summary>
/// Gets the start time of this indexer execution.
/// </summary>
[JsonProperty(PropertyName = "startTime")]
public System.DateTimeOffset? StartTime { get; private set; }
/// <summary>
/// Gets the end time of this indexer execution, if the execution has
/// already completed.
/// </summary>
[JsonProperty(PropertyName = "endTime")]
public System.DateTimeOffset? EndTime { get; private set; }
/// <summary>
/// Gets the item-level indexing errors.
/// </summary>
[JsonProperty(PropertyName = "errors")]
public IList<ItemError> Errors { get; private set; }
/// <summary>
/// Gets the item-level indexing warnings.
/// </summary>
[JsonProperty(PropertyName = "warnings")]
public IList<ItemWarning> Warnings { get; private set; }
/// <summary>
/// Gets the number of items that were processed during this indexer
/// execution. This includes both successfully processed items and
/// items where indexing was attempted but failed.
/// </summary>
[JsonProperty(PropertyName = "itemsProcessed")]
public int ItemCount { get; private set; }
/// <summary>
/// Gets the number of items that failed to be indexed during this
/// indexer execution.
/// </summary>
[JsonProperty(PropertyName = "itemsFailed")]
public int FailedItemCount { get; private set; }
/// <summary>
/// Gets change tracking state with which an indexer execution started.
/// </summary>
[JsonProperty(PropertyName = "initialTrackingState")]
public string InitialTrackingState { get; private set; }
/// <summary>
/// Gets change tracking state with which an indexer execution
/// finished.
/// </summary>
[JsonProperty(PropertyName = "finalTrackingState")]
public string FinalTrackingState { get; private set; }
}
}