Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions specification/specs/aggregations/AggregationContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class AggregationContainer {
aggs: Dictionary<string, AggregationContainer>;
avg: AverageAggregation;
avg_bucket: AverageBucketAggregation;
boxplot: BoxplotAggregation;
bucket_script: BucketScriptAggregation;
bucket_selector: BucketSelectorAggregation;
bucket_sort: BucketSortAggregation;
Expand Down Expand Up @@ -58,4 +59,6 @@ class AggregationContainer {
value_count: ValueCountAggregation;
weighted_avg: WeightedAverageAggregation;
median_absolute_deviation: MedianAbsoluteDeviationAggregation;
string_stats: StringStatsAggregation;
top_metrics: TopMetricsAggregation;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ class GeoHashGridAggregation {
precision: GeoHashPrecision;
shard_size: integer;
size: integer;
bounds: BoundingBox;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class FormattableMetricAggregation {
format: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class BoxplotAggregation {
compression: double;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class StringStatsAggregation {
field: Field;
missing: any;
script: Script;
show_distribution: boolean;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class TopMetricsAggregation {
metrics: TopMetricsValue[];
size: integer;
sort: Sort[];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class TopMetricsValue {
field: Field;
}
1 change: 1 addition & 0 deletions specification/specs/analysis/analyzers/CustomAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ class CustomAnalyzer extends AnalyzerBase {
char_filter: string[];
filter: string[];
position_offset_gap: integer;
position_increment_gap: integer;
tokenizer: string;
}
43 changes: 22 additions & 21 deletions specification/specs/analysis/languages/Language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,26 @@ enum Language {
Danish = 9,
Dutch = 10,
English = 11,
Finnish = 12,
French = 13,
Galician = 14,
German = 15,
Greek = 16,
Hindi = 17,
Hungarian = 18,
Indonesian = 19,
Irish = 20,
Italian = 21,
Latvian = 22,
Norwegian = 23,
Persian = 24,
Portuguese = 25,
Romanian = 26,
Russian = 27,
Sorani = 28,
Spanish = 29,
Swedish = 30,
Turkish = 31,
Thai = 32
Estonian = 12,
Finnish = 13,
French = 14,
Galician = 15,
German = 16,
Greek = 17,
Hindi = 18,
Hungarian = 19,
Indonesian = 20,
Irish = 21,
Italian = 22,
Latvian = 23,
Norwegian = 24,
Persian = 25,
Portuguese = 26,
Romanian = 27,
Russian = 28,
Sorani = 29,
Spanish = 30,
Swedish = 31,
Turkish = 32,
Thai = 33
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ class SynonymGraphTokenFilter extends TokenFilterBase {
synonyms: string[];
synonyms_path: string;
tokenizer: string;
updateable: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ class SynonymTokenFilter extends TokenFilterBase {
synonyms: string[];
synonyms_path: string;
tokenizer: string;
updateable: boolean;
}
1 change: 1 addition & 0 deletions specification/specs/analysis/tokenizers/NoriTokenizer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class NoriTokenizer extends TokenizerBase {
decompound_mode: NoriDecompoundMode;
discard_punctuation: boolean;
user_dictionary: string;
user_dictionary_rules: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ class EdgeNGramTokenizer extends TokenizerBase {
max_gram: integer;
min_gram: integer;
token_chars: TokenChar[];
custom_token_chars: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ class NGramTokenizer extends TokenizerBase {
max_gram: integer;
min_gram: integer;
token_chars: TokenChar[];
custom_token_chars: string;
}
3 changes: 2 additions & 1 deletion specification/specs/analysis/tokenizers/n_gram/TokenChar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ enum TokenChar {
digit = 1,
whitespace = 2,
punctuation = 3,
symbol = 4
symbol = 4,
custom = 5
}
2 changes: 2 additions & 0 deletions specification/specs/cat/cat_aliases/CatAliasesRequest.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@rest_spec_name("cat.aliases")
class CatAliasesRequest extends RequestBase {
@request_parameter()
expand_wildcards: ExpandWildcards;
@request_parameter()
format: string;
@request_parameter()
Expand Down
12 changes: 12 additions & 0 deletions specification/specs/cat/cat_aliases/cat.aliases.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@
"type":"boolean",
"description":"Verbose mode. Display column headers",
"default":false
},
"expand_wildcards":{
"type":"enum",
"options":[
"open",
"closed",
"hidden",
"none",
"all"
],
"default": "all",
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
}
}
}
Expand Down
10 changes: 7 additions & 3 deletions specification/specs/cat/cat_allocation/CatAllocationRecord.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
class CatAllocationRecord implements ICatRecord {
diskAvail: string;
diskRatio: string;
diskUsed: string;
'disk.avail': string;
'disk.indices': string;
'disk.percent': string;
disk_ratio: string;
'disk.total': string;
'disk.used': string;
host: string;
ip: string;
node: string;
shards: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
class CatDataFrameAnalyticsRecord implements ICatRecord {
assignment_explanation: string;
create_time: string;
description: string;
dest_index: string;
failure_reason: string;
id: string;
model_memory_limit: string;
'node.address': string;
'node.ephemeral_id': string;
'node.id': string;
'node.name': string;
progress: string;
source_index: string;
state: string;
type: string;
version: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@rest_spec_name("cat.ml_data_frame_analytics")
class CatDataFrameAnalyticsRequest extends RequestBase {
@request_parameter()
allow_no_match: boolean;
@request_parameter()
bytes: Bytes;
@request_parameter()
format: string;
@request_parameter()
headers: string[];
@request_parameter()
help: boolean;
@request_parameter()
sort_by_columns: string[];
@request_parameter()
verbose: boolean;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class CatDataFrameAnalyticsResponse extends ResponseBase {
records: CatDataFrameAnalyticsRecord[];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"cat.ml_data_frame_analytics":{
"documentation":{
"url":"http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html",
"description": "Gets configuration and usage information about data frame analytics jobs."
},
"stability":"stable",
"url":{
"paths":[
{
"path":"/_cat/ml/data_frame/analytics",
"methods":[
"GET"
]
},
{
"path":"/_cat/ml/data_frame/analytics/{id}",
"methods":[
"GET"
],
"parts":{
"id":{
"type":"string",
"description":"The ID of the data frame analytics to fetch"
}
}
}
]
},
"params":{
"allow_no_match":{
"type":"boolean",
"required":false,
"description":"Whether to ignore if a wildcard expression matches no configs. (This includes `_all` string or when no configs have been specified)"
},
"bytes":{
"type":"enum",
"description":"The unit in which to display byte values",
"options":[
"b",
"k",
"kb",
"m",
"mb",
"g",
"gb",
"t",
"tb",
"p",
"pb"
]
},
"format":{
"type":"string",
"description":"a short version of the Accept header, e.g. json, yaml"
},
"h":{
"type":"list",
"description":"Comma-separated list of column names to display"
},
"help":{
"type":"boolean",
"description":"Return help information",
"default":false
},
"s":{
"type":"list",
"description":"Comma-separated list of column names or column aliases to sort by"
},
"time":{
"type":"enum",
"description":"The unit in which to display time values",
"options":[
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
]
},
"v":{
"type":"boolean",
"description":"Verbose mode. Display column headers",
"default":false
}
}
}
}
14 changes: 14 additions & 0 deletions specification/specs/cat/cat_datafeeds/CatDatafeedsRecord.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class CatDatafeedsRecord implements ICatRecord {
assignment_explanation: string;
'buckets.count': string;
id: string;
'node.address': string;
'node.ephemeral_id': string;
'node.id': string;
'node.name': string;
'search.bucket_avg': string;
'search.count': string;
'search.exp_avg_hour': string;
'search.time': string;
state: DatafeedState;
}
15 changes: 15 additions & 0 deletions specification/specs/cat/cat_datafeeds/CatDatafeedsRequest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@rest_spec_name("cat.ml_datafeeds")
class CatDatafeedsRequest extends RequestBase {
@request_parameter()
allow_no_datafeeds: boolean;
@request_parameter()
format: string;
@request_parameter()
headers: string[];
@request_parameter()
help: boolean;
@request_parameter()
sort_by_columns: string[];
@request_parameter()
verbose: boolean;
}
3 changes: 3 additions & 0 deletions specification/specs/cat/cat_datafeeds/CatDatafeedsResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class CatDatafeedsResponse extends ResponseBase {
records: CatDatafeedsRecord[];
}
Loading