Skip to content

Commit fbc6e61

Browse files
codebrainMpdreamz
authored andcommitted
Review of ML
1 parent c814cb4 commit fbc6e61

File tree

67 files changed

+147
-157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+147
-157
lines changed

src/Nest/XPack/MachineLearning/CloseJob/ElasticClient-CloseJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Nest
88
public partial interface IElasticClient
99
{
1010
/// <summary>
11-
/// Closes a Machine Learning job.
11+
/// Closes a machine learning job.
1212
/// A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
1313
/// </summary>
1414
ICloseJobResponse CloseJob(Id jobId, Func<CloseJobDescriptor, ICloseJobRequest> selector = null);

src/Nest/XPack/MachineLearning/Datafeed/DatafeedConfig.cs

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
namespace Nest
44
{
55
/// <summary>
6-
/// Configuration of a Machine Learning Datafeed
6+
/// Configuration of a machine learning Datafeed
77
/// </summary>
88
[JsonObject]
99
public class DatafeedConfig
1010
{
1111
/// <summary>
12-
/// The datafeed id
12+
/// The datafeed id.
1313
/// </summary>
1414
[JsonProperty("datafeed_id")]
1515
public string DatafeedId { get; internal set; }
1616

1717
/// <summary>
18-
/// the aggregation searches to perform for the datafeed
18+
/// The aggregation searches to perform for the datafeed.
1919
/// </summary>
2020
[JsonProperty("aggregations")]
2121
public AggregationDictionary Aggregations { get; internal set; }
@@ -34,7 +34,9 @@ public class DatafeedConfig
3434
[JsonProperty("frequency")]
3535
public Time Frequency { get; internal set; }
3636

37-
///<summary>A list of index names to search within. Wildcards are supported</summary>
37+
/// <summary>
38+
/// A list of index names to search within, wildcards are supported.
39+
/// </summary>
3840
[JsonProperty("indices")]
3941
[JsonConverter(typeof(IndicesJsonConverter))]
4042
public Indices Indices { get; internal set; }
@@ -46,33 +48,35 @@ public class DatafeedConfig
4648
public string JobId { get; internal set; }
4749

4850
/// <summary>
49-
/// Describe the query to perform using a query descriptor lambda
51+
/// Describe the query to perform using a query descriptor lambda.
5052
/// </summary>
5153
[JsonProperty("query")]
5254
public QueryContainer Query { get; internal set; }
5355

5456
/// <summary>
5557
/// The number of seconds behind real time that data is queried.
56-
/// For example, if data from 10:04 A.M. might not be searchable in Elasticsearch until 10:06 A.M.,
58+
/// For example, if data from 10:04 A.M. might not be searchable until 10:06 A.M.,
5759
/// set this property to 120 seconds. The default value is 60s.
5860
/// </summary>
5961
[JsonProperty("query_delay")]
6062
public Time QueryDelay { get; internal set; }
6163

6264
/// <summary>
63-
/// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed. T
64-
/// he detector configuration in a job can contain functions that use these script fields.
65+
/// Specifies scripts that evaluate custom expressions and returns script fields to the datafeed.
66+
/// The detector configuration in a job can contain functions that use these script fields.
6567
/// </summary>
6668
[JsonProperty("script_fields")]
6769
public IScriptFields ScriptFields { get; internal set; }
6870

6971
/// <summary>
70-
/// The size parameter that is used in Elasticsearch searches
72+
/// The size parameter that is used in searches.
7173
/// </summary>
7274
[JsonProperty("scroll_size")]
7375
public int? ScrollSize { get; internal set; }
7476

75-
///<summary>A list of types to search for within the specified indices</summary>
77+
///<summary>
78+
/// A list of types to search for within the specified indices.
79+
/// </summary>
7680
[JsonProperty("types")]
7781
[JsonConverter(typeof(TypesJsonConverter))]
7882
public Types Types { get; internal set; }

src/Nest/XPack/MachineLearning/DeleteDatafeed/ElasticClient-DeleteDatafeed.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Nest
88
public partial interface IElasticClient
99
{
1010
/// <summary>
11-
/// Deletes an existing datafeed for a Machine Learning job.
11+
/// Deletes an existing datafeed for a machine learning job.
1212
/// </summary>
1313
IDeleteDatafeedResponse DeleteDatafeed(Id datafeedId, Func<DeleteDatafeedDescriptor, IDeleteDatafeedRequest> selector = null);
1414

src/Nest/XPack/MachineLearning/DeleteExpiredData/ElasticClient-DeleteExpiredData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Nest
88
public partial interface IElasticClient
99
{
1010
/// <summary>
11-
/// Deletes expired data for Machine Learning.
11+
/// Deletes expired machine learning data.
1212
/// </summary>
1313
IDeleteExpiredDataResponse DeleteExpiredData(Func<DeleteExpiredDataDescriptor, IDeleteExpiredDataRequest> selector = null);
1414

src/Nest/XPack/MachineLearning/DeleteJob/DeleteJobRequest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using Newtonsoft.Json;
2-
31
namespace Nest
42
{
53
public partial interface IDeleteJobRequest {}

src/Nest/XPack/MachineLearning/DeleteJob/ElasticClient-DeleteJob.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ namespace Nest
88
public partial interface IElasticClient
99
{
1010
/// <summary>
11-
/// Deletes a Machine Learning job.
12-
/// Before you can delete a job, you must delete the datafeeds that are associated with it, see DeleteDatafeed. Unless the force parameter is used the job must be closed before it can be deleted.
13-
/// It is not currently possible to delete multiple jobs using wildcards or a comma separated list.
11+
/// Deletes a machine learning job.
12+
/// Before you can delete a job, you must delete the datafeeds that are associated with it, see DeleteDatafeed.
13+
/// Unless the force parameter is used, the job must be closed before it can be deleted.
1414
/// </summary>
15+
/// <remarks>
16+
/// It is not currently possible to delete multiple jobs, either using wildcards or a comma separated list.
17+
/// </remarks>
1518
IDeleteJobResponse DeleteJob(Id jobId, Func<DeleteJobDescriptor, IDeleteJobRequest> selector = null);
1619

1720
/// <inheritdoc/>

src/Nest/XPack/MachineLearning/DeleteModelSnapshot/ElasticClient-DeleteModelSnapshot.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ namespace Nest
88
public partial interface IElasticClient
99
{
1010
/// <summary>
11-
/// Deletes an existing Machine Learning model snapshot.
11+
/// Deletes an existing machine learning model snapshot.
1212
/// </summary>
1313
/// <remarks>
14-
/// You cannot delete the active model snapshot.
15-
/// To delete that snapshot, first revert to a different one.
14+
/// You cannot delete the active model snapshot, unless you first revert to a different one.
1615
/// </remarks>
1716
IDeleteModelSnapshotResponse DeleteModelSnapshot(Id jobId, Id snapshotId, Func<DeleteModelSnapshotDescriptor, IDeleteModelSnapshotRequest> selector = null);
1817

src/Nest/XPack/MachineLearning/FlushJob/ElasticClient-FlushJob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Nest
88
public partial interface IElasticClient
99
{
1010
/// <summary>
11-
/// Forces any buffered data to be processed by the Machine Learning job.
11+
/// Forces any buffered data to be processed by the machine learning job.
1212
/// </summary>
1313
IFlushJobResponse FlushJob(Id jobId, Func<FlushJobDescriptor, IFlushJobRequest> selector = null);
1414

src/Nest/XPack/MachineLearning/GetAnomalyRecords/ElasticClient-GetAnomalyRecords.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Nest
88
public partial interface IElasticClient
99
{
1010
/// <summary>
11-
/// Retrieve anomaly records for a Machine Learning job.
11+
/// Retrieve anomaly records for a machine learning job.
1212
/// </summary>
1313
IGetAnomalyRecordsResponse GetAnomalyRecords(Id jobId, Func<GetAnomalyRecordsDescriptor, IGetAnomalyRecordsRequest> selector = null);
1414

src/Nest/XPack/MachineLearning/GetAnomalyRecords/GetAnomalyRecordsRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Nest
55
{
66
/// <summary>
7-
/// A request to retrieve retrieve anomaly records for a Machine Learning job.
7+
/// Retrieve anomaly records for a machine learning job.
88
/// </summary>
99
public partial interface IGetAnomalyRecordsRequest
1010
{
@@ -40,7 +40,7 @@ public partial interface IGetAnomalyRecordsRequest
4040
double? RecordScore { get; set; }
4141

4242
/// <summary>
43-
/// Specifies the sort field for the requested records. By default, records are sorted by the record score value.
43+
/// Specifies the sort field for the requested records. By default, records are sorted by the anomaly score value.
4444
/// </summary>
4545
[JsonProperty("sort")]
4646
Field Sort { get; set; }

0 commit comments

Comments
 (0)