diff --git a/Elastic.Abstractions.sln b/Elastic.Abstractions.sln
index 9cada97..da2ff04 100644
--- a/Elastic.Abstractions.sln
+++ b/Elastic.Abstractions.sln
@@ -21,8 +21,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elastic.Xunit.ExampleMinima
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elastic.Managed.Example", "examples\Elastic.Managed.Example\Elastic.Managed.Example.csproj", "{294F5209-AD64-4812-AA4E-C7B016927A0F}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nest.TypescriptExporter", "src\Nest.TypescriptExporter\Nest.TypescriptExporter.csproj", "{C05F7B36-EEF7-4BCD-86A2-F5F1BB8CFEB9}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elastic.Stack.ArtifactsApi", "src\Elastic.Stack.ArtifactsApi\Elastic.Stack.ArtifactsApi.csproj", "{80DE8673-CB3E-4D0B-99F4-A5CECF6BE752}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{77E78EDE-60D5-469A-B431-443A7966A243}"
@@ -62,7 +60,6 @@ Global
{0FCE020D-F4BD-4933-A0AB-27537EFA273E} = {77E78EDE-60D5-469A-B431-443A7966A243}
{681C6112-B885-4553-A06C-4CD9C262FC49} = {77E78EDE-60D5-469A-B431-443A7966A243}
{80DE8673-CB3E-4D0B-99F4-A5CECF6BE752} = {77E78EDE-60D5-469A-B431-443A7966A243}
- {C05F7B36-EEF7-4BCD-86A2-F5F1BB8CFEB9} = {77E78EDE-60D5-469A-B431-443A7966A243}
{D6997ADC-E933-418E-831C-DE1A78897493} = {F75ACC18-D314-4F1F-88A3-2002EAC4E207}
{9666AFDC-B0E8-489C-A25A-17E67303A969} = {9D154338-4AA8-40A9-A378-B27C05D45791}
EndGlobalSection
@@ -102,10 +99,6 @@ Global
{294F5209-AD64-4812-AA4E-C7B016927A0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{294F5209-AD64-4812-AA4E-C7B016927A0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{294F5209-AD64-4812-AA4E-C7B016927A0F}.Release|Any CPU.Build.0 = Release|Any CPU
- {C05F7B36-EEF7-4BCD-86A2-F5F1BB8CFEB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C05F7B36-EEF7-4BCD-86A2-F5F1BB8CFEB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C05F7B36-EEF7-4BCD-86A2-F5F1BB8CFEB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C05F7B36-EEF7-4BCD-86A2-F5F1BB8CFEB9}.Release|Any CPU.Build.0 = Release|Any CPU
{80DE8673-CB3E-4D0B-99F4-A5CECF6BE752}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{80DE8673-CB3E-4D0B-99F4-A5CECF6BE752}.Debug|Any CPU.Build.0 = Debug|Any CPU
{80DE8673-CB3E-4D0B-99F4-A5CECF6BE752}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/dotnet-tools.json b/dotnet-tools.json
index bd0c010..b03a447 100644
--- a/dotnet-tools.json
+++ b/dotnet-tools.json
@@ -6,25 +6,29 @@
"version": "4.3.0",
"commands": [
"minver"
- ]
+ ],
+ "rollForward": false
},
"assembly-differ": {
"version": "0.14.0",
"commands": [
"assembly-differ"
- ]
+ ],
+ "rollForward": false
},
"release-notes": {
"version": "0.5.2",
"commands": [
"release-notes"
- ]
+ ],
+ "rollForward": false
},
"nupkg-validator": {
- "version": "0.5.0",
+ "version": "0.7.0",
"commands": [
"nupkg-validator"
- ]
+ ],
+ "rollForward": false
}
}
}
\ No newline at end of file
diff --git a/examples/Elastic.Ephemeral.Example/Elastic.Ephemeral.Example.csproj b/examples/Elastic.Ephemeral.Example/Elastic.Ephemeral.Example.csproj
index e612ad6..351c5ef 100644
--- a/examples/Elastic.Ephemeral.Example/Elastic.Ephemeral.Example.csproj
+++ b/examples/Elastic.Ephemeral.Example/Elastic.Ephemeral.Example.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/examples/Elastic.Ephemeral.Example/Program.cs b/examples/Elastic.Ephemeral.Example/Program.cs
index f5c8fb1..3b05623 100644
--- a/examples/Elastic.Ephemeral.Example/Program.cs
+++ b/examples/Elastic.Ephemeral.Example/Program.cs
@@ -24,10 +24,13 @@
var pool = new StaticNodePool(cluster.NodesUris());
var transportConfig = new TransportConfiguration(pool, productRegistration: ElasticsearchProductRegistration.Default)
- .Authentication(new BasicAuthentication(Admin.Username, Admin.Password))
- .ServerCertificateValidationCallback(CertificateValidations.AllowAll);
-if (cluster.DetectedProxy != DetectedProxySoftware.None)
- transportConfig = transportConfig.Proxy(new Uri("http://localhost:8080/"), null!, null!);
+{
+ Authentication = new BasicAuthentication(Admin.Username, Admin.Password),
+ ServerCertificateValidationCallback = CertificateValidations.AllowAll,
+ ProxyAddress = cluster.DetectedProxy == DetectedProxySoftware.None
+ ? null
+ : "http://localhost:8080/"
+};
var transport = new DistributedTransport(transportConfig);
diff --git a/examples/Elastic.Xunit.ExampleComplex/ClusterTestClassBase.cs b/examples/Elastic.Xunit.ExampleComplex/ClusterTestClassBase.cs
index 5c4169d..08d820b 100644
--- a/examples/Elastic.Xunit.ExampleComplex/ClusterTestClassBase.cs
+++ b/examples/Elastic.Xunit.ExampleComplex/ClusterTestClassBase.cs
@@ -2,17 +2,17 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
+using Elastic.Clients.Elasticsearch;
using Elastic.Elasticsearch.Ephemeral;
using Elastic.Elasticsearch.Xunit.XunitPlumbing;
-using Nest;
namespace Elastic.Xunit.ExampleComplex
{
- public abstract class ClusterTestClassBase : IClusterFixture
+ public abstract class ClusterTestClassBase(TCluster cluster)
+ : IClusterFixture
where TCluster : IEphemeralCluster, IMyCluster, new()
{
- protected ClusterTestClassBase(TCluster cluster) => Cluster = cluster;
- public TCluster Cluster { get; }
- public IElasticClient Client => Cluster.Client;
+ public TCluster Cluster { get; } = cluster;
+ public ElasticsearchClient Client => Cluster.Client;
}
}
diff --git a/examples/Elastic.Xunit.ExampleComplex/Clusters.cs b/examples/Elastic.Xunit.ExampleComplex/Clusters.cs
index 7e51c93..c58039a 100644
--- a/examples/Elastic.Xunit.ExampleComplex/Clusters.cs
+++ b/examples/Elastic.Xunit.ExampleComplex/Clusters.cs
@@ -3,30 +3,30 @@
// See the LICENSE file in the project root for more information
using System.Collections.Concurrent;
+using Elastic.Clients.Elasticsearch;
using Elastic.Elasticsearch.Ephemeral;
using Elastic.Elasticsearch.Xunit;
-using Elasticsearch.Net;
-using Nest;
+using Elastic.Transport;
namespace Elastic.Xunit.ExampleComplex
{
internal static class EphemeralClusterExtensions
{
- private static readonly ConcurrentDictionary Clients = new();
+ private static readonly ConcurrentDictionary Clients = new();
- public static IElasticClient GetOrAddClient(this IEphemeralCluster cluster) =>
+ public static ElasticsearchClient GetOrAddClient(this IEphemeralCluster cluster) =>
Clients.GetOrAdd(cluster, c =>
{
- var connectionPool = new StaticConnectionPool(c.NodesUris());
- var settings = new ConnectionSettings(connectionPool);
- var client = new ElasticClient(settings);
+ var connectionPool = new StaticNodePool(c.NodesUris());
+ var settings = new ElasticsearchClientSettings(connectionPool);
+ var client = new ElasticsearchClient(settings);
return client;
});
}
public interface IMyCluster
{
- IElasticClient Client { get; }
+ ElasticsearchClient Client { get; }
}
public abstract class MyClusterBase() : XunitClusterBase(new XunitClusterConfiguration(MyRunOptions.TestVersion)
@@ -34,14 +34,14 @@ public abstract class MyClusterBase() : XunitClusterBase(new XunitClusterConfigu
ShowElasticsearchOutputAfterStarted = false,
}), IMyCluster
{
- public IElasticClient Client => this.GetOrAddClient();
+ public ElasticsearchClient Client => this.GetOrAddClient();
}
public class TestCluster : MyClusterBase
{
protected override void SeedCluster()
{
- var pluginsResponse = Client.CatPlugins();
+ var response = Client.Info();
}
}
@@ -51,11 +51,11 @@ public TestGenericCluster() : base(new XunitClusterConfiguration(MyRunOptions.Te
{
}
- public IElasticClient Client => this.GetOrAddClient();
+ public ElasticsearchClient Client => this.GetOrAddClient();
protected override void SeedCluster()
{
- var aliasesResponse = Client.CatAliases();
+ var response = Client.Info();
}
}
}
diff --git a/examples/Elastic.Xunit.ExampleComplex/Elastic.Xunit.ExampleComplex.csproj b/examples/Elastic.Xunit.ExampleComplex/Elastic.Xunit.ExampleComplex.csproj
index ddda97c..2a83554 100644
--- a/examples/Elastic.Xunit.ExampleComplex/Elastic.Xunit.ExampleComplex.csproj
+++ b/examples/Elastic.Xunit.ExampleComplex/Elastic.Xunit.ExampleComplex.csproj
@@ -5,15 +5,14 @@
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
+
diff --git a/examples/Elastic.Xunit.ExampleComplex/TestWithoutClusterFixture.cs b/examples/Elastic.Xunit.ExampleComplex/TestWithoutClusterFixture.cs
index 3fab22a..97dd2cc 100644
--- a/examples/Elastic.Xunit.ExampleComplex/TestWithoutClusterFixture.cs
+++ b/examples/Elastic.Xunit.ExampleComplex/TestWithoutClusterFixture.cs
@@ -15,7 +15,7 @@ public class TestWithoutClusterFixture
public void Test()
{
(1 + 1).Should().Be(2);
- var info = ElasticXunitRunner.CurrentCluster.GetOrAddClient().RootNodeInfo();
+ var info = ElasticXunitRunner.CurrentCluster.GetOrAddClient().Info();
info.Name.Should().NotBeNullOrWhiteSpace();
}
}
diff --git a/examples/Elastic.Xunit.ExampleComplex/Tests.cs b/examples/Elastic.Xunit.ExampleComplex/Tests.cs
index 1035a56..090e634 100644
--- a/examples/Elastic.Xunit.ExampleComplex/Tests.cs
+++ b/examples/Elastic.Xunit.ExampleComplex/Tests.cs
@@ -3,31 +3,25 @@
// See the LICENSE file in the project root for more information
using Elastic.Elasticsearch.Xunit.XunitPlumbing;
-using Elasticsearch.Net;
using FluentAssertions;
namespace Elastic.Xunit.ExampleComplex
{
- public class MyTestClass : ClusterTestClassBase
+ public class MyTestClass(TestCluster cluster)
+ : ClusterTestClassBase(cluster)
{
- public MyTestClass(TestCluster cluster) : base(cluster) { }
-
[I]
public void SomeTest()
{
- var info = Client.RootNodeInfo();
-
- info.IsValid.Should().BeTrue();
+ var info = Client.Info();
- Client.CreateIndex("INASda");
- Client.LowLevel.Search(PostData.Serializable(new {query = new {query_string = 1}}));
+ info.IsValidResponse.Should().BeTrue();
}
}
- public class Tests1 : ClusterTestClassBase
+ public class Tests1(TestCluster cluster)
+ : ClusterTestClassBase(cluster)
{
- public Tests1(TestCluster cluster) : base(cluster) { }
-
[U] public void Unit1Test() => (1 + 1).Should().Be(2);
[U] public void Unit1Test1() => (1 + 1).Should().Be(2);
[U] public void Unit1Test2() => (1 + 1).Should().Be(2);
@@ -67,9 +61,9 @@ public MyGenericTestClass(TestGenericCluster cluster) : base(cluster) { }
[I] public void SomeTest()
{
- var info = Client.RootNodeInfo();
+ var info = Client.Info();
- info.IsValid.Should().BeTrue();
+ info.IsValidResponse.Should().BeTrue();
}
[U] public void MyGenericUnitTest() => (1 + 1).Should().Be(2);
[U] public void MyGenericUnitTest1() => (1 + 1).Should().Be(2);
@@ -81,16 +75,15 @@ [I] public void SomeTest()
}
[SkipVersion("<6.2.0", "")]
- public class SkipTestClass : ClusterTestClassBase
+ public class SkipTestClass(TestGenericCluster cluster)
+ : ClusterTestClassBase(cluster)
{
- public SkipTestClass(TestGenericCluster cluster) : base(cluster) { }
-
[I]
public void SomeTest()
{
- var info = Client.RootNodeInfo();
+ var info = Client.Info();
- info.IsValid.Should().BeTrue();
+ info.IsValidResponse.Should().BeTrue();
}
[U]
@@ -99,7 +92,7 @@ public void SomeTest()
public class DirectInterfaceTests : IClusterFixture
{
- public DirectInterfaceTests(TestGenericCluster cluster) { }
+ public DirectInterfaceTests(TestGenericCluster _) { }
[U]
public void DirectUnitTest() => (1 + 1).Should().Be(2);
diff --git a/examples/Elastic.Xunit.ExampleMinimal/Elastic.Xunit.ExampleMinimal.csproj b/examples/Elastic.Xunit.ExampleMinimal/Elastic.Xunit.ExampleMinimal.csproj
index 71630d4..0d99b8c 100644
--- a/examples/Elastic.Xunit.ExampleMinimal/Elastic.Xunit.ExampleMinimal.csproj
+++ b/examples/Elastic.Xunit.ExampleMinimal/Elastic.Xunit.ExampleMinimal.csproj
@@ -4,14 +4,14 @@
False
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
diff --git a/examples/Elastic.Xunit.ExampleMinimal/ExampleTest.cs b/examples/Elastic.Xunit.ExampleMinimal/ExampleTest.cs
index ca861a1..2caa754 100644
--- a/examples/Elastic.Xunit.ExampleMinimal/ExampleTest.cs
+++ b/examples/Elastic.Xunit.ExampleMinimal/ExampleTest.cs
@@ -2,11 +2,11 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
+using Elastic.Clients.Elasticsearch;
using Elastic.Elasticsearch.Xunit;
using Elastic.Elasticsearch.Xunit.XunitPlumbing;
-using Elasticsearch.Net;
+using Elastic.Transport;
using FluentAssertions;
-using Nest;
using Xunit;
// we need to put this assembly attribute in place for xunit to use our custom test execution pipeline
@@ -21,7 +21,7 @@ public class MyTestCluster : XunitClusterBase
/// We pass our configuration instance to the base class.
/// We only configure it to run version 6.2.3 here but lots of additional options are available.
///
- public MyTestCluster() : base(new XunitClusterConfiguration("latest-8"))
+ public MyTestCluster() : base(new XunitClusterConfiguration("latest-9"))
{
}
}
@@ -40,19 +40,19 @@ public ExampleTest(MyTestCluster cluster) =>
Client = cluster.GetOrAddClient(c =>
{
var nodes = cluster.NodesUris();
- var connectionPool = new StaticConnectionPool(nodes);
- var settings = new ConnectionSettings(connectionPool)
+ var connectionPool = new StaticNodePool(nodes);
+ var settings = new ElasticsearchClientSettings(connectionPool)
.EnableDebugMode();
- return new ElasticClient(settings);
+ return new ElasticsearchClient(settings);
});
- private ElasticClient Client { get; }
+ private ElasticsearchClient Client { get; }
/// [I] marks an integration test (like [Fact] would for plain Xunit)
[I]
public void SomeTest()
{
- var rootNodeInfo = Client.RootNodeInfo();
+ var rootNodeInfo = Client.Info();
rootNodeInfo.Name.Should().NotBeNullOrEmpty();
}
diff --git a/examples/ScratchPad/Program.cs b/examples/ScratchPad/Program.cs
index dabd8eb..d9420f3 100644
--- a/examples/ScratchPad/Program.cs
+++ b/examples/ScratchPad/Program.cs
@@ -6,13 +6,13 @@
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
+using Elastic.Clients.Elasticsearch;
using Elastic.Elasticsearch.Ephemeral;
using Elastic.Elasticsearch.Ephemeral.Plugins;
using Elastic.Stack.ArtifactsApi;
using Elastic.Stack.ArtifactsApi.Products;
using Elastic.Stack.ArtifactsApi.Resolvers;
-using Elasticsearch.Net;
-using Nest;
+using Elastic.Transport;
using static Elastic.Elasticsearch.Ephemeral.ClusterFeatures;
using HttpMethod = System.Net.Http.HttpMethod;
@@ -51,15 +51,19 @@ private static void ManualConfigRun()
cluster.Start();
var nodes = cluster.NodesUris();
- var connectionPool = new StaticConnectionPool(nodes);
- var settings = new ConnectionSettings(connectionPool).EnableDebugMode();
+ var connectionPool = new StaticNodePool(nodes);
+ var settings = new ElasticsearchClientSettings(connectionPool).EnableDebugMode();
if (config.EnableSecurity)
- settings = settings.BasicAuthentication(ClusterAuthentication.Admin.Username,
- ClusterAuthentication.Admin.Password);
+ {
+ settings = settings.Authentication(
+ new BasicAuthentication(ClusterAuthentication.Admin.Username, ClusterAuthentication.Admin.Password)
+ );
+ }
+
if (config.EnableSsl)
settings = settings.ServerCertificateValidationCallback(CertificateValidations.AllowAll);
- var client = new ElasticClient(settings);
+ var client = new ElasticsearchClient(settings);
var clusterConfiguration = new Dictionary()
{
@@ -68,13 +72,7 @@ private static void ManualConfigRun()
};
- var putSettingsResponse = client.ClusterPutSettings(new ClusterPutSettingsRequest
- {
- Transient = clusterConfiguration
- });
-
-
- Console.Write(client.XPackInfo().DebugInformation);
+ Console.Write(client.Xpack.Info().DebugInformation);
Console.WriteLine("Press any key to exit");
Console.ReadKey();
Console.WriteLine("Exitting..");
@@ -107,7 +105,7 @@ private static void ResolveVersions()
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write($"\t{p.Moniker}");
Console.ForegroundColor = ConsoleColor.Cyan;
- Console.Write($"\t\t{r.ArtifactBuildState.GetStringValue()}");
+ Console.Write($"\t\t{r.ArtifactBuildState}");
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine($"\t{a?.BuildHash}");
Console.ForegroundColor = ConsoleColor.Blue;
diff --git a/examples/ScratchPad/ScratchPad.csproj b/examples/ScratchPad/ScratchPad.csproj
index 9810b28..444bde4 100644
--- a/examples/ScratchPad/ScratchPad.csproj
+++ b/examples/ScratchPad/ScratchPad.csproj
@@ -5,9 +5,9 @@
False
+
-
diff --git a/examples/ScratchPad/ValidateCombinations.cs b/examples/ScratchPad/ValidateCombinations.cs
index acb3c78..6494306 100644
--- a/examples/ScratchPad/ValidateCombinations.cs
+++ b/examples/ScratchPad/ValidateCombinations.cs
@@ -3,11 +3,11 @@
// See the LICENSE file in the project root for more information
using System;
+using Elastic.Clients.Elasticsearch;
using Elastic.Elasticsearch.Ephemeral;
using Elastic.Elasticsearch.Ephemeral.Plugins;
using Elastic.Stack.ArtifactsApi.Products;
-using Elasticsearch.Net;
-using Nest;
+using Elastic.Transport;
namespace ScratchPad
{
@@ -40,35 +40,38 @@ public static void Run()
Console.ForegroundColor = reset;
var config = new EphemeralClusterConfiguration(v, f, plugins, 1) {AutoWireKnownProxies = true,};
- using (var cluster = new EphemeralCluster(config))
- try
- {
- cluster.Start();
-
- var nodes = cluster.NodesUris();
- var connectionPool = new StaticConnectionPool(nodes);
- var settings = new ConnectionSettings(connectionPool).EnableDebugMode();
- if (config.EnableSecurity)
- settings = settings.BasicAuthentication(ClusterAuthentication.Admin.Username,
- ClusterAuthentication.Admin.Password);
- if (config.EnableSsl)
- settings = settings.ServerCertificateValidationCallback(CertificateValidations.AllowAll);
+ using var cluster = new EphemeralCluster(config);
+ try
+ {
+ cluster.Start();
- var client = new ElasticClient(settings);
- Console.WriteLine(client.RootNodeInfo().Version.Number);
- cluster.Dispose();
- cluster.WaitForExit(TimeSpan.FromMinutes(1));
- }
- catch (Exception e)
+ var nodes = cluster.NodesUris();
+ var connectionPool = new StaticNodePool(nodes);
+ var settings = new ElasticsearchClientSettings(connectionPool).EnableDebugMode();
+ if (config.EnableSecurity)
{
- Console.WriteLine(e);
- Console.ForegroundColor = ConsoleColor.Cyan;
- Console.WriteLine($"{v} {f}");
+ settings = settings.Authentication(
+ new BasicAuthentication(ClusterAuthentication.Admin.Username, ClusterAuthentication.Admin.Password)
+ );
+ }
+ if (config.EnableSsl)
+ settings = settings.ServerCertificateValidationCallback(CertificateValidations.AllowAll);
- Console.ForegroundColor = reset;
+ var client = new ElasticsearchClient(settings);
+ Console.WriteLine(client.Info().Version.Number);
+ cluster.Dispose();
+ cluster.WaitForExit(TimeSpan.FromMinutes(1));
+ }
+ catch (Exception e)
+ {
+ Console.WriteLine(e);
+ Console.ForegroundColor = ConsoleColor.Cyan;
+ Console.WriteLine($"{v} {f}");
- throw;
- }
+ Console.ForegroundColor = reset;
+
+ throw;
+ }
}
Console.WriteLine("Done!");
diff --git a/src/Elastic.Elasticsearch.Ephemeral/Elastic.Elasticsearch.Ephemeral.csproj b/src/Elastic.Elasticsearch.Ephemeral/Elastic.Elasticsearch.Ephemeral.csproj
index ad351d1..31a3f21 100644
--- a/src/Elastic.Elasticsearch.Ephemeral/Elastic.Elasticsearch.Ephemeral.csproj
+++ b/src/Elastic.Elasticsearch.Ephemeral/Elastic.Elasticsearch.Ephemeral.csproj
@@ -1,12 +1,12 @@
- netstandard2.0;netstandard2.1;net462
+ netstandard2.0;netstandard2.1;net462;net8.0
Provides an EphemeralCluster implementation that can download/bootstrap/run a throwaway customizable Elasticsearch cluster
elastic,elasticsearch,cluster,ephemeral
-
+
diff --git a/src/Elastic.Elasticsearch.Ephemeral/EphemeralCluster.cs b/src/Elastic.Elasticsearch.Ephemeral/EphemeralCluster.cs
index 4f64e16..5ea9adf 100644
--- a/src/Elastic.Elasticsearch.Ephemeral/EphemeralCluster.cs
+++ b/src/Elastic.Elasticsearch.Ephemeral/EphemeralCluster.cs
@@ -107,7 +107,11 @@ protected override string SeeLogsMessage(string message)
public static string CalculateSha1(string text, Encoding enc)
{
var buffer = enc.GetBytes(text);
+#if NET8_0_OR_GREATER
+ var cryptoTransformSha1 = SHA1.Create();
+#else
var cryptoTransformSha1 = new SHA1CryptoServiceProvider();
+#endif
return BitConverter.ToString(cryptoTransformSha1.ComputeHash(buffer))
.Replace("-", "").ToLowerInvariant().Substring(0, 12);
}
diff --git a/src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs b/src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs
index c6e4184..6ccd063 100644
--- a/src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs
+++ b/src/Elastic.Elasticsearch.Ephemeral/Tasks/IClusterComposeTask.cs
@@ -226,7 +226,7 @@ protected static void Extract(string file, string toFolder)
private static void ExtractTar(string file, string toFolder)
{
using var inStream = File.OpenRead(file);
- using var tarArchive = TarArchive.CreateInputTarArchive(inStream);
+ using var tarArchive = TarArchive.CreateInputTarArchive(inStream, Encoding.UTF8);
tarArchive.ExtractContents(toFolder);
}
@@ -236,7 +236,7 @@ private static void ExtractTarGz(string file, string toFolder)
{
using var inStream = File.OpenRead(file);
using var gzipStream = new GZipInputStream(inStream);
- using var tarArchive = TarArchive.CreateInputTarArchive(gzipStream);
+ using var tarArchive = TarArchive.CreateInputTarArchive(gzipStream, Encoding.UTF8);
tarArchive.ExtractContents(toFolder);
}
else
diff --git a/src/Elastic.Elasticsearch.Managed/Elastic.Elasticsearch.Managed.csproj b/src/Elastic.Elasticsearch.Managed/Elastic.Elasticsearch.Managed.csproj
index 5ab042f..b98666a 100644
--- a/src/Elastic.Elasticsearch.Managed/Elastic.Elasticsearch.Managed.csproj
+++ b/src/Elastic.Elasticsearch.Managed/Elastic.Elasticsearch.Managed.csproj
@@ -1,7 +1,7 @@
- netstandard2.0;netstandard2.1;net462
+ netstandard2.0;netstandard2.1;net462;net8.0
Provides an observable ElasticsearchNode abstraction that can be used to wrap an elasticsearch process.
Also ships with an cluster abstraction that can start one or more ElasticsearchNode's
diff --git a/src/Elastic.Elasticsearch.Xunit/Elastic.Elasticsearch.Xunit.csproj b/src/Elastic.Elasticsearch.Xunit/Elastic.Elasticsearch.Xunit.csproj
index 0f66301..2d3adc5 100644
--- a/src/Elastic.Elasticsearch.Xunit/Elastic.Elasticsearch.Xunit.csproj
+++ b/src/Elastic.Elasticsearch.Xunit/Elastic.Elasticsearch.Xunit.csproj
@@ -1,6 +1,6 @@
- netstandard2.0;netstandard2.1;net462
+ netstandard2.0;netstandard2.1;net462;net8.0
True
False
Provides an Xunit test framework allowing you to run integration tests against local ephemeral Elasticsearch clusters
diff --git a/src/Elastic.Elasticsearch.Xunit/README.md b/src/Elastic.Elasticsearch.Xunit/README.md
index e25a768..e5472f5 100644
--- a/src/Elastic.Elasticsearch.Xunit/README.md
+++ b/src/Elastic.Elasticsearch.Xunit/README.md
@@ -25,7 +25,7 @@ from core but you can also use a full framework project.
-
+
```
diff --git a/src/Elastic.Stack.ArtifactsApi/Elastic.Stack.ArtifactsApi.csproj b/src/Elastic.Stack.ArtifactsApi/Elastic.Stack.ArtifactsApi.csproj
index 5cc40ff..f0d4157 100644
--- a/src/Elastic.Stack.ArtifactsApi/Elastic.Stack.ArtifactsApi.csproj
+++ b/src/Elastic.Stack.ArtifactsApi/Elastic.Stack.ArtifactsApi.csproj
@@ -1,15 +1,17 @@
- netstandard2.0;net462
+ netstandard2.0;net462;net8.0
Provides a set of classes to resolve the location of Elastic stack products in various stages: released, snapshot and build candidates
elastic,elasticsearch,stack,versioning,artifacts
-
-
+
+
+
+
diff --git a/src/Elastic.Stack.ArtifactsApi/ElasticVersion.cs b/src/Elastic.Stack.ArtifactsApi/ElasticVersion.cs
index b461d56..22611f0 100644
--- a/src/Elastic.Stack.ArtifactsApi/ElasticVersion.cs
+++ b/src/Elastic.Stack.ArtifactsApi/ElasticVersion.cs
@@ -7,7 +7,6 @@
using Elastic.Stack.ArtifactsApi.Platform;
using Elastic.Stack.ArtifactsApi.Products;
using Elastic.Stack.ArtifactsApi.Resolvers;
-using SemVer;
using Version = SemVer.Version;
namespace Elastic.Stack.ArtifactsApi
@@ -118,11 +117,11 @@ internal static bool TryParseBuildCandidate(string passedVersion, out string ver
public bool InRange(string range)
{
- var versionRange = new Range(range);
+ var versionRange = new SemVer.Range(range);
return InRange(versionRange);
}
- public bool InRange(Range versionRange)
+ public bool InRange(SemVer.Range versionRange)
{
var satisfied = versionRange.IsSatisfied(this);
if (satisfied)
diff --git a/src/Elastic.Stack.ArtifactsApi/Resolvers/SnapshotApiResolver.cs b/src/Elastic.Stack.ArtifactsApi/Resolvers/SnapshotApiResolver.cs
index cf42be5..8b4e418 100644
--- a/src/Elastic.Stack.ArtifactsApi/Resolvers/SnapshotApiResolver.cs
+++ b/src/Elastic.Stack.ArtifactsApi/Resolvers/SnapshotApiResolver.cs
@@ -11,7 +11,6 @@
using System.Threading;
using Elastic.Stack.ArtifactsApi.Platform;
using Elastic.Stack.ArtifactsApi.Products;
-using SemVer;
using Version = SemVer.Version;
namespace Elastic.Stack.ArtifactsApi.Resolvers
@@ -90,7 +89,7 @@ private static IReadOnlyCollection LoadVersions()
public static Version LatestSnapshotForMajor(int major)
{
- var range = new Range($"~{major}");
+ var range = new SemVer.Range($"~{major}");
return AvailableVersions.Value
.Reverse()
.FirstOrDefault(v =>
@@ -99,7 +98,7 @@ public static Version LatestSnapshotForMajor(int major)
public static Version LatestReleaseOrSnapshotForMajor(int major)
{
- var range = new Range($"~{major}");
+ var range = new SemVer.Range($"~{major}");
return AvailableVersions.Value
.Reverse()
.FirstOrDefault(v => range.IsSatisfied(v.ToString().Replace("-SNAPSHOT", "")));
diff --git a/src/Nest.TypescriptExporter/CSharpSourceDirectory.cs b/src/Nest.TypescriptExporter/CSharpSourceDirectory.cs
deleted file mode 100644
index dbceab8..0000000
--- a/src/Nest.TypescriptExporter/CSharpSourceDirectory.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text.RegularExpressions;
-
-namespace Nest.TypescriptGenerator
-{
- public class CSharpSourceDirectory
- {
- private static readonly string[] SkipFolders = {"_Generated", "Debug", "Release"};
-
- public CSharpSourceDirectory(string directory)
- {
- var csharpSourceFiles = InputFiles(directory).SelectMany(r => r.Declarations, (r, s) => new {r, s});
- foreach (var f in csharpSourceFiles)
- {
- if (TypeNameToNamespaceMapping.ContainsKey(f.s) &&
- (f.s.EndsWith("Request") || f.s.EndsWith("Descriptor")))
- continue;
- if (TypeNameToNamespaceMapping.ContainsKey(f.s)) continue;
- TypeNameToNamespaceMapping.Add(f.s, f.r.Namespace);
- }
- }
-
- public Dictionary TypeNameToNamespaceMapping { get; } = new Dictionary();
-
- private static IEnumerable InputFiles(string directory) =>
- from f in Directory.GetFiles(directory, $"*.cs", SearchOption.AllDirectories)
- let dir = new DirectoryInfo(f)
- where dir?.Parent != null && !SkipFolders.Contains(dir.Parent.Name)
- let fi = new FileInfo(f)
- where !Regex.IsMatch(fi.Name, $@"(Requests|Descriptors)\..*?\.cs")
- select new CSharpSourceFile(fi);
- }
-}
diff --git a/src/Nest.TypescriptExporter/CSharpSourceFile.cs b/src/Nest.TypescriptExporter/CSharpSourceFile.cs
deleted file mode 100644
index f43e191..0000000
--- a/src/Nest.TypescriptExporter/CSharpSourceFile.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using Microsoft.CodeAnalysis.CSharp;
-using Microsoft.CodeAnalysis.CSharp.Syntax;
-
-namespace Nest.TypescriptGenerator
-{
- public class CSharpSourceFile : CSharpSyntaxWalker
- {
- public CSharpSourceFile(FileInfo fileInfo)
- {
- var code = File.ReadAllText(fileInfo.FullName);
- var namespaces = new List();
- var dirInfo = fileInfo.Directory;
- do
- {
- namespaces.Add(dirInfo.Name);
- dirInfo = dirInfo.Parent;
- } while (dirInfo != null && dirInfo.Name != "src");
-
- namespaces.Reverse();
- namespaces.Remove("Nest");
- Namespace = string.Join(".", namespaces);
-
- var ast = CSharpSyntaxTree.ParseText(code);
- Visit(ast.GetRoot());
- }
-
- public string Namespace { get; }
- public List Declarations { get; } = new List();
-
- private string[] Skip { get; } = {"IElasticClient", "ElasticClient"};
-
- public override void VisitClassDeclaration(ClassDeclarationSyntax node)
- {
- var c = node.Identifier.Text;
- if (!Skip.Contains(c)) Declarations.Add(c);
- base.VisitClassDeclaration(node);
- }
-
- public override void VisitInterfaceDeclaration(InterfaceDeclarationSyntax node)
- {
- var c = node.Identifier.Text;
- if (!Skip.Contains(c)) Declarations.Add(c);
- base.VisitInterfaceDeclaration(node);
- }
-
- public override void VisitEnumDeclaration(EnumDeclarationSyntax node)
- {
- var c = node.Identifier.Text;
- if (!Skip.Contains(c)) Declarations.Add(c);
- base.VisitEnumDeclaration(node);
- }
- }
-}
diff --git a/src/Nest.TypescriptExporter/ClientTypesExporter.cs b/src/Nest.TypescriptExporter/ClientTypesExporter.cs
deleted file mode 100644
index 8034e1c..0000000
--- a/src/Nest.TypescriptExporter/ClientTypesExporter.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Reflection;
-using System.Text.RegularExpressions;
-using Elasticsearch.Net;
-using TypeLite;
-using TypeLite.TsModels;
-
-namespace Nest.TypescriptGenerator
-{
- public class ClientTypesExporter
- {
- public static readonly Regex InterfaceRegex = new Regex("(?-i)^I[A-Z].*$");
- private readonly TypeScriptFluent _definitions;
- private readonly ClientTypescriptGenerator _scriptGenerator;
-
- public ClientTypesExporter(CsharpTypeInfoProvider typeInfoProvider, ClientTypescriptGenerator scriptGenerator)
- {
- _scriptGenerator = scriptGenerator;
- var d = TypeScript.Definitions(scriptGenerator)
- .WithTypeFormatter(FormatType)
- .WithMemberFormatter(FormatMember)
- .WithMemberTypeFormatter(FormatMemberType)
- .WithVisibility((@class, name) => false)
- .AsConstEnums(false)
- .For()
- .For()
- .WithModuleNameFormatter(module => string.Empty);
-
- _definitions = typeInfoProvider.ExposedTypes.Aggregate(d, (def, t) => def.For(t));
- }
-
- public static Regex RemoveGeneric { get; } = new Regex(@"^(.+)(?:\`.+)$");
-
- public string Generate() => _definitions.Generate();
-
- private static string FormatMemberType(TsProperty tsProperty, string memberTypeName)
- {
- if (memberTypeName == nameof(Error)) return nameof(MainError);
-
- var asCollection = tsProperty.PropertyType as TsCollection;
- var isCollection = asCollection != null;
- if (typeof(IIsADictionary).IsAssignableFrom(tsProperty.PropertyType.Type)) return memberTypeName;
-
- return memberTypeName.StartsWith("Dictionary<")
- ? memberTypeName
- : memberTypeName + (isCollection ? string.Concat(Enumerable.Repeat("[]", asCollection.Dimension)) : "");
- }
-
- private static string FormatMember(TsProperty property)
- {
- var declaringType = property.MemberInfo.DeclaringType;
- var propertyName = property.MemberInfo.Name;
-
- if (declaringType == null) return propertyName.SnakeCase().QuoteMaybe();
- var iface = declaringType.GetInterfaces().FirstOrDefault(ii => ii.Name == "I" + declaringType.Name);
- var ifaceProperty = iface?.GetProperty(propertyName);
-
- var attributes = new List();
- if (ifaceProperty != null) attributes.AddRange(ifaceProperty.GetCustomAttributes());
- attributes.AddRange(property.MemberInfo.GetCustomAttributes());
- if (attributes.Any(a => a.TypeId.ToString() == "System.Runtime.Serialization.IgnoreDataMemberAttribute"))
- property.IsIgnored = true;
-
- //if (attributes.Any(a => a.TypeId.ToString() == "System.Runtime.Serialization.DataMemberAttribute"))
- // property.IsIgnored = true;
-
- var jsonPropertyAttribute =
- attributes.FirstOrDefault(a => a.TypeId.ToString() == "Nest.Json.JsonPropertyAttribute");
- if (jsonPropertyAttribute != null)
- {
- var v = jsonPropertyAttribute.GetType().GetProperty("PropertyName").GetGetMethod()
- .Invoke(jsonPropertyAttribute, new object[] { });
- return ((string) v ?? propertyName.SnakeCase()).QuoteMaybe();
- }
-
- var dataMemberAtt = attributes.FirstOrDefault(a =>
- a.TypeId.ToString() == "System.Runtime.Serialization.DataMemberAttribute");
- if (dataMemberAtt != null)
- {
- var v = dataMemberAtt.GetType().GetProperty("Name").GetGetMethod()
- .Invoke(dataMemberAtt, new object[] { });
- return ((string) v ?? propertyName.SnakeCase()).QuoteMaybe();
- }
-
- return propertyName.SnakeCase().QuoteMaybe();
- }
-
- private string FormatType(TsType type, ITsTypeFormatter formatter) => GenerateTypeName(type);
-
- private string GenerateTypeName(TsType type)
- {
- var tsClass = (TsClass) type;
-
- var name = ClientTypescriptGenerator.TypeRenames.ContainsKey(tsClass.Name)
- ? ClientTypescriptGenerator.TypeRenames[tsClass.Name]
- : tsClass.Name;
-
- if (type.Type == typeof(HistogramOrder)) return "HistogramOrder";
-
- if (InterfaceRegex.IsMatch(name) && !CsharpTypeInfoProvider.ExposedInterfaces.Contains(type.Type))
- name = name.Substring(1);
-
- if (!tsClass.GenericArguments.Any()) return name;
-
- return name + "<" + string.Join(", ", tsClass.GenericArguments.Select(WriteArrayIfCollection)) + ">";
- }
-
- private string WriteArrayIfCollection(TsType a)
- {
- var fullyQualifiedTypeName = _scriptGenerator.GetFullyQualifiedTypeName(a);
- if (typeof(IIsADictionary).IsAssignableFrom(a.Type)) return fullyQualifiedTypeName;
- if (a is TsCollection)
- {
- }
-
- return a is TsCollection && !fullyQualifiedTypeName.StartsWith("Dictionary<")
- ? fullyQualifiedTypeName + "[]"
- : fullyQualifiedTypeName;
- }
- }
-}
diff --git a/src/Nest.TypescriptExporter/ClientTypescriptGenerator.cs b/src/Nest.TypescriptExporter/ClientTypescriptGenerator.cs
deleted file mode 100644
index ed51284..0000000
--- a/src/Nest.TypescriptExporter/ClientTypescriptGenerator.cs
+++ /dev/null
@@ -1,502 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System.Collections.Generic;
-using Elasticsearch.Net;
-using System;
-using System.IO;
-using System.Linq;
-using System.Linq.Expressions;
-using System.Reflection;
-using System.Runtime.Serialization;
-using System.Text.RegularExpressions;
-using TypeLite;
-using TypeLite.TsModels;
-
-namespace Nest.TypescriptGenerator
-{
- public class ClientTypescriptGenerator : TsGenerator
- {
- private readonly CsharpTypeInfoProvider _typeInfoProvider;
- private readonly CSharpSourceDirectory _sourceDirectory;
- private readonly RestSpec _restSpec;
-
- public ClientTypescriptGenerator(CsharpTypeInfoProvider typeInfoProvider, CSharpSourceDirectory sourceDirectory, RestSpec restSpec)
- {
- _typeInfoProvider = typeInfoProvider;
- _sourceDirectory = sourceDirectory;
- _restSpec = restSpec;
- }
-
- public static Dictionary TypeRenames => new Dictionary
- {
- {"KeyValuePair", "Dictionary"}
- };
-
- private readonly HashSet _appended = new HashSet();
- private readonly HashSet _propertyTypesToIgnore = new HashSet(new[]
- {
- typeof (PropertyInfo),
- typeof (Expression),
- typeof (Type),
- typeof (Exception),
- typeof (IApiCallDetails),
- typeof (Node),
- typeof (RequestConfiguration),
- typeof (IRequestConfiguration),
- });
-
- private readonly HashSet _typesToIgnore = new HashSet(new[]
- {
- typeof (IApiCallDetails),
- typeof (Node),
- typeof (Audit),
- typeof (AuditEvent),
- typeof (IConnectionConfigurationValues),
- typeof (BasicAuthenticationCredentials),
- typeof (ApiKeyAuthenticationCredentials),
- typeof (RequestConfiguration),
- typeof (IRequestConfiguration),
- typeof (IRequest),
- typeof (Indices.AllIndicesMarker),
-#pragma warning disable 618
- typeof (AllField),
-#pragma warning restore 618
- typeof (Indices.ManyIndices),
- typeof (PostType),
- typeof (IDescriptor),
- });
-
- private readonly Dictionary _typesPropertiesToIgnore = new Dictionary
- {
- { typeof(IResponse), new [] { nameof(IResponse.IsValid), nameof(IResponse.DebugInformation) } }
- };
-
-
- private bool PropertyTypesToIgnore(Type propertyType) => _propertyTypesToIgnore.Contains(propertyType) || (propertyType.BaseType != null && propertyType.BaseType == typeof (MulticastDelegate));
-
- protected override void AppendClassDefinition(TsClass classModel, ScriptBuilder sb, TsGeneratorOutput generatorOutput)
- {
- if (classModel.Name == "ConnectionConfigurationValues") return;
- if (classModel.Name == "RequestData") return;
- if (classModel.Name == "ISortOrder") return;
-
- if (classModel.Type.IsInterface && CsharpTypeInfoProvider.ExposedInterfaces.Contains(classModel.Type))
- {
- AppendInterfaceDef(classModel, sb, generatorOutput);
- }
- else AppendClassDef(classModel, sb, generatorOutput);
-
- }
- private void AppendInterfaceDef(TsClass classModel, ScriptBuilder sb, TsGeneratorOutput generatorOutput)
- {
- AddNamespaceHeaderEnum(classModel.Name,classModel.Type.Assembly.FullName, sb);
-
- var typeName = GetTypeName(classModel);
- var visibility = GetTypeVisibility(classModel, typeName) ? "export " : "";
-
- _docAppender.AppendClassDoc(sb, classModel, typeName);
-
- sb.AppendFormatIndented("{0}interface {1}", visibility, typeName);
- if (classModel.BaseType != null)
- sb.AppendFormat(" extends {0}", GetFullyQualifiedTypeName(classModel.BaseType));
-
- var interfaces = classModel.Interfaces.Where(m => CsharpTypeInfoProvider.ExposedInterfaces.Contains(m.Type)).ToList();
- if (interfaces.Count > 0)
- {
- var implementations = interfaces.Select(GetFullyQualifiedTypeName).ToArray();
- var prefixFormat = " implements {0}";
-
- sb.AppendFormat(prefixFormat, string.Join(" ,", implementations));
- }
-
- sb.AppendLine(" {");
-
- GenerateProperties(classModel, sb, generatorOutput);
-
- sb.AppendLineIndented("}");
- _generatedClasses.Add(classModel);
- }
-
- private void AppendClassDef(TsClass classModel, ScriptBuilder sb, TsGeneratorOutput generatorOutput)
- {
- AddNamespaceHeader(classModel.Name, sb);
-
- var typeName = GetTypeName(classModel);
- var visibility = GetTypeVisibility(classModel, typeName) ? "export " : "";
-
- AddRequestRenameInformation(sb, classModel);
- AddDocCommentForCustomJsonConverter(sb, classModel);
- _docAppender.AppendClassDoc(sb, classModel, typeName);
-
- sb.AppendFormatIndented("{0}class {1}", visibility, typeName);
- if (CsharpTypeInfoProvider.StringAbstractions.Contains(classModel.Type))
- {
- sb.AppendLineIndented(" extends String {}");
- return;
- }
-
- void EnforceBaseClass(bool force = false)
- {
- if (!force && classModel.BaseType != null) return;
- if (classModel.Type == typeof(TBase)) return;
- if (typeof(TInterface).IsAssignableFrom(classModel.Type)) classModel.BaseType = new TsClass(typeof(TBase));
- }
-
- EnforceBaseClass();
- EnforceBaseClass();
- EnforceBaseClass();
- EnforceBaseClass();
- EnforceBaseClass();
- EnforceBaseClass();
- EnforceBaseClass(true);
-
- if (classModel.BaseType != null)
- {
- sb.AppendFormat(" extends {0}", GetFullyQualifiedTypeName(classModel.BaseType));
- }
-
- var interfaces = classModel.Interfaces.Where(m => CsharpTypeInfoProvider.ExposedInterfaces.Contains(m.Type)).ToList();
- if (interfaces.Count > 0)
- {
- var implementations = interfaces.Select(GetFullyQualifiedTypeName).ToArray();
- var prefixFormat = " implements {0}";
-
- sb.AppendFormat(prefixFormat, string.Join(" ,", implementations));
- }
-
- sb.AppendLine(" {");
-
- GenerateProperties(classModel, sb, generatorOutput);
-
- sb.AppendLineIndented("}");
- _generatedClasses.Add(classModel);
-
- //generate a closed cat response type (NEST uses catresponse for all)
- if (typeof(ICatRecord).IsAssignableFrom(classModel.Type))
- {
- var catResponseName = classModel.Type.Name.Replace("Record", "Response");
- AddNamespaceHeader(classModel.Name, sb);
- sb.AppendLineIndented($"class {catResponseName} extends ResponseBase {{");
- using (sb.IncreaseIndentation())
- sb.AppendLineIndented($"records: {typeName}[];");
- sb.AppendLineIndented("}");
- }
- }
-
- private void GenerateProperties(TsClass classModel, ScriptBuilder sb, TsGeneratorOutput generatorOutput)
- {
- var members = new List();
- if ((generatorOutput & TsGeneratorOutput.Properties) == TsGeneratorOutput.Properties) members.AddRange(classModel.Properties);
- if ((generatorOutput & TsGeneratorOutput.Fields) == TsGeneratorOutput.Fields) members.AddRange(classModel.Fields);
-
- using (sb.IncreaseIndentation())
- {
- foreach (var property in members)
- {
- if (property.Name == "IsValid") continue;
- if (property.IsIgnored ||
- PropertyTypesToIgnore(property.PropertyType.Type) ||
- (_typesPropertiesToIgnore.ContainsKey(classModel.Type) && _typesPropertiesToIgnore[classModel.Type].Contains(property.Name)))
- continue;
-
- AddDocCommentForCustomJsonConverter(sb, property);
- _docAppender.AppendPropertyDoc(sb, property, GetPropertyName(property), GetPropertyType(property));
- sb.AppendLineIndented($"{GetPropertyName(property)}: {GetPropertyType(property)};");
- }
-
- if (classModel.Type == typeof(PropertyBase)) sb.AppendLineIndented($"type: string;");
- }
- }
-
- private bool AddNamespaceHeaderEnum(string name, string ns, ScriptBuilder sb)
- {
- if (!ns.StartsWith("Nest") && !ns.StartsWith("Elasticsearch.Net")) return false;
-
- var n = "common";
- if (_sourceDirectory.TypeNameToNamespaceMapping.TryGetValue(name, out var fullNs))
- n = string.Join('.', fullNs.Split(".").Select(StringExtensions.SnakeCase));
-
- sb.AppendLineIndented($"/** namespace:{n} **/");
- return true;
- }
-
- private void AddNamespaceHeader(string name, ScriptBuilder sb)
- {
- var n = "common";
- if (name == "SearchRequest")
- {
- }
- if (_sourceDirectory.TypeNameToNamespaceMapping.TryGetValue(name, out var ns))
- n = string.Join('.', ns.Split(".").Select(StringExtensions.SnakeCase));
-
- sb.AppendLineIndented($"@namespace(\"{n}\")");
- }
-
- private void AddDocCommentForCustomJsonConverter(ScriptBuilder sb, TsProperty property)
- {
- var declaringType = property.MemberInfo.DeclaringType;
- var propertyName = property.MemberInfo.Name;
-
- var iface = declaringType.GetInterfaces().FirstOrDefault(ii => ii.Name == "I" + declaringType.Name);
- var ifaceProperty = iface?.GetProperty(propertyName);
-
- var attributes = new List();
- if (ifaceProperty != null) attributes.AddRange(ifaceProperty.GetCustomAttributes());
- attributes.AddRange(property.MemberInfo.GetCustomAttributes());
-
- var isRequest = declaringType.Name.Contains("Request");
- var nonGenericTypeName = ClientTypesExporter.RemoveGeneric.Replace(declaringType.Name, "$1");
- if (ClientTypesExporter.InterfaceRegex.IsMatch(nonGenericTypeName)) nonGenericTypeName = nonGenericTypeName.Substring(1);
-
- if (isRequest && _typeInfoProvider.RequestParameters.ContainsKey(nonGenericTypeName))
- {
- var rp = _typeInfoProvider.RequestParameters[nonGenericTypeName];
- var prop = rp.GetProperty(propertyName);
- if (prop != null)
- sb.AppendLineIndented("@request_parameter()");
- }
-
- var converter = attributes.FirstOrDefault(a => a.TypeId.ToString() == "Elasticsearch.Net.Utf8Json.JsonFormatterAttribute");
- if (converter != null)
- {
- if (GetConverter(converter, out var type)) return;
- sb.AppendLineIndented($"@prop_serializer(\"{type.Name}\")");
- }
- }
-
- private void AddRequestRenameInformation(ScriptBuilder sb, TsClass classModel)
- {
- if (_restSpec.SkipRequestImplementation(classModel.Name)) return;
-
- var i = classModel.Name;
- if (!ClientTypesExporter.InterfaceRegex.IsMatch(i)) i = $"I{i}";
-
- if (_restSpec.SkipRequestImplementation(i)) return;
- if (!_restSpec.Requests.TryGetValue(i, out var mapping))
- {
- throw new Exception($"Could not get {i} original rest spec file name");
- }
-
- var originalSpec = Path.GetFileNameWithoutExtension(mapping.Json.Name);
- sb.AppendLineIndented($"@rest_spec_name(\"{originalSpec}\")");
- }
-
- private static IEnumerable GetDescriptorAttributes(Type requestInterface)
- {
- var descriptorName = Regex.Replace(requestInterface.Name, "^I(.+)Request$", "$1Descriptor");
- var type = requestInterface.Assembly.GetType($"Nest.{descriptorName}");
- return type?.GetCustomAttributes() ?? Enumerable.Empty();
- }
-
- private static void AddDocCommentForCustomJsonConverter(ScriptBuilder sb, TsClass classModel)
- {
- var iface = classModel.Type.GetInterfaces().FirstOrDefault(i => i.Name == "I" + classModel.Type.Name);
-
- var attributes = new List();
- if (iface != null) attributes.AddRange(iface.GetCustomAttributes());
- attributes.AddRange(classModel.Type.GetCustomAttributes());
-
- var converter = attributes.FirstOrDefault(a => a.TypeId.ToString() == "Elasticsearch.Net.Utf8Json.JsonFormatterAttribute");
- if (converter != null)
- {
- if (GetConverter(converter, out var type)) return;
- sb.AppendLineIndented($"@class_serializer(\"{type.Name}\")");
- }
- }
-
- private static string GetDescriptorFor(Attribute attribute, string classModelName)
- {
- if (attribute == null) return classModelName.SnakeCase().Replace("_","");
- return classModelName;
- }
-
- private static bool GetConverter(Attribute converter, out Type type)
- {
- type = (Type) converter.GetType().GetProperty("FormatterType").GetGetMethod().Invoke(converter, new object[] { });
- if (type.Name.StartsWith("ReadAsType")) return true;
- if (type.Name.StartsWith("VerbatimDictionary")) return true;
- if (type.Name.Contains("DictionaryResponse")) return true;
- if (type.Name.StartsWith("StringEnum")) return true;
- if (type.Name.StartsWith("Reserialize")) return true;
- return false;
- }
-
- protected override void AppendEnumDefinition(TsEnum enumModel, ScriptBuilder sb, TsGeneratorOutput output)
- {
- if (!AddNamespaceHeaderEnum(enumModel.Name, enumModel.Type.Assembly.FullName, sb)) return;
- if (_typesToIgnore.Contains(enumModel.Type)) return;
-
- var typeName = GetTypeName(enumModel);
- var visibility = string.Empty;
-
- _docAppender.AppendEnumDoc(sb, enumModel, typeName);
-
- var constSpecifier = GenerateConstEnums ? "const " : string.Empty;
- sb.AppendLineIndented(string.Format("{0}{2}enum {1} {{", visibility, typeName, constSpecifier));
-
- using (sb.IncreaseIndentation())
- {
- var i = 1;
- foreach (var v in enumModel.Values)
- {
- _docAppender.AppendEnumValueDoc(sb, v);
- var enumMemberAttribute = v.Field.GetCustomAttribute();
- var name = (!string.IsNullOrEmpty(enumMemberAttribute?.Value) ? enumMemberAttribute.Value : v.Name).QuoteMaybe();
-
- sb.AppendLineIndented(string.Format(i < enumModel.Values.Count ? "{0} = {1}," : "{0} = {1}", name, v.Value));
- i++;
- }
- }
-
- sb.AppendLineIndented("}");
-
- _generatedEnums.Add(enumModel);
- }
-
- protected override void AppendModule(TsModule module, ScriptBuilder sb, TsGeneratorOutput generatorOutput)
- {
- var classes = module.Classes.Where(c => !_typeConvertors.IsConvertorRegistered(c.Type) && !c.IsIgnored).ToList();
- var enums = module.Enums.Where(e => !_typeConvertors.IsConvertorRegistered(e.Type) && !e.IsIgnored).ToList();
- if ((generatorOutput == TsGeneratorOutput.Enums && enums.Count == 0) ||
- (generatorOutput == TsGeneratorOutput.Properties && classes.Count == 0) ||
- (enums.Count == 0 && classes.Count == 0))
- {
- return;
- }
-
- if ((generatorOutput & TsGeneratorOutput.Enums) == TsGeneratorOutput.Enums)
- {
- foreach (var enumModel in enums)
- {
- if (Ignore(enumModel)) continue;
- AppendEnumDefinition(enumModel, sb, generatorOutput);
- }
- }
-
- if (((generatorOutput & TsGeneratorOutput.Properties) == TsGeneratorOutput.Properties)
- || (generatorOutput & TsGeneratorOutput.Fields) == TsGeneratorOutput.Fields)
- {
- var cc = classes.Select(c => new {c, order = OrderTypes(c)}).ToList();
- var orderedClasses = cc.OrderBy(c => c.order).ToList();
- foreach (var oc in orderedClasses)
- {
- var classModel = oc.c;
- var t = classModel.Type;
-// var x = $"// {oc.order} - {oc.c.Type.FullName}";
-// sb.AppendIndented(x);
- if (t.IsInterface && !CsharpTypeInfoProvider.ExposedInterfaces.Contains(t) && CsharpTypeInfoProvider.ExposedInterfaces.Any(i=>i.IsAssignableFrom(t)))
- continue;
- var c = ReMapClass(classModel);
- if (Ignore(c)) continue;
- if (_appended.Contains(c.Name)) continue;
- if (_appended.Contains("I" + c.Name)) continue;
- AppendClassDefinition(c, sb, generatorOutput);
- _appended.Add(c.Name);
- }
- }
-
- if ((generatorOutput & TsGeneratorOutput.Constants) == TsGeneratorOutput.Constants)
- {
- foreach (var classModel in classes)
- {
- if (classModel.IsIgnored) continue;
-
- AppendConstantModule(classModel, sb);
- }
- }
- }
- public static IEnumerable GetParentTypes(Type type)
- {
- // is there any base type?
- if (type == null)
- {
- yield break;
- }
-
- // return all implemented or inherited interfaces
- foreach (var i in type.GetInterfaces())
- {
- yield return i;
- }
-
- // return all inherited types
- var currentBaseType = type.BaseType;
- while (currentBaseType != null)
- {
- yield return currentBaseType;
- currentBaseType= currentBaseType.BaseType;
- }
- }
-
- private static int OrderTypes(TsClass c)
- {
- var t = c.Type;
- var weight = 0;
- if (c.Type.Namespace.StartsWith("Nest")) weight += 100;
- if (c.Type.IsInterface || c.Type.IsAbstract)
- {
- if (!t.Name.Contains("Base")) weight += 20;
- weight += GetParentTypes(t).Count();
- }
- else weight += 100 + GetParentTypes(t).Count();
-
- return weight;
- }
-
- protected bool Ignore(TsClass classModel)
- {
- if (TypeRenames.ContainsKey(classModel.Name)) return false;
- if (typeof(IRequestParameters).IsAssignableFrom(classModel.Type)) return true;
- if (typeof(IConnectionPool).IsAssignableFrom(classModel.Type)) return true;
- if (typeof(IConnection).IsAssignableFrom(classModel.Type)) return true;
- if (typeof(IElasticsearchSerializer).IsAssignableFrom(classModel.Type)) return true;
- if (typeof(IMemoryStreamFactory).IsAssignableFrom(classModel.Type)) return true;
- if (typeof(IPostData<>).IsAssignableFrom(classModel.Type)) return true;
- if (IsClrType(classModel.Type)) return true;
- if (_typesToIgnore.Contains(classModel.Type)) return true;
- return false;
- }
-
- private bool Ignore(TsEnum enumModel) => IsClrType(enumModel.Type);
-
- private bool IsClrType(Type type)
- {
- var name = type.FullName ?? type.DeclaringType?.FullName;
- return name != null && !name.StartsWith("Nest.") && !name.StartsWith("Elasticsearch.Net.");
- }
-
- private static TsClass ReMapClass(TsClass classModel)
- {
- if (typeof(RequestBase<>) == classModel.Type) return new TsClass(typeof(RequestBase));
-
- if (classModel.BaseType == null) return classModel;
-
- var baseType = classModel.BaseType.Type;
- if (typeof(IRequest).IsAssignableFrom(baseType))
- classModel.BaseType = new TsClass(typeof(RequestBase));
-
- if (typeof(IResponse).IsAssignableFrom(baseType))
- {
- if (baseType.IsGenericType)
- {
- var t = baseType.GetGenericTypeDefinition();
- if (t == typeof(DictionaryResponseBase<,>)) return classModel;
- }
-
- if (baseType == typeof(ShardsOperationResponseBase)) return classModel;
- if (baseType == typeof(AcknowledgedResponseBase)) return classModel;
- if (baseType == typeof(IndicesResponseBase)) return classModel;
- if (baseType == typeof(NodesResponseBase)) return classModel;
-
- classModel.BaseType = new TsClass(typeof(ResponseBase));
- }
-
- return classModel;
- }
- }
- public class RequestBase { }
-
- public class MainError { }
-}
diff --git a/src/Nest.TypescriptExporter/CsharpTypeInfoProvider.cs b/src/Nest.TypescriptExporter/CsharpTypeInfoProvider.cs
deleted file mode 100644
index 82235a2..0000000
--- a/src/Nest.TypescriptExporter/CsharpTypeInfoProvider.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text.RegularExpressions;
-using Elasticsearch.Net;
-
-namespace Nest.TypescriptGenerator
-{
- public class CsharpTypeInfoProvider
- {
- private static readonly Regex BadClassRegex =
- new Regex(@"(SynchronizedCollection|Descriptor|Attribute)(?:Base)?(?:\`.+$|$)");
-
- // can not add typeof(IAggregate), because quite a few of these behave as an ICollection which trips TSLite.
- //need to manually port these.
-
- public static readonly Type[] ExposedInterfaces =
- {
- typeof(IRequest), typeof(IResponse), typeof(ICharFilter), typeof(ITokenFilter), typeof(IAnalyzer),
- typeof(ITokenizer), typeof(ICatRecord), typeof(IProperty)
- };
-
- public static readonly Type[] StringAbstractions = new[]
- {
- typeof(DateMath), typeof(Indices), typeof(IndexName), typeof(RelationName), typeof(Id), typeof(Names),
- typeof(Name), typeof(NodeIds), typeof(Metrics), typeof(IndexMetrics), typeof(Field), typeof(Fields),
- typeof(PropertyName), typeof(Routing), typeof(TaskId), typeof(DateMathExpression), typeof(IDateMath)
- };
-
- private static readonly Type[] ExposedInterfacesImplementations = ExposedInterfaces.Concat(new[]
- {
- typeof(IDictionaryResponse<,>), typeof(IIndicesModuleSettings)
- }).ToArray();
-
- public CsharpTypeInfoProvider()
- {
- var nestAssembly = typeof(IRequest<>).Assembly;
- var lowLevelAssembly = typeof(IElasticLowLevelClient).Assembly;
-
- ExposedTypes = nestAssembly
- .GetTypes()
- .Where(TypeFilter)
- .Concat(ExposedInterfacesImplementations.Where(t => !t.IsGenericType))
- .OrderBy(t => t.Name)
- .ToArray();
-
- var requestParams = lowLevelAssembly
- .GetTypes()
- .Where(t => t.IsClass && t.Name.EndsWith("RequestParameters"))
- .Where(t => t.Namespace != "Elasticsearch.Net.Specification.SlmApi")
- .ToList();
-
- var doubles = requestParams
- .GroupBy(t => t.Name.Replace("Parameters", ""))
- .Where(g => g.Count() > 1)
- .ToList();
-
-
- RequestParameters = requestParams
- .ToDictionary(t =>
- {
- var tt = t.Name.Replace("Parameters", "");
- if (t.FullName.Contains("Eql")) tt = "Eql" + tt;
- if (t.FullName.Contains("Async")) tt = "Async" + tt;
- if (t.FullName.Contains("SearchableSnapshots")) tt = "SearchableSnapshots" + tt;
- return tt;
- }
- );
- }
-
- public Dictionary RequestParameters { get; }
- public Type[] ExposedTypes { get; }
-
- private static bool TypeFilter(Type t) => TypeFilter(t, ExposedInterfacesImplementations);
-
- private static bool TypeFilter(Type t, IEnumerable interfaces) =>
- t.IsEnum && !t.Namespace.StartsWith("Elasticsearch.Net.Utf8Json") &&
- (t.Namespace.StartsWith("Nest") || t.Namespace.StartsWith("Elasticsearch.Net"))
- || interfaces.Any(i => i.IsAssignableFrom(t)) && t.IsClass && !BadClassRegex.IsMatch(t.Name);
- }
-}
diff --git a/src/Nest.TypescriptExporter/Nest.TypescriptExporter.csproj b/src/Nest.TypescriptExporter/Nest.TypescriptExporter.csproj
deleted file mode 100644
index e534a8d..0000000
--- a/src/Nest.TypescriptExporter/Nest.TypescriptExporter.csproj
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- Exe
- net6.0
- False
- False
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Nest.TypescriptExporter/Program.cs b/src/Nest.TypescriptExporter/Program.cs
deleted file mode 100644
index 829babb..0000000
--- a/src/Nest.TypescriptExporter/Program.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System;
-using System.IO;
-using Nest.TypescriptGenerator.Touchups;
-using ShellProgressBar;
-
-namespace Nest.TypescriptGenerator
-{
- public static class Program
- {
- ///
- /// generate [definitionfile] [nest_source_folder]
- /// split [definitionfile] [nest_source_folder] [out_folder]
- /// both [definitionfile] [nest_source_folder] [out_folder]
- ///
- public static int Main(string[] args)
- {
- const string defaultTsFile = "typedefinitions.ts";
- const string defaultNestSourceFolder = @"../../../net-7/src/Nest";
- var command = args.Length > 0 ? args[0] : "both";
- var definitionFile = args.Length > 1 ? args[1] : defaultTsFile;
- var nestSourceFolder = args.Length > 2 ? args[2] : defaultNestSourceFolder;
- var restSpec = new RestSpec(nestSourceFolder);
- switch (command)
- {
- case "generate": return Generate(definitionFile, nestSourceFolder, restSpec);
- case "both":
- case "split":
- var outFolder = args.Length > 3
- ? args[3]
- : @"../../../elastic-client-generator/specification/specs";
- var r = 0;
- if (command == "both") r += Generate(definitionFile, nestSourceFolder, restSpec);
- r += Split(definitionFile, restSpec, outFolder);
- return r;
- default:
- Console.Error.WriteLine("Unknown command for generator, valid are generate|split");
- return 2;
- }
- }
-
- private static int Split(string definitionFile, RestSpec restSpec, string outFolder)
- {
- var splitter = new TypescriptDumpSplitter(definitionFile, restSpec, outFolder);
- return splitter.Split();
- }
-
- private static int Generate(string definitionFile, string nestSourceFolder, RestSpec restSpec)
- {
- var sourceDirectory = new CSharpSourceDirectory(nestSourceFolder);
- var typeInfoProvider = new CsharpTypeInfoProvider();
- var scriptGenerator = new ClientTypescriptGenerator(typeInfoProvider, sourceDirectory, restSpec);
-
- using (var pbar = new ProgressBar(3, "Generating typescript information from NEST sources/code",
- new ProgressBarOptions {ForegroundColor = ConsoleColor.Yellow}))
- {
- var generator = new ClientTypesExporter(typeInfoProvider, scriptGenerator);
- File.WriteAllText(definitionFile, generator.Generate());
- pbar.Tick($"Generated {definitionFile}");
- GenerateLineScrubber.LineBasedHacks(definitionFile);
- pbar.Tick($"Performed line based scrubber over {definitionFile}");
- GeneratePrependDefinitions.PrependDefinitions(definitionFile);
- pbar.Tick($"Prepended known types and annotations {definitionFile}");
- return 0;
- }
- }
- }
-}
diff --git a/src/Nest.TypescriptExporter/RestSpec.cs b/src/Nest.TypescriptExporter/RestSpec.cs
deleted file mode 100644
index aafa03e..0000000
--- a/src/Nest.TypescriptExporter/RestSpec.cs
+++ /dev/null
@@ -1,135 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text.RegularExpressions;
-using ShellProgressBar;
-
-namespace Nest.TypescriptGenerator
-{
- public class RestSpec
- {
- private readonly string[] _badDescriptorFors =
- {
- "DeleteScriptRequest", "GetScriptRequest", "PutScriptRequest", "SnapshotStatusRequest"
- };
-
- private readonly string[] _helperRequests = {"BulkAllRequest", "ScrollAllRequest",};
-
- private readonly string[] _ignoredApis =
- {
- //not mapped un purpose in NEST
- "xpack.ml.delete_filter.json", "xpack.ml.get_filters.json", "xpack.ml.put_filter.json",
- "xpack.monitoring.bulk.json", "xpack.ml.get_buckets.replace.json",
- // not mapped yet
- "rank_eval.json"
- };
-
- private readonly Regex _mapsApiRe = new Regex(@"MapsApi\(""(?.+?)(?:\.json)?""");
-
- private readonly string[] _notARequest = {"HttpInputRequest", "SearchInputRequest"};
-
- public RestSpec(string nestSourceFolder)
- {
- using (var pbar = new ProgressBar(2, "reading NEST's REST API spec folder"))
- {
- RestSpecificationFolder =
- Path.GetFullPath(Path.Combine(nestSourceFolder, "..", "ApiGenerator", "RestSpecification"));
-
- var jsonFiles = Directory.GetFiles(RestSpecificationFolder, $"*.json", SearchOption.AllDirectories)
- .Where(f => !f.EndsWith(".patch.json") && !f.EndsWith("_common.json"))
- .Select(f => new FileInfo(f))
- .ToList();
-
- SpecificationFiles = jsonFiles.ToDictionary(f => Path.GetFileNameWithoutExtension(f.Name), f => f);
- pbar.Tick("read all json files");
-
- Requests = Directory.GetFiles(nestSourceFolder, $"*Request.cs", SearchOption.AllDirectories)
- .Select(f => new FileInfo(f))
- .Select(CreateMapping)
- .Where(m => m != null)
- .ToDictionary(m => m.TypeName);
-
- pbar.Tick("mapped all json files to their *Request.cs counterparts in NEST's codebase");
-
- var requestFileNames = Requests.Values.Select(v => v.Json.Name).ToList();
- var notFound = SpecificationFiles.Values
- .Select(v => v.Name)
- .ToList()
- .Except(requestFileNames)
- .Except(_ignoredApis)
- .ToList();
- }
- }
-
- public Dictionary SpecificationFiles { get; }
- private string RestSpecificationFolder { get; }
-
- public Dictionary Requests { get; }
-
- private RestSpecMapping CreateMapping(FileInfo file)
- {
- var typeName = Path.GetFileNameWithoutExtension(file.Name);
- if (SkipRequestImplementation(typeName)) return null;
-
- var specFileName = typeName.Replace("Request", "");
- if (!_badDescriptorFors.Contains(typeName))
- specFileName = FindDescriptorForRemapping(file, specFileName);
-
- specFileName = specFileName.SnakeCase().Replace("_", ".").Replace("async.search", "async_search");
- do
- if (SpecificationFiles.TryGetValue(specFileName, out var f))
- return new RestSpecMapping {TypeName = $"I{typeName}", Json = f};
- while (TryGetSpecTarget(specFileName, out specFileName));
-
- throw new Exception($"{specFileName}: {typeName} is not a known request in {RestSpecificationFolder}");
- }
-
- public bool SkipRequestImplementation(string typeName)
- {
- if (typeName == "IRequest") return true;
- if (typeName == "ICovariantSearchRequest") return true;
- if (typeName == "ITypedSearchRequest") return true;
- if (typeName == "IProxyRequest") return true;
- if (typeName == "ISqlRequest") return true;
- if (typeName == "IUpgradeRequest") return true;
- if (typeName == "IUpgradeStatusRequest") return true;
- if (ClientTypesExporter.InterfaceRegex.IsMatch(typeName)) typeName = typeName.Substring(1);
- return !typeName.EndsWith("Request")
- || _helperRequests.Contains(typeName)
- || _notARequest.Contains(typeName);
- }
-
- private string FindDescriptorForRemapping(FileInfo file, string specFileName)
- {
- foreach (var l in File.ReadAllLines(file.FullName))
- {
- var matches = _mapsApiRe.Match(l);
- if (!matches.Success) continue;
- specFileName = matches.Groups["descriptor"].Value;
- break;
- }
-
- return specFileName;
- }
-
- private bool TryGetSpecTarget(string specFileName, out string newSpecFileName)
- {
- newSpecFileName = null;
- var i = specFileName.LastIndexOf('.');
- if (i < 0) return false;
- newSpecFileName = specFileName.Remove(i, 1).Insert(i, "_");
- return true;
- }
-
- public class RestSpecMapping
- {
- public FileInfo Json { get; set; }
- public string TypeName { get; set; }
- }
- }
-}
diff --git a/src/Nest.TypescriptExporter/StringExtensions.cs b/src/Nest.TypescriptExporter/StringExtensions.cs
deleted file mode 100644
index 4c220e0..0000000
--- a/src/Nest.TypescriptExporter/StringExtensions.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System.Text.RegularExpressions;
-
-namespace Nest.TypescriptGenerator
-{
- public static class StringExtensions
- {
- private static readonly Regex SnakeCaseRe = new Regex("(?<=.)([A-Z])");
-
- public static string QuoteMaybe(this string s)
- {
- if (s == null) return null;
- //this is dumb on purpose
- if (s.Contains('-')) return $"\'{s}\'";
- if (s.Contains('+')) return $"\'{s}\'";
- if (s.Contains('.')) return $"\'{s}\'";
- if (Regex.IsMatch(s, @"^\d")) return $"\'{s}\'";
- return s;
- }
-
- public static string SnakeCase(this string token) =>
- token == null ? null : SnakeCaseRe.Replace(token, "_$0").ToLowerInvariant();
- }
-}
diff --git a/src/Nest.TypescriptExporter/Touchups/GenerateLineScrubber.cs b/src/Nest.TypescriptExporter/Touchups/GenerateLineScrubber.cs
deleted file mode 100644
index 15060c6..0000000
--- a/src/Nest.TypescriptExporter/Touchups/GenerateLineScrubber.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System.Collections.Generic;
-using System.IO;
-using System.Text.RegularExpressions;
-
-namespace Nest.TypescriptGenerator.Touchups
-{
- public static class GenerateLineScrubber
- {
- private static readonly Regex ReadSingleOrEnumerableToUnion = new Regex(@"^(.+?): (.+?)\[\];");
-
- public static void LineBasedHacks(string file)
- {
- var lines = File.ReadAllLines(file);
- var newLines = new List();
- List errorCause = new List(), error = new List(), ignore = new List();
-
- bool readingError = false, readingErrorCause = false, readingIgnored = false;
- var singleOrArray = false;
- foreach (var l in lines)
- {
- if (TryHandleReadSingleOrEnumerable(l, newLines, ref singleOrArray)) continue;
-
- // Touching up the fact we can not sort modules in the generated output.
- // this removes ErrorCause and Error definitions these are manually added to to top afterwards.
- if (TryMove(l, "class ErrorCause ", errorCause, newLines, ref readingErrorCause)) continue;
- if (TryMove(l, "class Error extends", error, newLines, ref readingError)) continue;
- if (TryMove(l, "class Response ", ignore, newLines, ref readingIgnored)) continue;
-
- newLines.Add(l);
- }
-
- File.WriteAllLines(file, errorCause);
- File.AppendAllLines(file, error);
- File.AppendAllLines(file, newLines);
- }
-
- private static bool TryMove(string l, string classDef, ICollection movedLines, IList newLines,
- ref bool skipTillNextBracket)
- {
- if (l == "}" && skipTillNextBracket)
- {
- movedLines.Add(l);
- skipTillNextBracket = false;
- return true;
- }
-
- if (l.StartsWith(classDef))
- {
- var previousLine = newLines[newLines.Count - 1];
- newLines.RemoveAt(newLines.Count - 1);
- movedLines.Add(previousLine);
- skipTillNextBracket = true;
- }
-
- if (!skipTillNextBracket) return false;
- movedLines.Add(l);
- return true;
- }
-
- //in NEST we always choose the array and use a json converter to accept the value
- //define it as a union of value | value[] instead
- private static bool TryHandleReadSingleOrEnumerable(string l, ICollection newLines,
- ref bool singleOrArray)
- {
- if (l.Contains("ReadSingleOrEnumerable"))
- {
- singleOrArray = true;
- return true;
- }
-
- if (!singleOrArray) return false;
-
- var ll = ReadSingleOrEnumerableToUnion.Replace(l, "$1: $2 | $2[];");
- newLines.Add(ll);
- singleOrArray = false;
- return true;
- }
- }
-}
diff --git a/src/Nest.TypescriptExporter/Touchups/GeneratePrependDefinitions.cs b/src/Nest.TypescriptExporter/Touchups/GeneratePrependDefinitions.cs
deleted file mode 100644
index a93eb62..0000000
--- a/src/Nest.TypescriptExporter/Touchups/GeneratePrependDefinitions.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System.IO;
-
-namespace Nest.TypescriptGenerator.Touchups
-{
- public static class GeneratePrependDefinitions
- {
- public static void PrependDefinitions(string file)
- {
- var hack = @"
-function class_serializer(ns: string) {return function (ns: any){}}
-function rest_spec_name(ns: string) {return function (ns: any){}}
-function prop_serializer(ns: string) {return function (ns: any, x:any){}}
-function request_parameter() {return function (ns: any, x:any){}}
-function namespace(ns: string) {return function (ns: any){}}
-
-interface Uri {}
-interface Date {}
-interface TimeSpan {}
-interface SourceDocument {}
-";
- var contents = File.ReadAllText(file);
- contents = contents
- .Replace("class Error extends ErrorCause", $"class {nameof(MainError)} extends ErrorCause");
-
- File.WriteAllText(file, hack);
- File.AppendAllText(file, contents);
- }
- }
-}
diff --git a/src/Nest.TypescriptExporter/TypeLite.dll b/src/Nest.TypescriptExporter/TypeLite.dll
deleted file mode 100644
index 2ddca75..0000000
Binary files a/src/Nest.TypescriptExporter/TypeLite.dll and /dev/null differ
diff --git a/src/Nest.TypescriptExporter/TypescriptDumpSplitter.cs b/src/Nest.TypescriptExporter/TypescriptDumpSplitter.cs
deleted file mode 100644
index 93a017a..0000000
--- a/src/Nest.TypescriptExporter/TypescriptDumpSplitter.cs
+++ /dev/null
@@ -1,175 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Text.RegularExpressions;
-using ShellProgressBar;
-
-namespace Nest.TypescriptGenerator
-{
- public class TypescriptDumpSplitter
- {
- private static readonly Regex NamespaceRe =
- new Regex(@"^(?:@namespace\(""(?.+?)""\)|\/\*\* namespace:(?\S+))");
-
- private static readonly Regex RequestSpecName = new Regex(@"^@rest_spec_name\(""(?.+?)""\)");
-
- private static readonly Regex SymbolRe =
- new Regex(@"^(?:class|enum|interface) (?.+?)(?: (extends|implements).+$| \{.*?$|$)");
-
- private static readonly Regex FilenameRe = new Regex(@"<.+?>");
- private readonly string _definitionFile;
- private readonly string _outFolder;
- private readonly RestSpec _restSpec;
-
- public TypescriptDumpSplitter(string definitionFile, RestSpec restSpec, string outFolder)
- {
- _definitionFile = definitionFile;
- _restSpec = restSpec;
- _outFolder = Path.GetFullPath(outFolder);
- }
-
- public int Split()
- {
- using (var pbar = new ProgressBar(6, "splitting local typedefinitions.ts to elastic-client-generator",
- new ProgressBarOptions {ForegroundColor = ConsoleColor.Blue}))
- {
- if (Directory.Exists(_outFolder))
- {
- Directory.Delete(_outFolder, true);
- pbar.Tick($"Deleted {_outFolder}");
- }
- else pbar.Tick($"{_outFolder} does not exist yet");
-
- Directory.CreateDirectory(_outFolder);
- pbar.Tick($"{_outFolder} created");
- var additionalLines = SplitDeclarationDumpFile();
- pbar.Tick($"split typedefinitions.ts");
- DumpRemainder(additionalLines);
- pbar.Tick($"written common.ts");
- CopyTsConfig();
- pbar.Tick($"copied tsconfig.json");
- WriteTsLintFile();
- pbar.Tick($"wrote empty tslint.json in {_outFolder}");
- return 0;
- }
- }
-
- private List SplitDeclarationDumpFile()
- {
- var lines = File.ReadAllLines(_definitionFile);
- var additionalLines = new List();
- var symbolContents = new Queue();
- var readingType = false;
- string currentNamespace = null;
- string currentSpecName = null;
- string currentSymbol = null;
- foreach (var l in lines)
- {
- if (TryGetNamespace(l, out var ns))
- {
- currentNamespace = ns;
- readingType = true;
- continue;
- }
-
- if (TryGetRequestSpecName(l, out var n)) currentSpecName = n;
-
- if (TryGetSymbol(l, out var s))
- currentSymbol = s;
-
- if (readingType && !string.IsNullOrEmpty(currentSymbol))
- {
- if (currentSymbol.StartsWith("SearchResponse"))
- if (l.StartsWith("\thits: Hit<"))
- continue;
- symbolContents.Enqueue(l);
- }
- else additionalLines.Add(l);
-
- if ((l == "}" || l.EndsWith("extends String {}")) && readingType)
- {
- readingType = false;
- DumpFile(currentNamespace, currentSymbol, symbolContents, currentSpecName);
- symbolContents.Clear();
- currentSpecName = null;
- }
- }
-
- return additionalLines;
- }
-
- private void WriteTsLintFile()
- {
- var target = Path.Combine(_outFolder, "tslint.json");
- File.WriteAllText(target, "{}");
- }
-
- private void CopyTsConfig()
- {
- var tsconfigJson = "tsconfig.json";
- var config = Path.Combine(new FileInfo(_definitionFile).Directory.FullName, tsconfigJson);
- var target = Path.Combine(_outFolder, tsconfigJson);
- File.Copy(config, target);
- }
-
- private void DumpRemainder(List additionalLines)
- {
- var path = Path.Combine(_outFolder, "common.ts");
- File.WriteAllLines(path, additionalLines);
- }
-
- private void DumpFile(string currentNamespace, string currentSymbol, Queue symbolContents,
- string currentSpecName)
- {
- var folder = _outFolder + Path.DirectorySeparatorChar + NamespaceToFolder(currentNamespace);
- var path = Path.Combine(folder, ToFilename(currentSymbol));
- Directory.CreateDirectory(folder);
- File.WriteAllLines(path, symbolContents);
-
- if (!string.IsNullOrWhiteSpace(currentSpecName))
- {
- var name = currentSpecName + ".json";
- var source = _restSpec.SpecificationFiles[currentSpecName].FullName;
- var target = Path.Combine(folder, name);
- File.Copy(source, target);
- }
- }
-
- private static bool TryGetNamespace(string l, out string ns)
- {
- ns = null;
- var namespaceMatch = NamespaceRe.Match(l);
- if (!namespaceMatch.Success) return false;
-
- ns = namespaceMatch.Groups["namespace"].Value;
- return true;
- }
-
- private static bool TryGetRequestSpecName(string l, out string ns)
- {
- ns = null;
- var namespaceMatch = RequestSpecName.Match(l);
- if (!namespaceMatch.Success) return false;
-
- ns = namespaceMatch.Groups["name"].Value;
- return true;
- }
-
- private static bool TryGetSymbol(string l, out string symbol)
- {
- symbol = null;
- var namespaceMatch = SymbolRe.Match(l);
- if (!namespaceMatch.Success) return false;
-
- symbol = namespaceMatch.Groups["symbol"].Value.Trim();
- return true;
- }
-
- private static string NamespaceToFolder(string ns) => ns.Replace(".", Path.DirectorySeparatorChar.ToString());
- private static string ToFilename(string symbol) => $"{FilenameRe.Replace(symbol, "")}.ts";
- }
-}
diff --git a/src/Nest.TypescriptExporter/tsconfig.json b/src/Nest.TypescriptExporter/tsconfig.json
deleted file mode 100644
index 52e6be0..0000000
--- a/src/Nest.TypescriptExporter/tsconfig.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "compileOnSave" : false,
- "compilerOptions": {
- "target": "es5",
- "module": "commonjs",
- "isolatedModules": false,
- "jsx": "react",
- "experimentalDecorators": true,
- "emitDecoratorMetadata": true,
- "declaration": false,
- "noImplicitAny": false,
- "removeComments": true,
- "noLib": false,
- "preserveConstEnums": true,
- "suppressImplicitAnyIndexErrors": true,
- "noEmit" : true
- },
- "exclude": [ "node_modules", "build", "src", "typings" ]
-}
diff --git a/src/Nest.TypescriptExporter/typedefinitions.ts b/src/Nest.TypescriptExporter/typedefinitions.ts
deleted file mode 100644
index ebcaa8d..0000000
--- a/src/Nest.TypescriptExporter/typedefinitions.ts
+++ /dev/null
@@ -1,12893 +0,0 @@
-
-function class_serializer(ns: string) {return function (ns: any){}}
-function rest_spec_name(ns: string) {return function (ns: any){}}
-function prop_serializer(ns: string) {return function (ns: any, x:any){}}
-function request_parameter() {return function (ns: any, x:any){}}
-function namespace(ns: string) {return function (ns: any){}}
-
-interface Uri {}
-interface Date {}
-interface TimeSpan {}
-interface SourceDocument {}
-@class_serializer("ErrorCauseFormatter")
-class ErrorCause {
- additional_properties: Dictionary;
- bytes_limit: long;
- bytes_wanted: long;
- caused_by: ErrorCause;
- column: integer;
- failed_shards: ShardFailure[];
- grouped: boolean;
- index: string;
- index_u_u_i_d: string;
- language: string;
- licensed_expired_feature: string;
- line: integer;
- phase: string;
- reason: string;
- resource_id: string[];
- resource_type: string;
- script: string;
- script_stack: string[];
- shard: integer;
- stack_trace: string;
- type: string;
-}
-@class_serializer("ErrorFormatter")
-class MainError extends ErrorCause {
- headers: Dictionary;
- root_cause: ErrorCause[];
-}
-interface short {}
-interface byte {}
-interface integer {}
-interface long {}
-interface float {}
-interface double {}
-
-/** namespace:aggregations.bucket.date_histogram **/
-enum DateInterval {
- second = 0,
- minute = 1,
- hour = 2,
- day = 3,
- week = 4,
- month = 5,
- quarter = 6,
- year = 7
-}
-/** namespace:x_pack.security.user.get_user_access_token **/
-enum AccessTokenGrantType {
- password = 0
-}
-/** namespace:x_pack.watcher.acknowledge_watch **/
-enum AcknowledgementState {
- awaits_successful_execution = 0,
- ackable = 1,
- acked = 2
-}
-/** namespace:x_pack.watcher.execution **/
-enum ActionExecutionMode {
- simulate = 0,
- force_simulate = 1,
- execute = 2,
- force_execute = 3,
- skip = 4
-}
-/** namespace:x_pack.watcher.execute_watch **/
-enum ActionExecutionState {
- awaits_execution = 0,
- checking = 1,
- execution_not_needed = 2,
- throttled = 3,
- executed = 4,
- failed = 5,
- deleted_while_queued = 6,
- not_executed_already_queued = 7
-}
-/** namespace:x_pack.watcher.action **/
-enum ActionType {
- email = 0,
- webhook = 1,
- index = 2,
- logging = 3,
- slack = 4,
- pagerduty = 5
-}
-/** namespace:aggregations.visitor **/
-enum AggregationVisitorScope {
- Unknown = 0,
- Aggregation = 1,
- Bucket = 2
-}
-/** namespace:modules.cluster.shard_allocation **/
-enum AllocationEnable {
- all = 0,
- primaries = 1,
- new_primaries = 2,
- none = 3
-}
-/** namespace:cluster.cluster_allocation_explain **/
-enum AllocationExplainDecision {
- NO = 0,
- YES = 1,
- THROTTLE = 2,
- ALWAYS = 3
-}
-/** namespace:modules.cluster.shard_allocation **/
-enum AllowRebalance {
- always = 0,
- indices_primaries_active = 1,
- indices_all_active = 2
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum AppliesTo {
- actual = 0,
- typical = 1,
- diff_from_typical = 2,
- time = 3
-}
-/** namespace:common_options.time_unit **/
-enum TimeUnit {
- nanos = 0,
- micros = 1,
- ms = 2,
- s = 3,
- m = 4,
- h = 5,
- d = 6
-}
-/** namespace:search.search.hits **/
-enum TotalHitsRelation {
- eq = 0,
- gte = 1
-}
-/** namespace:query_dsl **/
-enum Operator {
- and = 0,
- or = 1
-}
-/** namespace:query_dsl.compound.function_score.functions **/
-enum FunctionBoostMode {
- multiply = 0,
- replace = 1,
- sum = 2,
- avg = 3,
- max = 4,
- min = 5
-}
-/** namespace:query_dsl.compound.function_score.functions **/
-enum FunctionScoreMode {
- multiply = 0,
- sum = 1,
- avg = 2,
- first = 3,
- max = 4,
- min = 5
-}
-/** namespace:query_dsl.multi_term_query_rewrite **/
-enum RewriteMultiTerm {
- constant_score = 0,
- scoring_boolean = 1,
- constant_score_boolean = 2,
- top_terms_N = 3,
- top_terms_boost_N = 4,
- top_terms_blended_freqs_N = 5
-}
-/** namespace:query_dsl.geo.bounding_box **/
-enum GeoExecution {
- memory = 0,
- indexed = 1
-}
-/** namespace:query_dsl.geo **/
-enum GeoValidationMethod {
- coerce = 0,
- ignore_malformed = 1,
- strict = 2
-}
-/** namespace:common_options.geo **/
-enum DistanceUnit {
- in = 0,
- ft = 1,
- yd = 2,
- mi = 3,
- nmi = 4,
- km = 5,
- m = 6,
- cm = 7,
- mm = 8
-}
-/** namespace:common_options.geo **/
-enum GeoDistanceType {
- arc = 0,
- plane = 1
-}
-/** namespace:common_options.geo **/
-enum GeoShapeRelation {
- intersects = 0,
- disjoint = 1,
- within = 2,
- contains = 3
-}
-/** namespace:common_options.shape **/
-enum ShapeRelation {
- intersects = 0,
- disjoint = 1,
- within = 2
-}
-/** namespace:search.search.highlighting **/
-enum BoundaryScanner {
- chars = 0,
- sentence = 1,
- word = 2
-}
-/** namespace:search.search.highlighting **/
-enum HighlighterFragmenter {
- simple = 0,
- span = 1
-}
-/** namespace:search.search.highlighting **/
-enum HighlighterOrder {
- score = 0
-}
-/** namespace:search.search.highlighting **/
-enum HighlighterTagsSchema {
- styled = 0
-}
-/** namespace:search.search.highlighting **/
-enum HighlighterEncoder {
- default = 0,
- html = 1
-}
-/** namespace:search.search.sort **/
-enum SortMode {
- min = 0,
- max = 1,
- sum = 2,
- avg = 3,
- median = 4
-}
-/** namespace:search.search.sort **/
-enum NumericType {
- long = 0,
- double = 1,
- date = 2,
- date_nanos = 3
-}
-/** namespace:search.search.sort **/
-enum SortOrder {
- asc = 0,
- desc = 1
-}
-/** namespace:query_dsl.joining.has_child **/
-enum ChildScoreMode {
- none = 0,
- avg = 1,
- sum = 2,
- max = 3,
- min = 4
-}
-/** namespace:query_dsl.full_text.multi_match **/
-enum ZeroTermsQuery {
- all = 0,
- none = 1
-}
-/** namespace:query_dsl.full_text.multi_match **/
-enum TextQueryType {
- best_fields = 0,
- most_fields = 1,
- cross_fields = 2,
- phrase = 3,
- phrase_prefix = 4,
- bool_prefix = 5
-}
-/** namespace:query_dsl.joining.nested **/
-enum NestedScoreMode {
- avg = 0,
- sum = 1,
- min = 2,
- max = 3,
- none = 4
-}
-/** namespace:query_dsl.full_text.simple_query_string **/
-enum SimpleQueryStringFlags {
- NONE = 1,
- AND = 2,
- OR = 4,
- NOT = 8,
- PREFIX = 16,
- PHRASE = 32,
- PRECEDENCE = 64,
- ESCAPE = 128,
- WHITESPACE = 256,
- FUZZY = 512,
- NEAR = 1024,
- SLOP = 2048,
- ALL = 4096
-}
-/** namespace:common_options.date_math **/
-enum DateMathTimeUnit {
- s = 0,
- m = 1,
- h = 2,
- d = 3,
- w = 4,
- M = 5,
- y = 6
-}
-/** namespace:common_options.date_math **/
-enum DateMathOperation {
- '+' = 0,
- '-' = 1
-}
-/** namespace:aggregations.pipeline **/
-enum GapPolicy {
- skip = 0,
- insert_zeros = 1
-}
-/** namespace:aggregations.bucket.auto_date_histogram **/
-enum MinimumInterval {
- second = 0,
- minute = 1,
- hour = 2,
- day = 3,
- month = 4,
- year = 5
-}
-/** namespace:aggregations.bucket.geo_hash_grid **/
-enum GeoHashPrecision {
- Precision1 = 1,
- Precision2 = 2,
- Precision3 = 3,
- Precision4 = 4,
- Precision5 = 5,
- Precision6 = 6,
- Precision7 = 7,
- Precision8 = 8,
- Precision9 = 9,
- Precision10 = 10,
- Precision11 = 11,
- Precision12 = 12
-}
-/** namespace:aggregations.bucket.geo_tile_grid **/
-enum GeoTilePrecision {
- Precision0 = 0,
- Precision1 = 1,
- Precision2 = 2,
- Precision3 = 3,
- Precision4 = 4,
- Precision5 = 5,
- Precision6 = 6,
- Precision7 = 7,
- Precision8 = 8,
- Precision9 = 9,
- Precision10 = 10,
- Precision11 = 11,
- Precision12 = 12,
- Precision13 = 13,
- Precision14 = 14,
- Precision15 = 15,
- Precision16 = 16,
- Precision17 = 17,
- Precision18 = 18,
- Precision19 = 19,
- Precision20 = 20,
- Precision21 = 21,
- Precision22 = 22,
- Precision23 = 23,
- Precision24 = 24,
- Precision25 = 25,
- Precision26 = 26,
- Precision27 = 27,
- Precision28 = 28,
- Precision29 = 29
-}
-/** namespace:aggregations.matrix.matrix_stats **/
-enum MatrixStatsMode {
- avg = 0,
- min = 1,
- max = 2,
- sum = 3,
- median = 4
-}
-/** namespace:aggregations.bucket.sampler **/
-enum SamplerAggregationExecutionHint {
- map = 0,
- global_ordinals = 1,
- bytes_hash = 2
-}
-/** namespace:aggregations.bucket.terms **/
-enum TermsAggregationExecutionHint {
- map = 0,
- global_ordinals = 1,
- global_ordinals_hash = 2,
- global_ordinals_low_cardinality = 3
-}
-/** namespace:aggregations.bucket.terms **/
-enum TermsAggregationCollectMode {
- depth_first = 0,
- breadth_first = 1
-}
-/** namespace:aggregations.metric.weighted_average **/
-enum ValueType {
- string = 0,
- long = 1,
- double = 2,
- number = 3,
- date = 4,
- date_nanos = 5,
- ip = 6,
- numeric = 7,
- geo_point = 8,
- boolean = 9
-}
-/** namespace:search.search.rescoring **/
-enum ScoreMode {
- avg = 0,
- max = 1,
- min = 2,
- multiply = 3,
- total = 4
-}
-/** namespace:search.suggesters.term_suggester **/
-enum SuggestSort {
- score = 0,
- frequency = 1
-}
-/** namespace:search.suggesters.term_suggester **/
-enum StringDistance {
- internal = 0,
- damerau_levenshtein = 1,
- levenshtein = 2,
- jaro_winkler = 3,
- ngram = 4
-}
-/** namespace:modules.indices.fielddata.numeric **/
-enum NumericFielddataFormat {
- array = 0,
- disabled = 1
-}
-/** namespace:modules.indices.fielddata **/
-enum FielddataLoading {
- eager = 0,
- eager_global_ordinals = 1
-}
-/** namespace:x_pack.machine_learning.datafeed **/
-enum DatafeedState {
- started = 0,
- stopped = 1,
- starting = 2,
- stopping = 3
-}
-/** namespace:cat.cat_jobs **/
-enum ModelCategorizationStatus {
- ok = 0,
- warn = 1
-}
-/** namespace:cat.cat_jobs **/
-enum ModelMemoryStatus {
- ok = 0,
- soft_limit = 1,
- hard_limit = 2
-}
-/** namespace:x_pack.machine_learning.job.config **/
-enum JobState {
- closing = 0,
- closed = 1,
- opened = 2,
- failed = 3,
- opening = 4
-}
-/** namespace:cat.cat_transforms **/
-enum TransformState {
- STARTED = 0,
- INDEXING = 1,
- ABORTING = 2,
- STOPPING = 3,
- STOPPED = 4,
- FAILED = 5
-}
-/** namespace:cat.cat_transforms **/
-enum TransformType {
- batch = 0,
- continuous = 1
-}
-/** namespace:query_dsl.geo.w_k_t **/
-enum CharacterType {
- Whitespace = 0,
- Alpha = 1,
- Comment = 2
-}
-/** namespace:x_pack.machine_learning.datafeed **/
-enum ChunkingMode {
- auto = 0,
- manual = 1,
- off = 2
-}
-/** namespace:cluster.cluster_allocation_explain **/
-enum Decision {
- yes = 0,
- no = 1,
- worse_balance = 2,
- throttled = 3,
- awaiting_info = 4,
- allocation_delayed = 5,
- no_valid_shard_copy = 6,
- no_attempt = 7
-}
-/** namespace:cluster.cluster_allocation_explain **/
-enum UnassignedInformationReason {
- INDEX_CREATED = 0,
- CLUSTER_RECOVERED = 1,
- INDEX_REOPENED = 2,
- DANGLING_INDEX_IMPORTED = 3,
- NEW_INDEX_RESTORED = 4,
- EXISTING_INDEX_RESTORED = 5,
- REPLICA_ADDED = 6,
- ALLOCATION_FAILED = 7,
- NODE_LEFT = 8,
- REROUTE_CANCELLED = 9,
- REINITIALIZED = 10,
- REALLOCATED_REPLICA = 11,
- PRIMARY_FAILED = 12,
- FORCED_EMPTY_PRIMARY = 13,
- MANUAL_ALLOCATION = 14
-}
-/** namespace:cluster **/
-enum ClusterStatus {
- green = 0,
- yellow = 1,
- red = 2
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum ConditionOperator {
- gt = 0,
- gte = 1,
- lt = 2,
- lte = 3
-}
-/** namespace:x_pack.watcher.condition **/
-enum ConditionType {
- always = 0,
- never = 1,
- script = 2,
- compare = 3,
- array_compare = 4
-}
-/** namespace:x_pack.watcher.input **/
-enum ConnectionScheme {
- http = 0,
- https = 1
-}
-/** namespace:ingest.processors **/
-enum ConvertProcessorType {
- integer = 0,
- long = 1,
- float = 2,
- double = 3,
- string = 4,
- boolean = 5,
- auto = 6
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum CountFunction {
- Count = 0,
- HighCount = 1,
- LowCount = 2
-}
-/** namespace:mapping.dynamic_template **/
-enum MatchType {
- simple = 0,
- regex = 1
-}
-/** namespace:document **/
-enum Result {
- Error = 0,
- created = 1,
- updated = 2,
- deleted = 3,
- not_found = 4,
- noop = 5
-}
-/** namespace:x_pack.roll_up.rollup_configuration **/
-enum RollupMetric {
- min = 0,
- max = 1,
- sum = 2,
- avg = 3,
- value_count = 4
-}
-/** namespace:x_pack.watcher.action.email **/
-enum DataAttachmentFormat {
- json = 0,
- yaml = 1
-}
-/** namespace:ingest.processors **/
-enum DateRounding {
- s = 0,
- m = 1,
- h = 2,
- d = 3,
- w = 4,
- M = 5,
- y = 6
-}
-/** namespace:x_pack.watcher.schedule **/
-enum Day {
- sunday = 0,
- monday = 1,
- tuesday = 2,
- wednesday = 3,
- thursday = 4,
- friday = 5,
- saturday = 6
-}
-/** namespace:analysis.token_filters.delimited_payload **/
-enum DelimitedPayloadEncoding {
- int = 0,
- float = 1,
- identity = 2
-}
-/** namespace:x_pack.migration.deprecation_info **/
-enum DeprecationWarningLevel {
- none = 0,
- info = 1,
- warning = 2,
- critical = 3
-}
-/** namespace:index_modules.similarity.d_f_i **/
-enum DFIIndependenceMeasure {
- standardized = 0,
- saturated = 1,
- chisquared = 2
-}
-/** namespace:index_modules.similarity.d_f_r **/
-enum DFRAfterEffect {
- no = 0,
- b = 1,
- l = 2
-}
-/** namespace:index_modules.similarity.d_f_r **/
-enum DFRBasicModel {
- be = 0,
- d = 1,
- g = 2,
- if = 3,
- in = 4,
- ine = 5,
- p = 6
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum DistinctCountFunction {
- DistinctCount = 0,
- LowDistinctCount = 1,
- HighDistinctCount = 2
-}
-/** namespace:mapping **/
-enum DynamicMapping {
- strict = 0
-}
-/** namespace:analysis.token_filters.edge_n_gram **/
-enum EdgeNGramSide {
- front = 0,
- back = 1
-}
-/** namespace:analysis.tokenizers.n_gram **/
-enum TokenChar {
- letter = 0,
- digit = 1,
- whitespace = 2,
- punctuation = 3,
- symbol = 4,
- custom = 5
-}
-/** namespace:x_pack.watcher.action.email **/
-enum EmailPriority {
- lowest = 0,
- low = 1,
- normal = 2,
- high = 3,
- highest = 4
-}
-/** namespace:x_pack.enrich.execute_policy **/
-enum EnrichPolicyPhase {
- SCHEDULED = 0,
- RUNNING = 1,
- COMPLETE = 2,
- FAILED = 3
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum RuleAction {
- skip_result = 0,
- skip_model_update = 1
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum RuleFilterType {
- include = 0,
- exclude = 1
-}
-/** namespace:x_pack.machine_learning.put_job **/
-enum ExcludeFrequent {
- all = 0,
- none = 1,
- by = 2,
- over = 3
-}
-/** namespace:x_pack.watcher.condition **/
-enum Quantifier {
- some = 0,
- all = 1
-}
-/** namespace:x_pack.watcher.input **/
-enum HttpInputMethod {
- head = 0,
- get = 1,
- post = 2,
- put = 3,
- delete = 4
-}
-/** namespace:x_pack.watcher.input **/
-enum ResponseContentType {
- json = 0,
- yaml = 1,
- text = 2
-}
-/** namespace:x_pack.watcher.schedule **/
-enum IntervalUnit {
- s = 0,
- m = 1,
- h = 2,
- d = 3,
- w = 4
-}
-/** namespace:x_pack.watcher.schedule **/
-enum Month {
- january = 0,
- february = 1,
- march = 2,
- april = 3,
- may = 4,
- june = 5,
- july = 6,
- august = 7,
- september = 8,
- october = 9,
- november = 10,
- december = 11
-}
-/** namespace:x_pack.watcher.action.pager_duty **/
-enum PagerDutyContextType {
- link = 0,
- image = 1
-}
-/** namespace:x_pack.watcher.action.pager_duty **/
-enum PagerDutyEventType {
- trigger = 0,
- resolve = 1,
- acknowledge = 2
-}
-/** namespace:x_pack.watcher.execution **/
-enum Status {
- success = 0,
- failure = 1,
- simulated = 2,
- throttled = 3
-}
-/** namespace:x_pack.watcher.input **/
-enum InputType {
- http = 0,
- search = 1,
- simple = 2
-}
-/** namespace:x_pack.watcher.watcher_stats **/
-enum ExecutionPhase {
- awaits_execution = 0,
- started = 1,
- input = 2,
- condition = 3,
- actions = 4,
- watch_transform = 5,
- aborted = 6,
- finished = 7
-}
-/** namespace:mapping.types **/
-enum FieldType {
- none = 0,
- geo_point = 1,
- geo_shape = 2,
- ip = 3,
- binary = 4,
- keyword = 5,
- text = 6,
- search_as_you_type = 7,
- date = 8,
- date_nanos = 9,
- boolean = 10,
- completion = 11,
- nested = 12,
- object = 13,
- murmur3 = 14,
- token_count = 15,
- percolator = 16,
- integer = 17,
- long = 18,
- short = 19,
- byte = 20,
- float = 21,
- half_float = 22,
- scaled_float = 23,
- double = 24,
- integer_range = 25,
- float_range = 26,
- long_range = 27,
- double_range = 28,
- date_range = 29,
- ip_range = 30,
- alias = 31,
- join = 32,
- rank_feature = 33,
- rank_features = 34,
- flattened = 35,
- shape = 36,
- histogram = 37,
- constant_keyword = 38
-}
-/** namespace:query_dsl.compound.function_score.functions.field_value **/
-enum FieldValueFactorModifier {
- none = 0,
- log = 1,
- log1p = 2,
- log2p = 3,
- ln = 4,
- ln1p = 5,
- ln2p = 6,
- square = 7,
- sqrt = 8,
- reciprocal = 9
-}
-/** namespace:index_modules.index_settings.store **/
-enum FileSystemStorageImplementation {
- simplefs = 0,
- niofs = 1,
- mmapfs = 2,
- default_fs = 3
-}
-/** namespace:mapping.types.core.text **/
-enum IndexOptions {
- docs = 0,
- freqs = 1,
- positions = 2,
- offsets = 3
-}
-/** namespace:x_pack.cross_cluster_replication.follow.follow_info **/
-enum FollowerIndexStatus {
- active = 0,
- paused = 1
-}
-/** namespace:modules.indices.fielddata.string **/
-enum StringFielddataFormat {
- paged_bytes = 0,
- disabled = 1
-}
-/** namespace:mapping **/
-enum TermVectorOption {
- no = 0,
- yes = 1,
- with_offsets = 2,
- with_positions = 3,
- with_positions_offsets = 4,
- with_positions_offsets_payloads = 5
-}
-/** namespace:query_dsl.geo.shape **/
-enum GeoFormat {
- GeoJson = 0,
- WellKnownText = 1
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum GeographicFunction {
- LatLong = 0
-}
-/** namespace:mapping.types.geo.geo_shape **/
-enum GeoOrientation {
- ClockWise = 0,
- CounterClockWise = 1
-}
-/** namespace:modules.indices.fielddata.geo_point **/
-enum GeoPointFielddataFormat {
- array = 0,
- doc_values = 1,
- compressed = 2,
- disabled = 3
-}
-/** namespace:mapping.types.geo.geo_shape **/
-enum GeoStrategy {
- recursive = 0,
- term = 1
-}
-/** namespace:mapping.types.geo.geo_shape **/
-enum GeoTree {
- geohash = 0,
- quadtree = 1
-}
-/** namespace:x_pack.ilm.get_status **/
-enum LifecycleOperationMode {
- RUNNING = 0,
- STOPPING = 1,
- STOPPED = 2
-}
-/** namespace:x_pack.machine_learning.job.config **/
-enum MemoryStatus {
- ok = 0,
- soft_limit = 1,
- hard_limit = 2
-}
-/** namespace:x_pack.license.get_license **/
-enum LicenseStatus {
- active = 0,
- valid = 1,
- invalid = 2,
- expired = 3
-}
-/** namespace:x_pack.license.get_license **/
-enum LicenseType {
- missing = 0,
- trial = 1,
- basic = 2,
- standard = 3,
- dev = 4,
- silver = 5,
- gold = 6,
- platinum = 7,
- enterprise = 8
-}
-/** namespace:x_pack.roll_up.get_rollup_job **/
-enum IndexingJobState {
- started = 0,
- indexing = 1,
- stopping = 2,
- stopped = 3,
- aborting = 4
-}
-/** namespace:search.search.highlighting **/
-enum HighlighterType {
- plain = 0,
- fvh = 1,
- unified = 2
-}
-/** namespace:aggregations.pipeline.moving_average.models **/
-enum HoltWintersType {
- add = 0,
- mult = 1
-}
-/** namespace:index_modules.similarity.i_b **/
-enum IBDistribution {
- ll = 0,
- spl = 1
-}
-/** namespace:index_modules.similarity.i_b **/
-enum IBLambda {
- df = 0,
- ttf = 1
-}
-/** namespace:analysis.plugins.icu.normalization **/
-enum IcuNormalizationType {
- nfc = 0,
- nfkc = 1,
- nfkc_cf = 2
-}
-/** namespace:analysis.plugins.icu.normalization **/
-enum IcuNormalizationMode {
- decompose = 0,
- compose = 1
-}
-/** namespace:analysis.plugins.icu.collation **/
-enum IcuCollationAlternate {
- shifted = 0,
- 'non-ignorable' = 1
-}
-/** namespace:analysis.plugins.icu.collation **/
-enum IcuCollationCaseFirst {
- lower = 0,
- upper = 1
-}
-/** namespace:analysis.plugins.icu.collation **/
-enum IcuCollationDecomposition {
- no = 0,
- identical = 1
-}
-/** namespace:analysis.plugins.icu.collation **/
-enum IcuCollationStrength {
- primary = 0,
- secondary = 1,
- tertiary = 2,
- quaternary = 3,
- identical = 4
-}
-/** namespace:analysis.plugins.icu.transform **/
-enum IcuTransformDirection {
- forward = 0,
- reverse = 1
-}
-/** namespace:index_modules.index_settings.sorting **/
-enum IndexSortMissing {
- _first = 0,
- _last = 1
-}
-/** namespace:index_modules.index_settings.sorting **/
-enum IndexSortMode {
- min = 0,
- max = 1
-}
-/** namespace:index_modules.index_settings.sorting **/
-enum IndexSortOrder {
- asc = 0,
- desc = 1
-}
-/** namespace:indices.monitoring.indices_shard_stores **/
-enum ShardStoreAllocation {
- primary = 0,
- replica = 1,
- unused = 2
-}
-/** namespace:indices.monitoring.indices_stats **/
-enum ShardRoutingState {
- UNASSIGNED = 0,
- INITIALIZING = 1,
- STARTED = 2,
- RELOCATING = 3
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum InfoContentFunction {
- InfoContent = 0,
- HighInfoContent = 1,
- LowInfoContent = 2
-}
-/** namespace:analysis.token_filters **/
-enum KeepTypesMode {
- include = 0,
- exclude = 1
-}
-/** namespace:analysis.plugins.kuromoji **/
-enum KuromojiTokenizationMode {
- normal = 0,
- search = 1,
- extended = 2
-}
-/** namespace:analysis.languages **/
-enum Language {
- Arabic = 0,
- Armenian = 1,
- Basque = 2,
- Brazilian = 3,
- Bulgarian = 4,
- Catalan = 5,
- Chinese = 6,
- Cjk = 7,
- Czech = 8,
- Danish = 9,
- Dutch = 10,
- English = 11,
- 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
-}
-/** namespace:index_modules.index_settings.slow_log **/
-enum LogLevel {
- error = 0,
- warn = 1,
- info = 2,
- debug = 3,
- trace = 4
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum MetricFunction {
- Min = 0,
- Max = 1,
- Median = 2,
- HighMedian = 3,
- LowMedian = 4,
- Mean = 5,
- HighMean = 6,
- LowMean = 7,
- Metric = 8,
- Varp = 9,
- HighVarp = 10,
- LowVarp = 11
-}
-/** namespace:query_dsl.compound.function_score.functions.decay **/
-enum MultiValueMode {
- min = 0,
- max = 1,
- avg = 2,
- sum = 3
-}
-/** namespace:cluster.nodes_info **/
-enum NodeRole {
- master = 0,
- data = 1,
- client = 2,
- ingest = 3,
- ml = 4,
- voting_only = 5,
- transform = 6,
- remote_cluster_client = 7,
- coordinating_only = 8
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum NonNullSumFunction {
- NonNullSum = 0,
- HighNonNullSum = 1,
- LowNonNullSum = 2
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum NonZeroCountFunction {
- NonZeroCount = 0,
- LowNonZeroCount = 1,
- HighNonZeroCount = 2
-}
-/** namespace:analysis.tokenizers **/
-enum NoriDecompoundMode {
- discard = 0,
- none = 1,
- mixed = 2
-}
-/** namespace:index_modules.similarity **/
-enum Normalization {
- no = 0,
- h1 = 1,
- h2 = 2,
- h3 = 3,
- z = 4
-}
-/** namespace:mapping.types.core.number **/
-enum NumberType {
- float = 0,
- half_float = 1,
- scaled_float = 2,
- double = 3,
- integer = 4,
- long = 5,
- short = 6,
- byte = 7
-}
-/** namespace:analysis.plugins.phonetic **/
-enum PhoneticEncoder {
- metaphone = 0,
- double_metaphone = 1,
- soundex = 2,
- refined_soundex = 3,
- caverphone1 = 4,
- caverphone2 = 5,
- cologne = 6,
- nysiis = 7,
- koelnerphonetik = 8,
- haasephonetik = 9,
- beider_morse = 10,
- daitch_mokotoff = 11
-}
-/** namespace:analysis.plugins.phonetic **/
-enum PhoneticLanguage {
- any = 0,
- comomon = 1,
- cyrillic = 2,
- english = 3,
- french = 4,
- german = 5,
- hebrew = 6,
- hungarian = 7,
- polish = 8,
- romanian = 9,
- russian = 10,
- spanish = 11
-}
-/** namespace:analysis.plugins.phonetic **/
-enum PhoneticNameType {
- generic = 0,
- ashkenazi = 1,
- sephardic = 2
-}
-/** namespace:analysis.plugins.phonetic **/
-enum PhoneticRuleType {
- approx = 0,
- exact = 1
-}
-/** namespace:query_dsl.term_level.range **/
-enum RangeRelation {
- within = 0,
- contains = 1,
- intersects = 2
-}
-/** namespace:mapping.types.core.range **/
-enum RangeType {
- integer_range = 0,
- float_range = 1,
- long_range = 2,
- double_range = 3,
- date_range = 4,
- ip_range = 5
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum RareFunction {
- Rare = 0,
- FreqRare = 1
-}
-/** namespace:modules.cluster.shard_allocation **/
-enum RebalanceEnable {
- all = 0,
- primaries = 1,
- replicas = 2,
- none = 3
-}
-/** namespace:index_modules.index_settings.settings **/
-enum RecoveryInitialShards {
- quorem = 0,
- 'quorem-1' = 1,
- full = 2,
- 'full-1' = 3
-}
-/** namespace:modules.scripting **/
-enum ScriptLang {
- painless = 0,
- expression = 1,
- mustache = 2
-}
-/** namespace:mapping.types.specialized.shape **/
-enum ShapeOrientation {
- ClockWise = 0,
- CounterClockWise = 1
-}
-/** namespace:ingest.processors **/
-enum ShapeType {
- geo_shape = 0,
- shape = 1
-}
-/** namespace:analysis.languages **/
-enum SnowballLanguage {
- Armenian = 0,
- Basque = 1,
- Catalan = 2,
- Danish = 3,
- Dutch = 4,
- English = 5,
- Finnish = 6,
- French = 7,
- German = 8,
- German2 = 9,
- Hungarian = 10,
- Italian = 11,
- Kp = 12,
- Lovins = 13,
- Norwegian = 14,
- Porter = 15,
- Portuguese = 16,
- Romanian = 17,
- Russian = 18,
- Spanish = 19,
- Swedish = 20,
- Turkish = 21
-}
-/** namespace:search.search.sort **/
-enum SortSpecialField {
- _score = 0,
- _doc = 1
-}
-/** namespace:cluster.cluster_allocation_explain **/
-enum StoreCopy {
- NONE = 0,
- AVAILABLE = 1,
- CORRUPT = 2,
- IO_ERROR = 3,
- STALE = 4,
- UNKNOWN = 5
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum SumFunction {
- Sum = 0,
- HighSum = 1,
- LowSum = 2
-}
-/** namespace:analysis.token_filters.synonym **/
-enum SynonymFormat {
- solr = 0,
- wordnet = 1
-}
-/** namespace:x_pack.machine_learning.job.detectors **/
-enum TimeFunction {
- TimeOfDay = 0,
- TimeOfWeek = 1
-}
-/** namespace:query_dsl.geo.w_k_t **/
-enum TokenType {
- None = 0,
- Word = 1,
- LParen = 2,
- RParen = 3,
- Comma = 4
-}
-/** namespace:index_modules.index_settings.translog **/
-enum TranslogDurability {
- request = 0,
- async = 1
-}
-/** namespace:ingest.processors.plugins.user_agent **/
-enum UserAgentProperty {
- NAME = 0,
- MAJOR = 1,
- MINOR = 2,
- PATCH = 3,
- OS = 4,
- OS_NAME = 5,
- OS_MAJOR = 6,
- OS_MINOR = 7,
- DEVICE = 8,
- BUILD = 9
-}
-/** namespace:query_dsl.visitor **/
-enum VisitorScope {
- Unknown = 0,
- Query = 1,
- Filter = 2,
- Must = 3,
- MustNot = 4,
- Should = 5,
- PositiveQuery = 6,
- NegativeQuery = 7,
- Span = 8
-}
-/** namespace:x_pack.watcher.watcher_stats **/
-enum WatcherState {
- stopped = 0,
- starting = 1,
- started = 2,
- stopping = 3
-}
-@namespace("document.multiple.bulk.bulk_response_item")
-@class_serializer("BulkResponseItemFormatter")
-class BulkResponseItemBase {
- error: MainError;
- _id: string;
- _index: string;
- operation: string;
- _primary_term: long;
- result: string;
- _seq_no: long;
- _shards: ShardStatistics;
- status: integer;
- _type: string;
- _version: long;
-}
-@namespace("x_pack.security.role_mapping.rules.role")
-@class_serializer("RoleMappingRuleBaseFormatter")
-class RoleMappingRuleBase {
-}
-@namespace("analysis.analyzers")
-class AnalyzerBase implements IAnalyzer {
- type: string;
- version: string;
-}
-@namespace("analysis.token_filters")
-class TokenFilterBase implements ITokenFilter {
- type: string;
- version: string;
-}
-@namespace("analysis.char_filters")
-class CharFilterBase implements ICharFilter {
- type: string;
- version: string;
-}
-@namespace("analysis.tokenizers")
-class TokenizerBase implements ITokenizer {
- type: string;
- version: string;
-}
-@namespace("x_pack.watcher.schedule")
-class ScheduleBase {
-}
-@namespace("common_abstractions.response")
-class ResponseBase implements IResponse {
- debug_information: string;
- server_error: ServerError;
-}
-@namespace("common_abstractions.request")
-class RequestBase {
-}
-@namespace("common_abstractions.response")
-class AcknowledgedResponseBase extends ResponseBase implements IResponse {
- acknowledged: boolean;
-}
-@namespace("")
-class PlainRequestBase extends RequestBase {
- error_trace: boolean;
- filter_path: string[];
- human: boolean;
- pretty: boolean;
- source_query_string: string;
-}
-@namespace("mapping.types")
-class PropertyBase implements IProperty {
- local_metadata: Dictionary;
- meta: Dictionary;
- name: PropertyName;
- type: string;
-}
-@namespace("common_abstractions.response")
-class ShardsOperationResponseBase extends ResponseBase implements IResponse {
- _shards: ShardStatistics;
-}
-@namespace("cluster")
-class NodesResponseBase extends ResponseBase implements IResponse {
- _nodes: NodeStatistics;
-}
-@namespace("analysis.token_filters.compound_word")
-class CompoundWordTokenFilterBase extends TokenFilterBase {
- hyphenation_patterns_path: string;
- max_subword_size: integer;
- min_subword_size: integer;
- min_word_size: integer;
- only_longest_match: boolean;
- word_list: string[];
- word_list_path: string;
-}
-@namespace("document.single")
-class WriteResponseBase extends ResponseBase implements IResponse {
- _id: string;
- _index: string;
- _primary_term: long;
- result: Result;
- _seq_no: long;
- _shards: ShardStatistics;
- _type: string;
- _version: long;
-}
-@namespace("x_pack.async_search")
-class AsyncSearchResponseBase extends ResponseBase {
- id: string;
- is_partial: boolean;
- start_time_in_millis: long;
- start_time: Date;
- is_running: boolean;
- expiration_time_in_millis: long;
- expiration_time: Date;
- response: AsyncSearch;
-}
-@namespace("common_abstractions.response")
-class DynamicResponseBase extends ResponseBase {
-}
-@namespace("common_abstractions.response")
-class IndicesResponseBase extends AcknowledgedResponseBase implements IResponse {
- _shards: ShardStatistics;
-}
-@namespace("common_abstractions.response")
-class DictionaryResponseBase extends ResponseBase {
-}
-@namespace("mapping.types")
-class CorePropertyBase extends PropertyBase {
- copy_to: Field[];
- fields: Dictionary;
- similarity: string;
- store: boolean;
-}
-@namespace("mapping.types")
-class DocValuesPropertyBase extends CorePropertyBase {
- doc_values: boolean;
-}
-@namespace("mapping.types.core.range")
-class RangePropertyBase extends DocValuesPropertyBase {
- boost: double;
- coerce: boolean;
- index: boolean;
-}
-/** namespace:analysis.analyzers **/
-interface IAnalyzer {
- type: string;
- version: string;
-}
-/** namespace:analysis.char_filters **/
-interface ICharFilter {
- type: string;
- version: string;
-}
-/** namespace:analysis.token_filters **/
-interface ITokenFilter {
- type: string;
- version: string;
-}
-/** namespace:analysis.tokenizers **/
-interface ITokenizer {
- type: string;
- version: string;
-}
-@namespace("aggregations")
-@class_serializer("AggregateFormatter")
-class Aggregate {
- meta: Dictionary;
-}
-@namespace("common_abstractions.lazy_document")
-@class_serializer("LazyDocumentInterfaceFormatter")
-class LazyDocument {
-}
-@namespace("search.search.hits")
-class HitMetadata {
- _id: string;
- _index: string;
- _primary_term: long;
- _routing: string;
- _seq_no: long;
- @prop_serializer("SourceFormatter`1")
- _source: TDocument;
- _type: string;
- _version: long;
-}
-@namespace("search.search.hits")
-class HitsMetadata {
- hits: Hit[];
- max_score: double;
- total: TotalHits;
-}
-@namespace("search.suggesters")
-@class_serializer("SuggestDictionaryFormatter`1")
-class SuggestDictionary {
- item: Suggest[];
- keys: string[];
- values: Suggest[][];
-}
-@namespace("search.suggesters")
-class Suggest {
- length: integer;
- offset: integer;
- options: SuggestOption[];
- text: string;
-}
-@namespace("search.suggesters")
-class SuggestOption {
- collate_match: boolean;
- contexts: Dictionary;
- _score: double;
- fields: Dictionary;
- freq: long;
- highlighted: string;
- _id: string;
- _index: IndexName;
- score: double;
- @prop_serializer("SourceFormatter`1")
- _source: TDocument;
- score: double;
- text: string;
-}
-@namespace("aggregations")
-class AggregationContainer {
- adjacency_matrix: AdjacencyMatrixAggregation;
- aggs: Dictionary;
- avg: AverageAggregation;
- avg_bucket: AverageBucketAggregation;
- boxplot: BoxplotAggregation;
- bucket_script: BucketScriptAggregation;
- bucket_selector: BucketSelectorAggregation;
- bucket_sort: BucketSortAggregation;
- cardinality: CardinalityAggregation;
- children: ChildrenAggregation;
- composite: CompositeAggregation;
- cumulative_sum: CumulativeSumAggregation;
- cumulative_cardinality: CumulativeCardinalityAggregation;
- date_histogram: DateHistogramAggregation;
- auto_date_histogram: AutoDateHistogramAggregation;
- date_range: DateRangeAggregation;
- derivative: DerivativeAggregation;
- extended_stats: ExtendedStatsAggregation;
- extended_stats_bucket: ExtendedStatsBucketAggregation;
- filter: FilterAggregation;
- filters: FiltersAggregation;
- geo_bounds: GeoBoundsAggregation;
- geo_centroid: GeoCentroidAggregation;
- geo_distance: GeoDistanceAggregation;
- geohash_grid: GeoHashGridAggregation;
- geotile_grid: GeoTileGridAggregation;
- global: GlobalAggregation;
- histogram: HistogramAggregation;
- ip_range: IpRangeAggregation;
- matrix_stats: MatrixStatsAggregation;
- max: MaxAggregation;
- max_bucket: MaxBucketAggregation;
- meta: Dictionary;
- min: MinAggregation;
- min_bucket: MinBucketAggregation;
- missing: MissingAggregation;
- moving_avg: MovingAverageAggregation;
- moving_fn: MovingFunctionAggregation;
- nested: NestedAggregation;
- parent: ParentAggregation;
- percentile_ranks: PercentileRanksAggregation;
- percentiles: PercentilesAggregation;
- percentiles_bucket: PercentilesBucketAggregation;
- range: RangeAggregation;
- rare_terms: RareTermsAggregation;
- reverse_nested: ReverseNestedAggregation;
- sampler: SamplerAggregation;
- scripted_metric: ScriptedMetricAggregation;
- serial_diff: SerialDifferencingAggregation;
- significant_terms: SignificantTermsAggregation;
- significant_text: SignificantTextAggregation;
- stats: StatsAggregation;
- stats_bucket: StatsBucketAggregation;
- sum: SumAggregation;
- sum_bucket: SumBucketAggregation;
- terms: TermsAggregation;
- top_hits: TopHitsAggregation;
- value_count: ValueCountAggregation;
- weighted_avg: WeightedAverageAggregation;
- median_absolute_deviation: MedianAbsoluteDeviationAggregation;
- string_stats: StringStatsAggregation;
- top_metrics: TopMetricsAggregation;
-}
-@namespace("query_dsl.abstractions.container")
-@class_serializer("QueryContainerInterfaceFormatter")
-class QueryContainer {
- bool: BoolQuery;
- boosting: BoostingQuery;
- common: CommonTermsQuery;
- constant_score: ConstantScoreQuery;
- dis_max: DisMaxQuery;
- exists: ExistsQuery;
- function_score: FunctionScoreQuery;
- fuzzy: FuzzyQuery;
- geo_bounding_box: GeoBoundingBoxQuery;
- geo_distance: GeoDistanceQuery;
- geo_polygon: GeoPolygonQuery;
- geo_shape: GeoShapeQuery;
- shape: ShapeQuery;
- has_child: HasChildQuery;
- has_parent: HasParentQuery;
- ids: IdsQuery;
- intervals: IntervalsQuery;
- is_conditionless: boolean;
- is_strict: boolean;
- is_verbatim: boolean;
- is_writable: boolean;
- match: MatchQuery;
- match_all: MatchAllQuery;
- match_bool_prefix: MatchBoolPrefixQuery;
- match_none: MatchNoneQuery;
- match_phrase: MatchPhraseQuery;
- match_phrase_prefix: MatchPhrasePrefixQuery;
- more_like_this: MoreLikeThisQuery;
- multi_match: MultiMatchQuery;
- nested: NestedQuery;
- parent_id: ParentIdQuery;
- percolate: PercolateQuery;
- prefix: PrefixQuery;
- query_string: QueryStringQuery;
- range: RangeQuery;
- raw_query: RawQuery;
- regexp: RegexpQuery;
- script: ScriptQuery;
- script_score: ScriptScoreQuery;
- simple_query_string: SimpleQueryStringQuery;
- span_containing: SpanContainingQuery;
- field_masking_span: SpanFieldMaskingQuery;
- span_first: SpanFirstQuery;
- span_multi: SpanMultiTermQuery;
- span_near: SpanNearQuery;
- span_not: SpanNotQuery;
- span_or: SpanOrQuery;
- span_term: SpanTermQuery;
- span_within: SpanWithinQuery;
- term: TermQuery;
- terms: TermsQuery;
- terms_set: TermsSetQuery;
- wildcard: WildcardQuery;
- rank_feature: RankFeatureQuery;
- distance_feature: DistanceFeatureQuery;
- pinned: PinnedQuery;
-}
-@namespace("query_dsl.abstractions.query")
-class Query {
- boost: double;
- conditionless: boolean;
- is_strict: boolean;
- is_verbatim: boolean;
- is_writable: boolean;
- _name: string;
-}
-@namespace("query_dsl.compound.function_score.functions")
-@class_serializer("ScoreFunctionJsonFormatter")
-class ScoreFunction {
- filter: QueryContainer;
- weight: double;
-}
-@namespace("query_dsl.geo.bounding_box")
-class BoundingBox {
- bottom_right: GeoLocation;
- top_left: GeoLocation;
- wkt: string;
-}
-@namespace("query_dsl.abstractions.field_lookup")
-class FieldLookup {
- id: Id;
- index: IndexName;
- path: Field;
- routing: Routing;
-}
-@namespace("query_dsl.geo.shape")
-@class_serializer("GeoShapeFormatter")
-class GeoShape {
- type: string;
-}
-@namespace("search.search.inner_hits")
-class InnerHits {
- collapse: FieldCollapse;
- docvalue_fields: Field[];
- explain: boolean;
- from: integer;
- highlight: Highlight;
- ignore_unmapped: boolean;
- name: string;
- script_fields: Dictionary;
- size: integer;
- sort: Sort[];
- _source: Union;
- version: boolean;
-}
-@namespace("search.search.collapsing")
-class FieldCollapse {
- field: Field;
- inner_hits: InnerHits;
- max_concurrent_group_searches: integer;
-}
-@namespace("search.search.highlighting")
-class Highlight {
- boundary_chars: string;
- boundary_max_scan: integer;
- boundary_scanner: BoundaryScanner;
- boundary_scanner_locale: string;
- encoder: HighlighterEncoder;
- fields: Dictionary;
- fragmenter: HighlighterFragmenter;
- fragment_offset: integer;
- fragment_size: integer;
- max_fragment_length: integer;
- no_match_size: integer;
- number_of_fragments: integer;
- order: HighlighterOrder;
- post_tags: string[];
- pre_tags: string[];
- require_field_match: boolean;
- tags_schema: HighlighterTagsSchema;
-}
-@namespace("search.search.highlighting")
-class HighlightField {
- boundary_chars: string;
- boundary_max_scan: integer;
- boundary_scanner: BoundaryScanner;
- boundary_scanner_locale: string;
- field: Field;
- force_source: boolean;
- fragmenter: HighlighterFragmenter;
- fragment_offset: integer;
- fragment_size: integer;
- highlight_query: QueryContainer;
- matched_fields: Field[];
- max_fragment_length: integer;
- no_match_size: integer;
- number_of_fragments: integer;
- order: HighlighterOrder;
- phrase_limit: integer;
- post_tags: string[];
- pre_tags: string[];
- require_field_match: boolean;
- tags_schema: HighlighterTagsSchema;
- type: Union;
-}
-@namespace("common_options.scripting")
-class ScriptField {
- script: Script;
-}
-@namespace("common_options.scripting")
-@class_serializer("ScriptFormatter")
-class Script {
- lang: string;
- params: Dictionary;
-}
-@namespace("search.search.sort")
-@class_serializer("SortFormatter")
-class Sort {
- missing: any;
- mode: SortMode;
- numeric_type: NumericType;
- nested: NestedSort;
- order: SortOrder;
- sort_key: Field;
-}
-@namespace("search.search.sort")
-class NestedSort {
- filter: QueryContainer;
- nested: NestedSort;
- path: Field;
- max_children: integer;
-}
-@namespace("search.search.source_filtering")
-@class_serializer("SourceFilterFormatter")
-class SourceFilter {
- excludes: Field[];
- includes: Field[];
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsContainer {
- all_of: IntervalsAllOf;
- any_of: IntervalsAnyOf;
- fuzzy: IntervalsFuzzy;
- match: IntervalsMatch;
- prefix: IntervalsPrefix;
- wildcard: IntervalsWildcard;
-}
-@namespace("query_dsl.full_text.intervals")
-class Intervals {
- filter: IntervalsFilter;
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsFilter {
- after: IntervalsContainer;
- before: IntervalsContainer;
- contained_by: IntervalsContainer;
- containing: IntervalsContainer;
- not_contained_by: IntervalsContainer;
- not_containing: IntervalsContainer;
- not_overlapping: IntervalsContainer;
- overlapping: IntervalsContainer;
- script: Script;
-}
-@namespace("common_options.fuzziness")
-@class_serializer("FuzzinessInterfaceFormatter")
-class Fuzziness {
- auto: boolean;
- low: integer;
- high: integer;
- edit_distance: integer;
- ratio: double;
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsNoFilter {
-}
-@namespace("query_dsl.specialized.more_like_this.like")
-class LikeDocument {
- @prop_serializer("SourceFormatter`1")
- doc: any;
- fields: Field[];
- _id: Id;
- _index: IndexName;
- per_field_analyzer: Dictionary;
- routing: Routing;
-}
-@namespace("query_dsl.specialized.rank_feature")
-class RankFeatureFunction {
-}
-@namespace("common_options.date_math")
-class DateMath extends String {}
-@namespace("aggregations")
-class Aggregation {
- meta: Dictionary;
- name: string;
-}
-@namespace("aggregations.pipeline")
-@class_serializer("BucketsPathFormatter")
-class BucketsPath {
-}
-@namespace("aggregations.bucket.composite")
-@class_serializer("CompositeAggregationSourceFormatter")
-class CompositeAggregationSource {
- field: Field;
- missing_bucket: boolean;
- name: string;
- order: SortOrder;
- source_type: string;
-}
-@namespace("aggregations.bucket.date_range")
-class DateRangeExpression {
- from: DateMath;
- key: string;
- to: DateMath;
-}
-@namespace("common_options.range")
-class AggregationRange {
- from: double;
- key: string;
- to: double;
-}
-@namespace("aggregations.bucket.ip_range")
-class IpRangeAggregationRange {
- from: string;
- mask: string;
- to: string;
-}
-@namespace("aggregations.pipeline.moving_average.models")
-class MovingAverageModel {
- name: string;
-}
-@namespace("aggregations.metric.percentiles.methods")
-class PercentilesMethod {
-}
-@namespace("aggregations.bucket.significant_terms.heuristics")
-class ChiSquareHeuristic {
- background_is_superset: boolean;
- include_negatives: boolean;
-}
-@namespace("aggregations.bucket.significant_terms.heuristics")
-class GoogleNormalizedDistanceHeuristic {
- background_is_superset: boolean;
-}
-@namespace("aggregations.bucket.significant_terms.heuristics")
-class MutualInformationHeuristic {
- background_is_superset: boolean;
- include_negatives: boolean;
-}
-@namespace("aggregations.bucket.significant_terms.heuristics")
-class PercentageScoreHeuristic {
-}
-@namespace("aggregations.bucket.significant_terms.heuristics")
-class ScriptedHeuristic {
- script: Script;
-}
-@namespace("aggregations.metric.weighted_average")
-class WeightedAverageValue {
- field: Field;
- missing: double;
- script: Script;
-}
-@namespace("aggregations.metric.top_metrics")
-class TopMetricsValue {
- field: Field;
-}
-@namespace("search.search.rescoring")
-class Rescore {
- query: RescoreQuery;
- window_size: integer;
-}
-@namespace("search.search.rescoring")
-class RescoreQuery {
- rescore_query: QueryContainer;
- query_weight: double;
- rescore_query_weight: double;
- score_mode: ScoreMode;
-}
-@namespace("search.suggesters")
-class SuggestBucket {
- completion: CompletionSuggester;
- phrase: PhraseSuggester;
- prefix: string;
- regex: string;
- term: TermSuggester;
- text: string;
-}
-@namespace("search.suggesters.context_suggester")
-class SuggestContextQuery {
- boost: double;
- context: Context;
- neighbours: Union;
- precision: Union;
- prefix: boolean;
-}
-@namespace("search.suggesters.completion_suggester")
-class SuggestFuzziness {
- fuzziness: Fuzziness;
- min_length: integer;
- prefix_length: integer;
- transpositions: boolean;
- unicode_aware: boolean;
-}
-@namespace("search.suggesters")
-class Suggester {
- analyzer: string;
- field: Field;
- size: integer;
-}
-@namespace("search.suggesters.phrase_suggester")
-class PhraseSuggestCollate {
- params: Dictionary;
- prune: boolean;
- query: PhraseSuggestCollateQuery;
-}
-@namespace("search.suggesters.phrase_suggester")
-class PhraseSuggestCollateQuery {
- id: Id;
- source: string;
-}
-@namespace("search.suggesters.phrase_suggester")
-class DirectGenerator {
- field: Field;
- max_edits: integer;
- max_inspections: float;
- max_term_freq: float;
- min_doc_freq: float;
- min_word_length: integer;
- post_filter: string;
- pre_filter: string;
- prefix_length: integer;
- size: integer;
- suggest_mode: SuggestMode;
-}
-@namespace("search.suggesters.phrase_suggester")
-class PhraseSuggestHighlight {
- post_tag: string;
- pre_tag: string;
-}
-@namespace("search.suggesters.phrase_suggester.smoothing_model")
-class SmoothingModelContainer {
- laplace: LaplaceSmoothingModel;
- linear_interpolation: LinearInterpolationSmoothingModel;
- stupid_backoff: StupidBackoffSmoothingModel;
-}
-@namespace("search.suggesters.phrase_suggester.smoothing_model")
-class SmoothingModel {
-}
-@namespace("search")
-class TypedSearchRequest {
-}
-@namespace("mapping.meta_fields")
-class FieldMapping {
-}
-@namespace("mapping.types")
-class PropertyWithClrOrigin {
-}
-@namespace("modules.indices.fielddata")
-class Fielddata {
- filter: FielddataFilter;
- loading: FielddataLoading;
-}
-@namespace("modules.indices.fielddata")
-class FielddataFilter {
- frequency: FielddataFrequencyFilter;
- regex: FielddataRegexFilter;
-}
-@namespace("modules.indices.fielddata")
-class FielddataFrequencyFilter {
- max: double;
- min: double;
- min_segment_size: integer;
-}
-@namespace("modules.indices.fielddata")
-class FielddataRegexFilter {
- pattern: string;
-}
-@namespace("indices.alias_management.alias.actions")
-@class_serializer("AliasActionFormatter")
-class AliasAction {
-}
-@namespace("document.multiple.bulk.bulk_operation")
-class BulkOperation {
- _id: Id;
- _index: IndexName;
- operation: string;
- retry_on_conflict: integer;
- routing: Routing;
- version: long;
- version_type: VersionType;
-}
-/** namespace:cat **/
-interface ICatRecord {
-}
-@namespace("indices.alias_management")
-class Alias {
- filter: QueryContainer;
- index_routing: Routing;
- is_write_index: boolean;
- is_hidden: boolean;
- routing: Routing;
- search_routing: Routing;
-}
-@namespace("cluster.cluster_reroute.commands")
-@class_serializer("ClusterRerouteCommandFormatter")
-class ClusterRerouteCommand {
- name: string;
-}
-@namespace("mapping.types.specialized.completion")
-@class_serializer("SuggestContextFormatter")
-class SuggestContext {
- name: string;
- path: Field;
- type: string;
-}
-@namespace("x_pack.security.api_key.create_api_key")
-class ApiKeyRole {
- cluster: string[];
- index: ApiKeyPrivileges[];
-}
-@namespace("x_pack.security.api_key.create_api_key")
-class ApiKeyPrivileges {
- names: string[];
- privileges: string[];
-}
-@namespace("x_pack.cross_cluster_replication.auto_follow.get_auto_follow_pattern")
-class AutoFollowPattern {
- follow_index_pattern: string;
- leader_index_patterns: string[];
- max_outstanding_read_requests: long;
- max_outstanding_write_requests: integer;
- read_poll_timeout: Time;
- max_read_request_operation_count: integer;
- max_read_request_size: string;
- max_retry_delay: Time;
- max_write_buffer_count: integer;
- max_write_buffer_size: string;
- max_write_request_operation_count: integer;
- max_write_request_size: string;
- remote_cluster: string;
-}
-@namespace("mapping")
-class TypeMapping {
- all_field: AllField;
- date_detection: boolean;
- @prop_serializer("DynamicMappingFormatter")
- dynamic: Union;
- dynamic_date_formats: string[];
- dynamic_templates: Dictionary;
- _field_names: FieldNamesField;
- index_field: IndexField;
- _meta: Dictionary;
- numeric_detection: boolean;
- properties: Dictionary;
- _routing: RoutingField;
- _size: SizeField;
- _source: SourceField;
-}
-@namespace("mapping.dynamic_template")
-class DynamicTemplate {
- mapping: IProperty;
- match: string;
- match_mapping_type: string;
- match_pattern: MatchType;
- path_match: string;
- path_unmatch: string;
- unmatch: string;
-}
-@namespace("index_modules.index_settings")
-class IndexState {
- aliases: Dictionary;
- mappings: TypeMapping;
- settings: Dictionary;
-}
-@namespace("modules.snapshot_and_restore.repositories")
-class SnapshotRepository {
- type: string;
-}
-@namespace("x_pack.roll_up.rollup_configuration")
-class RollupGroupings {
- date_histogram: DateHistogramRollupGrouping;
- histogram: HistogramRollupGrouping;
- terms: TermsRollupGrouping;
-}
-@namespace("x_pack.roll_up.rollup_configuration")
-class DateHistogramRollupGrouping {
- delay: Time;
- field: Field;
- format: string;
- interval: Time;
- time_zone: string;
-}
-@namespace("x_pack.roll_up.rollup_configuration")
-class HistogramRollupGrouping {
- fields: Field[];
- interval: long;
-}
-@namespace("x_pack.roll_up.rollup_configuration")
-class TermsRollupGrouping {
- fields: Field[];
-}
-@namespace("x_pack.roll_up.rollup_configuration")
-class RollupFieldMetric {
- field: Field;
- metrics: RollupMetric[];
-}
-@namespace("search.scroll.scroll")
-class SlicedScroll {
- field: Field;
- id: integer;
- max: integer;
-}
-@namespace("x_pack.machine_learning.job.config")
-class AnalysisConfig {
- bucket_span: Time;
- categorization_field_name: Field;
- categorization_filters: string[];
- detectors: Detector[];
- influencers: Field[];
- latency: Time;
- multivariate_by_fields: boolean;
- summary_count_field_name: Field;
-}
-@namespace("x_pack.machine_learning.job.detectors")
-@class_serializer("DetectorFormatter")
-class Detector {
- custom_rules: DetectionRule[];
- detector_description: string;
- detector_index: integer;
- exclude_frequent: ExcludeFrequent;
- function: string;
- use_null: boolean;
-}
-@namespace("x_pack.machine_learning.job.detectors")
-class DetectionRule {
- actions: RuleAction[];
- conditions: RuleCondition[];
- scope: Dictionary;
-}
-@namespace("x_pack.machine_learning.job.detectors")
-class RuleCondition {
- applies_to: AppliesTo;
- operator: ConditionOperator;
- value: double;
-}
-@namespace("modules.scripting.execute_painless_script")
-class PainlessContextSetup {
- document: any;
- index: IndexName;
- query: QueryContainer;
-}
-@namespace("x_pack.watcher.trigger")
-class TriggerEvent {
-}
-@namespace("x_pack.watcher")
-class Watch {
- actions: Dictionary;
- condition: ConditionContainer;
- input: InputContainer;
- metadata: Dictionary;
- status: WatchStatus;
- throttle_period: string;
- transform: TransformContainer;
- trigger: TriggerContainer;
-}
-@namespace("x_pack.watcher.action")
-class Action {
- action_type: ActionType;
- name: string;
- throttle_period: Time;
- foreach: string;
- max_iterations: integer;
- transform: TransformContainer;
- condition: ConditionContainer;
-}
-@namespace("x_pack.watcher.transform")
-class TransformContainer {
- chain: ChainTransform;
- script: ScriptTransform;
- search: SearchTransform;
-}
-@namespace("x_pack.watcher.transform")
-class Transform {
-}
-@namespace("x_pack.watcher.input")
-class SearchInputRequest {
- body: SearchRequest;
- indices: IndexName[];
- indices_options: IndicesOptions;
- search_type: SearchType;
- template: SearchTemplateRequest;
-}
-@namespace("x_pack.watcher.input")
-class IndicesOptions {
- allow_no_indices: boolean;
- expand_wildcards: ExpandWildcards;
- ignore_unavailable: boolean;
-}
-@namespace("x_pack.watcher.condition")
-class ConditionContainer {
- always: AlwaysCondition;
- array_compare: ArrayCompareCondition;
- compare: CompareCondition;
- never: NeverCondition;
- script: ScriptCondition;
-}
-@namespace("x_pack.watcher.condition")
-class Condition {
-}
-@namespace("x_pack.watcher.condition")
-@class_serializer("ArrayCompareConditionFormatter")
-class ArrayCompareCondition {
- array_path: string;
- comparison: string;
- path: string;
- quantifier: Quantifier;
- value: any;
-}
-@namespace("x_pack.watcher.input")
-class InputContainer {
- chain: ChainInput;
- http: HttpInput;
- search: SearchInput;
- simple: SimpleInput;
-}
-@namespace("x_pack.watcher.input")
-class Input {
-}
-@namespace("x_pack.watcher.input")
-class HttpInputRequest {
- auth: HttpInputAuthentication;
- body: string;
- connection_timeout: Time;
- headers: Dictionary;
- host: string;
- method: HttpInputMethod;
- params: Dictionary;
- path: string;
- port: integer;
- proxy: HttpInputProxy;
- read_timeout: Time;
- scheme: ConnectionScheme;
- url: string;
-}
-@namespace("x_pack.watcher.input")
-class HttpInputAuthentication {
- basic: HttpInputBasicAuthentication;
-}
-@namespace("x_pack.watcher.input")
-class HttpInputBasicAuthentication {
- password: string;
- username: string;
-}
-@namespace("x_pack.watcher.input")
-class HttpInputProxy {
- host: string;
- port: integer;
-}
-@namespace("x_pack.watcher.trigger")
-@class_serializer("TriggerContainerInterfaceFormatter")
-class TriggerContainer {
- schedule: ScheduleContainer;
-}
-@namespace("x_pack.watcher.schedule")
-class ScheduleContainer {
- cron: CronExpression;
- daily: DailySchedule;
- hourly: HourlySchedule;
- interval: Interval;
- monthly: TimeOfMonth[];
- weekly: TimeOfWeek[];
- yearly: TimeOfYear[];
-}
-@namespace("x_pack.watcher.schedule")
-class Schedule {
-}
-@namespace("x_pack.watcher.schedule")
-class TimeOfDay {
- hour: integer[];
- minute: integer[];
-}
-@namespace("x_pack.watcher.schedule")
-class TimeOfMonth {
- @prop_serializer("SingleOrEnumerableFormatter`1")
- at: string[];
- @prop_serializer("SingleOrEnumerableFormatter`1")
- on: integer[];
-}
-@namespace("x_pack.watcher.schedule")
-class TimeOfWeek {
- @prop_serializer("SingleOrEnumerableFormatter`1")
- at: string[];
- @prop_serializer("SingleOrEnumerableFormatter`1")
- on: Day[];
-}
-@namespace("x_pack.watcher.schedule")
-class TimeOfYear {
- @prop_serializer("SingleOrEnumerableFormatter`1")
- at: string[];
- @prop_serializer("SingleOrEnumerableFormatter`1")
- int: Month[];
- @prop_serializer("SingleOrEnumerableFormatter`1")
- on: integer[];
-}
-@namespace("x_pack.watcher.action.email")
-class EmailBody {
- html: string;
- text: string;
-}
-@namespace("x_pack.watcher.action.pager_duty")
-class PagerDutyContext {
- href: string;
- src: string;
- type: PagerDutyContextType;
-}
-@namespace("x_pack.watcher.action.pager_duty")
-class PagerDutyEvent {
- account: string;
- attach_payload: boolean;
- client: string;
- client_url: string;
- context: PagerDutyContext[];
- description: string;
- event_type: PagerDutyEventType;
- incident_key: string;
-}
-@namespace("x_pack.watcher.action.slack")
-class SlackMessage {
- attachments: SlackAttachment[];
- dynamic_attachments: SlackDynamicAttachment;
- from: string;
- icon: string;
- text: string;
- to: string[];
-}
-@namespace("x_pack.watcher.action.slack")
-class SlackAttachment {
- author_icon: string;
- author_link: string;
- author_name: string;
- color: string;
- fallback: string;
- fields: SlackAttachmentField[];
- footer: string;
- footer_icon: string;
- image_url: string;
- pretext: string;
- text: string;
- thumb_url: string;
- title: string;
- title_link: string;
- @prop_serializer("NullableDateTimeOffsetEpochSecondsFormatter")
- ts: Date;
-}
-@namespace("x_pack.watcher.action.slack")
-class SlackAttachmentField {
- short: boolean;
- title: string;
- value: string;
-}
-@namespace("x_pack.watcher.action.slack")
-class SlackDynamicAttachment {
- attachment_template: SlackAttachment;
- list_path: string;
-}
-@namespace("x_pack.watcher.trigger")
-class TriggerEventContainer {
- schedule: ScheduleTriggerEvent;
-}
-@namespace("search.explain")
-class InlineGet {
- fields: Dictionary;
- found: boolean;
- @prop_serializer("SourceFormatter`1")
- _source: TDocument;
-}
-@namespace("x_pack.machine_learning.job")
-class Page {
- from: integer;
- size: integer;
-}
-@namespace("x_pack.machine_learning.datafeed")
-class ChunkingConfig {
- mode: ChunkingMode;
- time_span: Time;
-}
-@namespace("x_pack.enrich")
-class EnrichPolicy {
- @prop_serializer("IndicesFormatter")
- indices: Indices;
- match_field: Field;
- enrich_fields: Field[];
- query: string;
-}
-@namespace("indices.index_settings.index_templates.get_index_template")
-class TemplateMapping {
- aliases: Dictionary;
- index_patterns: string[];
- mappings: TypeMapping;
- order: integer;
- settings: Dictionary;
- version: integer;
-}
-@namespace("x_pack.machine_learning.job.config")
-class AnalysisLimits {
- categorization_examples_limit: long;
- model_memory_limit: string;
-}
-@namespace("x_pack.machine_learning.job.config")
-class DataDescription {
- format: string;
- time_field: Field;
- time_format: string;
-}
-@namespace("x_pack.machine_learning.job.config")
-class ModelPlotConfigEnabled {
- enabled: boolean;
-}
-@namespace("x_pack.ilm")
-class Phases {
- cold: Phase;
- delete: Phase;
- hot: Phase;
- warm: Phase;
-}
-@namespace("x_pack.ilm")
-class Phase {
- actions: Dictionary;
- min_age: Time;
-}
-@namespace("x_pack.ilm.actions")
-class LifecycleAction {
-}
-@namespace("x_pack.ilm")
-class Policy {
- phases: Phases;
-}
-@namespace("ingest")
-class Pipeline {
- description: string;
- on_failure: Processor[];
- processors: Processor[];
-}
-@namespace("ingest")
-@class_serializer("ProcessorFormatter")
-class Processor {
- name: string;
- on_failure: Processor[];
- if: string;
- tag: string;
- ignore_failure: boolean;
-}
-@namespace("x_pack.security.privileges.put_privileges")
-class PrivilegesActions {
- actions: string[];
- metadata: Dictionary;
-}
-@namespace("x_pack.security.role.put_role")
-class IndicesPrivileges {
- field_security: FieldSecurity;
- @prop_serializer("IndicesFormatter")
- names: Indices;
- privileges: string[];
- query: QueryContainer;
-}
-@namespace("x_pack.security.role")
-class FieldSecurity {
- except: Field[];
- grant: Field[];
-}
-@namespace("modules.scripting")
-class StoredScript {
- lang: string;
- source: string;
-}
-@namespace("x_pack.slm")
-class SnapshotLifecycleConfig {
- ignore_unavailable: boolean;
- include_global_state: boolean;
- @prop_serializer("IndicesMultiSyntaxFormatter")
- indices: Indices;
-}
-@namespace("x_pack.slm")
-class SnapshotRetentionConfiguration {
- expire_after: Time;
- min_count: integer;
- max_count: integer;
-}
-@namespace("x_pack.slm")
-class SnapshotLifecyclePolicy {
- config: SnapshotLifecycleConfig;
- name: string;
- repository: string;
- schedule: CronExpression;
- retention: SnapshotRetentionConfiguration;
-}
-@namespace("x_pack.transform")
-class TransformSource {
- @prop_serializer("IndicesFormatter")
- index: Indices;
- query: QueryContainer;
-}
-@namespace("x_pack.transform")
-class TransformDestination {
- index: IndexName;
- pipeline: string;
-}
-@namespace("x_pack.transform.pivot")
-class TransformPivot {
- max_page_search_size: integer;
- aggregations: Dictionary;
- group_by: Dictionary;
-}
-@namespace("x_pack.transform.pivot")
-@class_serializer("SingleGroupSourceFormatter")
-class SingleGroupSource {
- field: Field;
- script: Script;
-}
-@namespace("x_pack.transform")
-class TransformSyncContainer {
- time: TransformTimeSync;
-}
-@namespace("x_pack.transform")
-class TransformSync {
-}
-@namespace("x_pack.graph.explore.request")
-class Hop {
- connections: Hop;
- query: QueryContainer;
- vertices: GraphVertexDefinition[];
-}
-@namespace("x_pack.graph.explore.request")
-class GraphVertexDefinition {
- exclude: string[];
- field: Field;
- include: GraphVertexInclude[];
- min_doc_count: long;
- shard_min_doc_count: long;
- size: integer;
-}
-@namespace("x_pack.graph.explore.request")
-class GraphExploreControls {
- sample_diversity: SampleDiversity;
- sample_size: integer;
- timeout: Time;
- use_significance: boolean;
-}
-@namespace("x_pack.security.privileges.has_privileges")
-class ApplicationPrivilegesCheck {
- application: string;
- privileges: string[];
- resources: string[];
-}
-@namespace("x_pack.security.privileges.has_privileges")
-class IndexPrivilegesCheck {
- names: string[];
- privileges: string[];
-}
-@namespace("modules.indices")
-class IndicesModuleSettings {
- circuit_breaker_settings: CircuitBreakerSettings;
- fielddata_settings: FielddataSettings;
- qeueries_cache_size: string;
- recovery_settings: IndicesRecoverySettings;
-}
-@namespace("modules.indices.circuit_breaker")
-class CircuitBreakerSettings {
- fielddata_limit: string;
- fielddata_overhead: float;
- request_limit: string;
- request_overhead: float;
- total_limit: string;
-}
-@namespace("modules.indices.recovery")
-class IndicesRecoverySettings {
- compress: boolean;
- concurrent_small_file_streams: integer;
- concurrent_streams: integer;
- file_chunk_size: string;
- max_bytes_per_second: string;
- translog_operations: integer;
- translog_size: string;
-}
-@namespace("x_pack.ilm.move_to_step")
-class StepKey {
- action: string;
- name: string;
- phase: string;
-}
-@namespace("document.multiple.multi_get.request")
-class MultiGetOperation {
- can_be_flattened: boolean;
- _id: Id;
- _index: IndexName;
- routing: string;
- _source: Union;
- stored_fields: Field[];
- version: long;
- version_type: VersionType;
-}
-@namespace("document.multiple.multi_get.response")
-class MultiGetHit {
- error: MainError;
- found: boolean;
- id: string;
- index: string;
- routing: string;
- source: TDocument;
- type: string;
- version: long;
- sequence_number: long;
- primary_term: long;
-}
-@namespace("document.multiple.multi_term_vectors")
-class MultiTermVectorOperation {
- @prop_serializer("SourceFormatter`1")
- doc: any;
- field_statistics: boolean;
- filter: TermVectorFilter;
- _id: Id;
- _index: IndexName;
- offsets: boolean;
- payloads: boolean;
- positions: boolean;
- routing: Routing;
- fields: Field[];
- term_statistics: boolean;
- version: long;
- version_type: VersionType;
-}
-@namespace("document.single.term_vectors")
-class TermVectorFilter {
- max_doc_freq: integer;
- max_num_terms: integer;
- max_term_freq: integer;
- max_word_length: integer;
- min_doc_freq: integer;
- min_term_freq: integer;
- min_word_length: integer;
-}
-@namespace("document.single.term_vectors")
-class TermVectors {
- found: boolean;
- id: string;
- index: string;
- term_vectors: Dictionary;
- took: long;
- version: long;
-}
-@namespace("x_pack.security.role.put_role")
-class ApplicationPrivileges {
- application: string;
- privileges: string[];
- resources: string[];
-}
-@namespace("x_pack.sql")
-class SqlRequest {
- fetch_size: integer;
- filter: QueryContainer;
- query: string;
- time_zone: string;
-}
-@namespace("document.multiple.reindex_on_server")
-class ReindexDestination {
- index: IndexName;
- op_type: OpType;
- pipeline: string;
- routing: ReindexRouting;
- version_type: VersionType;
-}
-@namespace("document.multiple.reindex_on_server")
-class ReindexSource {
- index: Indices;
- query: QueryContainer;
- remote: RemoteSource;
- size: integer;
- slice: SlicedScroll;
- sort: Sort[];
- _source: Field[];
-}
-@namespace("document.multiple.reindex_on_server")
-class RemoteSource {
- host: Uri;
- password: string;
- username: string;
- socket_timeout: Time;
- connect_timeout: Time;
-}
-@namespace("indices.index_management.rollover_index")
-class RolloverConditions {
- max_age: Time;
- max_docs: long;
- max_size: string;
-}
-@namespace("ingest.simulate_pipeline")
-class SimulatePipelineDocument {
- _id: Id;
- _index: IndexName;
- @prop_serializer("SourceFormatter`1")
- _source: any;
-}
-@namespace("mapping.types.core.text")
-class TextIndexPrefixes {
- max_chars: integer;
- min_chars: integer;
-}
-@namespace("x_pack.machine_learning.job.config")
-class AnalysisMemoryLimit {
- model_memory_limit: string;
-}
-/** namespace:common_abstractions.response **/
-interface IResponse {
- server_error: ServerError;
-}
-@namespace("search.search.hits")
-class Hit {
- _explanation: Explanation;
- fields: Dictionary;
- highlight: Dictionary;
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- inner_hits: Dictionary;
- _nested: NestedIdentity;
- matched_queries: string[];
- _score: double;
- sort: any[];
-}
-@namespace("query_dsl.compound.bool")
-class BoolQuery {
- filter: QueryContainer[];
- locked: boolean;
- minimum_should_match: MinimumShouldMatch;
- must: QueryContainer[];
- must_not: QueryContainer[];
- should: QueryContainer[];
-}
-@namespace("query_dsl.compound.boosting")
-class BoostingQuery {
- negative_boost: double;
- negative: QueryContainer;
- positive: QueryContainer;
-}
-@namespace("query_dsl.abstractions.field_name")
-class FieldNameQuery {
- field: Field;
-}
-@namespace("query_dsl.compound.constant_score")
-class ConstantScoreQuery {
- filter: QueryContainer;
-}
-@namespace("query_dsl.compound.dismax")
-class DisMaxQuery {
- queries: QueryContainer[];
- tie_breaker: double;
-}
-@namespace("query_dsl.term_level.exists")
-class ExistsQuery {
- field: Field;
-}
-@namespace("query_dsl.compound.function_score")
-class FunctionScoreQuery {
- boost_mode: FunctionBoostMode;
- functions: ScoreFunction[];
- max_boost: double;
- min_score: double;
- query: QueryContainer;
- score_mode: FunctionScoreMode;
-}
-@namespace("query_dsl.joining.has_child")
-class HasChildQuery {
- ignore_unmapped: boolean;
- inner_hits: InnerHits;
- max_children: integer;
- min_children: integer;
- query: QueryContainer;
- score_mode: ChildScoreMode;
- type: RelationName;
-}
-@namespace("query_dsl.joining.has_parent")
-class HasParentQuery {
- ignore_unmapped: boolean;
- inner_hits: InnerHits;
- parent_type: RelationName;
- query: QueryContainer;
- score: boolean;
-}
-@namespace("query_dsl.term_level.ids")
-class IdsQuery {
- values: Id[];
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsAllOf {
- intervals: IntervalsContainer[];
- max_gaps: integer;
- ordered: boolean;
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsAnyOf {
- intervals: IntervalsContainer[];
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsFuzzy {
- analyzer: string;
- prefix_length: integer;
- transpositions: boolean;
- fuzziness: Fuzziness;
- term: string;
- use_field: Field;
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsMatch {
- analyzer: string;
- max_gaps: integer;
- ordered: boolean;
- query: string;
- use_field: Field;
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsPrefix {
- analyzer: string;
- prefix: string;
- use_field: Field;
-}
-@namespace("query_dsl.full_text.intervals")
-class IntervalsWildcard {
- analyzer: string;
- pattern: string;
- use_field: Field;
-}
-@namespace("query_dsl")
-class MatchAllQuery {
- norm_field: string;
-}
-@namespace("query_dsl")
-class MatchNoneQuery {
-}
-@namespace("query_dsl.specialized.more_like_this")
-class MoreLikeThisQuery {
- analyzer: string;
- boost_terms: double;
- fields: Field[];
- include: boolean;
- like: Like[];
- max_doc_freq: integer;
- max_query_terms: integer;
- max_word_length: integer;
- min_doc_freq: integer;
- minimum_should_match: MinimumShouldMatch;
- min_term_freq: integer;
- min_word_length: integer;
- per_field_analyzer: Dictionary;
- routing: Routing;
- stop_words: StopWords;
- unlike: Like[];
- version: long;
- version_type: VersionType;
-}
-@namespace("query_dsl.full_text.multi_match")
-class MultiMatchQuery {
- analyzer: string;
- auto_generate_synonyms_phrase_query: boolean;
- cutoff_frequency: double;
- fields: Field[];
- fuzziness: Fuzziness;
- fuzzy_rewrite: MultiTermQueryRewrite;
- fuzzy_transpositions: boolean;
- lenient: boolean;
- max_expansions: integer;
- minimum_should_match: MinimumShouldMatch;
- operator: Operator;
- prefix_length: integer;
- query: string;
- slop: integer;
- tie_breaker: double;
- type: TextQueryType;
- use_dis_max: boolean;
- zero_terms_query: ZeroTermsQuery;
-}
-@namespace("query_dsl.joining.nested")
-class NestedQuery {
- ignore_unmapped: boolean;
- inner_hits: InnerHits;
- path: Field;
- query: QueryContainer;
- score_mode: NestedScoreMode;
-}
-@namespace("query_dsl.joining.parent_id")
-class ParentIdQuery {
- id: Id;
- ignore_unmapped: boolean;
- type: RelationName;
-}
-@namespace("query_dsl.specialized.percolate")
-class PercolateQuery {
- @prop_serializer("SourceFormatter`1")
- document: any;
- @prop_serializer("SourceFormatter`1")
- documents: any[];
- field: Field;
- id: Id;
- index: IndexName;
- preference: string;
- routing: Routing;
- version: long;
-}
-@namespace("query_dsl.full_text.query_string")
-class QueryStringQuery {
- allow_leading_wildcard: boolean;
- analyzer: string;
- analyze_wildcard: boolean;
- auto_generate_synonyms_phrase_query: boolean;
- default_field: Field;
- default_operator: Operator;
- enable_position_increments: boolean;
- escape: boolean;
- fields: Field[];
- fuzziness: Fuzziness;
- fuzzy_max_expansions: integer;
- fuzzy_prefix_length: integer;
- fuzzy_rewrite: MultiTermQueryRewrite;
- fuzzy_transpositions: boolean;
- lenient: boolean;
- max_determinized_states: integer;
- minimum_should_match: MinimumShouldMatch;
- phrase_slop: double;
- query: string;
- quote_analyzer: string;
- quote_field_suffix: string;
- rewrite: MultiTermQueryRewrite;
- tie_breaker: double;
- time_zone: string;
- type: TextQueryType;
-}
-@namespace("query_dsl.nest_specific")
-class RawQuery {
- raw: string;
-}
-@namespace("query_dsl.specialized.script")
-class ScriptQuery {
- script: Script;
-}
-@namespace("query_dsl.specialized.script_score")
-class ScriptScoreQuery {
- query: QueryContainer;
- script: Script;
-}
-@namespace("query_dsl.full_text.simple_query_string")
-class SimpleQueryStringQuery {
- analyzer: string;
- analyze_wildcard: boolean;
- auto_generate_synonyms_phrase_query: boolean;
- default_operator: Operator;
- fields: Field[];
- flags: SimpleQueryStringFlags;
- fuzzy_max_expansions: integer;
- fuzzy_prefix_length: integer;
- fuzzy_transpositions: boolean;
- lenient: boolean;
- minimum_should_match: MinimumShouldMatch;
- query: string;
- quote_field_suffix: string;
-}
-@namespace("query_dsl.span")
-class SpanQuery {
- span_containing: SpanContainingQuery;
- field_masking_span: SpanFieldMaskingQuery;
- span_first: SpanFirstQuery;
- span_gap: SpanGapQuery;
- span_multi: SpanMultiTermQuery;
- span_near: SpanNearQuery;
- span_not: SpanNotQuery;
- span_or: SpanOrQuery;
- span_term: SpanTermQuery;
- span_within: SpanWithinQuery;
-}
-@namespace("query_dsl.span")
-class SpanSubQuery {
-}
-@namespace("query_dsl.specialized.pinned")
-class PinnedQuery {
- ids: Id[];
- organic: QueryContainer;
-}
-@namespace("aggregations.bucket")
-class BucketAggregation {
- aggregations: Dictionary;
-}
-@namespace("aggregations.metric")
-class MetricAggregation {
- field: Field;
- missing: double;
- script: Script;
-}
-@namespace("aggregations.pipeline")
-class PipelineAggregation {
- buckets_path: BucketsPath;
- format: string;
- gap_policy: GapPolicy;
-}
-@namespace("aggregations.pipeline.bucket_sort")
-class BucketSortAggregation {
- from: integer;
- gap_policy: GapPolicy;
- size: integer;
- sort: Sort[];
-}
-@namespace("aggregations.matrix")
-class MatrixAggregation {
- fields: Field[];
- missing: Dictionary;
-}
-@namespace("aggregations.metric.weighted_average")
-class WeightedAverageAggregation {
- format: string;
- value: WeightedAverageValue;
- value_type: ValueType;
- weight: WeightedAverageValue;
-}
-@namespace("aggregations.metric.string_stats")
-class StringStatsAggregation {
- field: Field;
- missing: any;
- script: Script;
- show_distribution: boolean;
-}
-@namespace("search.suggesters.completion_suggester")
-class CompletionSuggester {
- contexts: Dictionary;
- fuzzy: SuggestFuzziness;
- prefix: string;
- regex: string;
- skip_duplicates: boolean;
-}
-@namespace("search.suggesters.phrase_suggester")
-class PhraseSuggester {
- collate: PhraseSuggestCollate;
- confidence: double;
- direct_generator: DirectGenerator[];
- force_unigrams: boolean;
- gram_size: integer;
- highlight: PhraseSuggestHighlight;
- max_errors: double;
- real_word_error_likelihood: double;
- separator: string;
- shard_size: integer;
- smoothing: SmoothingModelContainer;
- text: string;
- token_limit: integer;
-}
-@namespace("search.suggesters.phrase_suggester.smoothing_model")
-class LaplaceSmoothingModel {
- alpha: double;
-}
-@namespace("search.suggesters.phrase_suggester.smoothing_model")
-class LinearInterpolationSmoothingModel {
- bigram_lambda: double;
- trigram_lambda: double;
- unigram_lambda: double;
-}
-@namespace("search.suggesters.phrase_suggester.smoothing_model")
-class StupidBackoffSmoothingModel {
- discount: double;
-}
-@namespace("search.suggesters.term_suggester")
-class TermSuggester {
- lowercase_terms: boolean;
- max_edits: integer;
- max_inspections: integer;
- max_term_freq: float;
- min_doc_freq: float;
- min_word_length: integer;
- prefix_length: integer;
- shard_size: integer;
- sort: SuggestSort;
- string_distance: StringDistance;
- suggest_mode: SuggestMode;
- text: string;
-}
-/** namespace:mapping.types **/
-interface IProperty {
- local_metadata: Dictionary;
- meta: Dictionary;
- name: PropertyName;
- type: string;
-}
-@namespace("modules.indices.fielddata.numeric")
-class NumericFielddata {
- format: NumericFielddataFormat;
-}
-@namespace("mapping.meta_fields.all")
-class AllField {
- analyzer: string;
- enabled: boolean;
- omit_norms: boolean;
- search_analyzer: string;
- similarity: string;
- store: boolean;
- store_term_vector_offsets: boolean;
- store_term_vector_payloads: boolean;
- store_term_vector_positions: boolean;
- store_term_vectors: boolean;
-}
-@namespace("mapping.meta_fields.field_names")
-class FieldNamesField {
- enabled: boolean;
-}
-@namespace("mapping.meta_fields.index")
-class IndexField {
- enabled: boolean;
-}
-@namespace("mapping.meta_fields.routing")
-class RoutingField {
- required: boolean;
-}
-@namespace("mapping.meta_fields.size")
-class SizeField {
- enabled: boolean;
-}
-@namespace("mapping.meta_fields.source")
-class SourceField {
- compress: boolean;
- compress_threshold: string;
- enabled: boolean;
- excludes: string[];
- includes: string[];
-}
-@namespace("common_options.scripting")
-class InlineScript {
- source: string;
-}
-@namespace("x_pack.watcher.schedule")
-class ScheduleTriggerEvent {
- scheduled_time: Union;
- triggered_time: Union;
-}
-@namespace("x_pack.watcher.transform")
-@class_serializer("ChainTransformFormatter")
-class ChainTransform {
- transforms: TransformContainer[];
-}
-@namespace("x_pack.watcher.transform")
-@class_serializer("ScriptTransformFormatter")
-class ScriptTransform {
- lang: string;
- params: Dictionary;
-}
-@namespace("x_pack.watcher.transform")
-class SearchTransform {
- request: SearchInputRequest;
- timeout: Time;
-}
-@namespace("x_pack.watcher.condition")
-class AlwaysCondition {
-}
-@namespace("x_pack.watcher.condition")
-@class_serializer("CompareConditionFormatter")
-class CompareCondition {
- comparison: string;
- path: string;
- value: any;
-}
-@namespace("x_pack.watcher.condition")
-class NeverCondition {
-}
-@namespace("x_pack.watcher.condition")
-@class_serializer("ScriptConditionFormatter")
-class ScriptCondition {
- lang: string;
- params: Dictionary;
-}
-@namespace("x_pack.watcher.input")
-@class_serializer("ChainInputFormatter")
-class ChainInput {
- inputs: Dictionary;
-}
-@namespace("x_pack.watcher.input")
-class HttpInput {
- extract: string[];
- request: HttpInputRequest;
- response_content_type: ResponseContentType;
-}
-@namespace("x_pack.watcher.input")
-class SearchInput {
- extract: string[];
- request: SearchInputRequest;
- timeout: Time;
-}
-@namespace("x_pack.watcher.input")
-@class_serializer("SimpleInputFormatter")
-class SimpleInput {
- payload: Dictionary;
-}
-@namespace("x_pack.watcher.schedule")
-class DailySchedule {
- at: Union;
-}
-@namespace("x_pack.watcher.schedule")
-class HourlySchedule {
- minute: integer[];
-}
-@namespace("modules.indices.fielddata.string")
-class StringFielddata {
- format: StringFielddataFormat;
-}
-@namespace("x_pack.machine_learning.job.config")
-class ModelPlotConfig {
- terms: Field[];
-}
-@namespace("x_pack.transform")
-class TransformTimeSync {
- field: Field;
- delay: Time;
-}
-@namespace("aggregations.bucket.adjacency_matrix")
-class AdjacencyMatrixAggregation {
- filters: Dictionary;
-}
-@namespace("query_dsl.full_text.common_terms")
-@class_serializer("FieldNameQueryFormatter`2")
-class CommonTermsQuery {
- analyzer: string;
- cutoff_frequency: double;
- high_freq_operator: Operator;
- low_freq_operator: Operator;
- minimum_should_match: MinimumShouldMatch;
- query: string;
-}
-@namespace("query_dsl.term_level.fuzzy")
-@class_serializer("FuzzyQueryFormatter")
-class FuzzyQuery {
- max_expansions: integer;
- prefix_length: integer;
- rewrite: MultiTermQueryRewrite;
- transpositions: boolean;
-}
-@namespace("query_dsl.geo.bounding_box")
-@class_serializer("GeoBoundingBoxQueryFormatter")
-class GeoBoundingBoxQuery {
- bounding_box: BoundingBox;
- type: GeoExecution;
- validation_method: GeoValidationMethod;
-}
-@namespace("query_dsl.geo.distance")
-@class_serializer("GeoDistanceQueryFormatter")
-class GeoDistanceQuery {
- distance: Distance;
- distance_type: GeoDistanceType;
- location: GeoLocation;
- validation_method: GeoValidationMethod;
-}
-@namespace("query_dsl.geo.polygon")
-@class_serializer("GeoPolygonQueryFormatter")
-class GeoPolygonQuery {
- points: GeoLocation[];
- validation_method: GeoValidationMethod;
-}
-@namespace("query_dsl.geo.shape")
-@class_serializer("CompositeFormatter`3")
-class GeoShapeQuery {
- ignore_unmapped: boolean;
- indexed_shape: FieldLookup;
- relation: GeoShapeRelation;
- shape: GeoShape;
-}
-@namespace("query_dsl.specialized.shape")
-@class_serializer("CompositeFormatter`3")
-class ShapeQuery {
- ignore_unmapped: boolean;
- indexed_shape: FieldLookup;
- relation: ShapeRelation;
- shape: GeoShape;
-}
-@namespace("query_dsl.full_text.match")
-@class_serializer("FieldNameQueryFormatter`2")
-class MatchQuery {
- analyzer: string;
- auto_generate_synonyms_phrase_query: boolean;
- cutoff_frequency: double;
- fuzziness: Fuzziness;
- fuzzy_rewrite: MultiTermQueryRewrite;
- fuzzy_transpositions: boolean;
- lenient: boolean;
- max_expansions: integer;
- minimum_should_match: MinimumShouldMatch;
- operator: Operator;
- prefix_length: integer;
- query: string;
- zero_terms_query: ZeroTermsQuery;
-}
-@namespace("query_dsl.full_text.match_bool_prefix")
-@class_serializer("FieldNameQueryFormatter`2")
-class MatchBoolPrefixQuery {
- analyzer: string;
- fuzziness: Fuzziness;
- fuzzy_rewrite: MultiTermQueryRewrite;
- fuzzy_transpositions: boolean;
- max_expansions: integer;
- minimum_should_match: MinimumShouldMatch;
- operator: Operator;
- prefix_length: integer;
- query: string;
-}
-@namespace("query_dsl.full_text.match_phrase")
-@class_serializer("FieldNameQueryFormatter`2")
-class MatchPhraseQuery {
- analyzer: string;
- query: string;
- slop: integer;
-}
-@namespace("query_dsl.full_text.match_phrase_prefix")
-@class_serializer("FieldNameQueryFormatter`2")
-class MatchPhrasePrefixQuery {
- analyzer: string;
- max_expansions: integer;
- query: string;
- slop: integer;
- zero_terms_query: ZeroTermsQuery;
-}
-@namespace("query_dsl.term_level.term")
-@class_serializer("FieldNameQueryFormatter`2")
-class TermQuery {
- @prop_serializer("SourceWriteFormatter`1")
- value: any;
-}
-@namespace("query_dsl.term_level.range")
-@class_serializer("RangeQueryFormatter")
-class RangeQuery {
-}
-@namespace("query_dsl.term_level.regexp")
-@class_serializer("FieldNameQueryFormatter`2")
-class RegexpQuery {
- flags: string;
- max_determinized_states: integer;
- value: string;
-}
-@namespace("query_dsl.span.containing")
-class SpanContainingQuery {
- big: SpanQuery;
- little: SpanQuery;
-}
-@namespace("query_dsl.span.field_masking")
-class SpanFieldMaskingQuery {
- field: Field;
- query: SpanQuery;
-}
-@namespace("query_dsl.span.first")
-class SpanFirstQuery {
- end: integer;
- match: SpanQuery;
-}
-@namespace("query_dsl.span.gap")
-@class_serializer("SpanGapQueryFormatter")
-class SpanGapQuery {
- field: Field;
- width: integer;
-}
-@namespace("query_dsl.span.multi_term")
-class SpanMultiTermQuery {
- match: QueryContainer;
-}
-@namespace("query_dsl.span.near")
-class SpanNearQuery {
- clauses: SpanQuery[];
- in_order: boolean;
- slop: integer;
-}
-@namespace("query_dsl.span.not")
-class SpanNotQuery {
- dist: integer;
- exclude: SpanQuery;
- include: SpanQuery;
- post: integer;
- pre: integer;
-}
-@namespace("query_dsl.span.or")
-class SpanOrQuery {
- clauses: SpanQuery[];
-}
-@namespace("query_dsl.span.within")
-class SpanWithinQuery {
- big: SpanQuery;
- little: SpanQuery;
-}
-@namespace("query_dsl.term_level.terms")
-@class_serializer("TermsQueryFormatter")
-class TermsQuery {
- terms: any[];
- terms_lookup: FieldLookup;
-}
-@namespace("query_dsl.term_level.terms_set")
-@class_serializer("FieldNameQueryFormatter`2")
-class TermsSetQuery {
- minimum_should_match_field: Field;
- minimum_should_match_script: Script;
- @prop_serializer("SourceWriteFormatter`1")
- terms: any[];
-}
-@namespace("query_dsl.specialized.rank_feature")
-@class_serializer("RankFeatureQueryFormatter")
-class RankFeatureQuery {
- function: RankFeatureFunction;
-}
-@namespace("query_dsl.specialized.distance_feature")
-@class_serializer("DistanceFeatureQueryFormatter")
-class DistanceFeatureQuery {
- origin: Union;
- pivot: Union;
-}
-@namespace("aggregations.metric")
-class FormattableMetricAggregation {
- format: string;
-}
-@namespace("aggregations.pipeline.average_bucket")
-class AverageBucketAggregation {
-}
-@namespace("aggregations.metric.boxplot")
-class BoxplotAggregation {
- compression: double;
-}
-@namespace("aggregations.pipeline.bucket_script")
-class BucketScriptAggregation {
- script: Script;
-}
-@namespace("aggregations.pipeline.bucket_selector")
-class BucketSelectorAggregation {
- script: Script;
-}
-@namespace("aggregations.metric.cardinality")
-class CardinalityAggregation {
- precision_threshold: integer;
- rehash: boolean;
-}
-@namespace("aggregations.bucket.children")
-class ChildrenAggregation {
- type: RelationName;
-}
-@namespace("aggregations.bucket.composite")
-class CompositeAggregation {
- after: Dictionary;
- size: integer;
- sources: CompositeAggregationSource[];
-}
-@namespace("aggregations.pipeline.cumulative_sum")
-class CumulativeSumAggregation {
-}
-@namespace("aggregations.pipeline.cumulative_cardinality")
-class CumulativeCardinalityAggregation {
-}
-@namespace("aggregations.bucket.date_histogram")
-class DateHistogramAggregation {
- extended_bounds: ExtendedBounds;
- field: Field;
- format: string;
- interval: Union;
- calendar_interval: Union;
- fixed_interval: Union;
- min_doc_count: integer;
- missing: Date;
- offset: string;
- order: HistogramOrder;
- params: Dictionary;
- script: Script;
- time_zone: string;
-}
-@namespace("aggregations.bucket.auto_date_histogram")
-class AutoDateHistogramAggregation {
- field: Field;
- buckets: integer;
- format: string;
- missing: Date;
- offset: string;
- params: Dictionary;
- script: Script;
- time_zone: string;
- minimum_interval: MinimumInterval;
-}
-@namespace("aggregations.bucket.date_range")
-class DateRangeAggregation {
- field: Field;
- format: string;
- missing: any;
- ranges: DateRangeExpression[];
- time_zone: string;
-}
-@namespace("aggregations.pipeline.derivative")
-class DerivativeAggregation {
-}
-@namespace("aggregations.pipeline.extended_stats_bucket")
-class ExtendedStatsBucketAggregation {
- sigma: double;
-}
-@namespace("aggregations.bucket.filter")
-@class_serializer("FilterAggregationFormatter")
-class FilterAggregation {
- filter: QueryContainer;
-}
-@namespace("aggregations.bucket.filters")
-class FiltersAggregation {
- filters: Union, QueryContainer[]>;
- other_bucket: boolean;
- other_bucket_key: string;
-}
-@namespace("aggregations.metric.geo_bounds")
-class GeoBoundsAggregation {
- wrap_longitude: boolean;
-}
-@namespace("aggregations.metric.geo_centroid")
-class GeoCentroidAggregation {
-}
-@namespace("aggregations.bucket.geo_distance")
-class GeoDistanceAggregation {
- distance_type: GeoDistanceType;
- field: Field;
- origin: GeoLocation;
- ranges: AggregationRange[];
- unit: DistanceUnit;
-}
-@namespace("aggregations.bucket.geo_hash_grid")
-class GeoHashGridAggregation {
- field: Field;
- precision: GeoHashPrecision;
- shard_size: integer;
- size: integer;
- bounds: BoundingBox;
-}
-@namespace("aggregations.bucket.geo_tile_grid")
-class GeoTileGridAggregation {
- field: Field;
- precision: GeoTilePrecision;
- shard_size: integer;
- size: integer;
-}
-@namespace("aggregations.bucket.global")
-class GlobalAggregation {
-}
-@namespace("aggregations.bucket.histogram")
-class HistogramAggregation {
- extended_bounds: ExtendedBounds;
- field: Field;
- interval: double;
- min_doc_count: integer;
- missing: double;
- offset: double;
- order: HistogramOrder;
- script: Script;
-}
-@namespace("aggregations.bucket.ip_range")
-class IpRangeAggregation {
- field: Field;
- ranges: IpRangeAggregationRange[];
-}
-@namespace("aggregations.matrix.matrix_stats")
-class MatrixStatsAggregation {
- mode: MatrixStatsMode;
-}
-@namespace("aggregations.pipeline.max_bucket")
-class MaxBucketAggregation {
-}
-@namespace("aggregations.pipeline.min_bucket")
-class MinBucketAggregation {
-}
-@namespace("aggregations.bucket.missing")
-class MissingAggregation {
- field: Field;
-}
-@namespace("aggregations.pipeline.moving_average")
-@class_serializer("MovingAverageAggregationFormatter")
-class MovingAverageAggregation {
- minimize: boolean;
- model: MovingAverageModel;
- predict: integer;
- window: integer;
-}
-@namespace("aggregations.pipeline.moving_function")
-class MovingFunctionAggregation {
- script: string;
- window: integer;
- shift: integer;
-}
-@namespace("aggregations.bucket.nested")
-class NestedAggregation {
- path: Field;
-}
-@namespace("aggregations.bucket.parent")
-class ParentAggregation {
- type: RelationName;
-}
-@namespace("aggregations.pipeline.percentiles_bucket")
-class PercentilesBucketAggregation {
- percents: double[];
-}
-@namespace("aggregations.bucket.range")
-class RangeAggregation {
- field: Field;
- ranges: AggregationRange[];
- script: Script;
-}
-@namespace("aggregations.bucket.rare_terms")
-class RareTermsAggregation {
- exclude: TermsExclude;
- field: Field;
- include: TermsInclude;
- max_doc_count: long;
- missing: any;
- precision: double;
-}
-@namespace("aggregations.bucket.reverse_nested")
-class ReverseNestedAggregation {
- path: Field;
-}
-@namespace("aggregations.bucket.sampler")
-class SamplerAggregation {
- execution_hint: SamplerAggregationExecutionHint;
- max_docs_per_value: integer;
- script: Script;
- shard_size: integer;
-}
-@namespace("aggregations.metric.scripted_metric")
-class ScriptedMetricAggregation {
- combine_script: Script;
- init_script: Script;
- map_script: Script;
- params: Dictionary;
- reduce_script: Script;
-}
-@namespace("aggregations.pipeline.serial_differencing")
-class SerialDifferencingAggregation {
- lag: integer;
-}
-@namespace("aggregations.bucket.significant_terms")
-class SignificantTermsAggregation {
- background_filter: QueryContainer;
- chi_square: ChiSquareHeuristic;
- exclude: IncludeExclude;
- execution_hint: TermsAggregationExecutionHint;
- field: Field;
- gnd: GoogleNormalizedDistanceHeuristic;
- include: IncludeExclude;
- min_doc_count: long;
- mutual_information: MutualInformationHeuristic;
- percentage: PercentageScoreHeuristic;
- script_heuristic: ScriptedHeuristic;
- shard_min_doc_count: long;
- shard_size: integer;
- size: integer;
-}
-@namespace("aggregations.bucket.significant_text")
-class SignificantTextAggregation {
- background_filter: QueryContainer;
- chi_square: ChiSquareHeuristic;
- exclude: IncludeExclude;
- execution_hint: TermsAggregationExecutionHint;
- field: Field;
- filter_duplicate_text: boolean;
- gnd: GoogleNormalizedDistanceHeuristic;
- include: IncludeExclude;
- min_doc_count: long;
- mutual_information: MutualInformationHeuristic;
- percentage: PercentageScoreHeuristic;
- script_heuristic: ScriptedHeuristic;
- shard_min_doc_count: long;
- shard_size: integer;
- size: integer;
- source_fields: Field[];
-}
-@namespace("aggregations.pipeline.stats_bucket")
-class StatsBucketAggregation {
-}
-@namespace("aggregations.pipeline.sum_bucket")
-class SumBucketAggregation {
-}
-@namespace("aggregations.bucket.terms")
-class TermsAggregation {
- collect_mode: TermsAggregationCollectMode;
- exclude: TermsExclude;
- execution_hint: TermsAggregationExecutionHint;
- field: Field;
- include: TermsInclude;
- min_doc_count: integer;
- missing: any;
- order: TermsOrder[];
- script: Script;
- shard_size: integer;
- show_term_doc_count_error: boolean;
- size: integer;
-}
-@namespace("aggregations.metric.top_hits")
-class TopHitsAggregation {
- docvalue_fields: Field[];
- explain: boolean;
- from: integer;
- highlight: Highlight;
- script_fields: Dictionary;
- size: integer;
- sort: Sort[];
- _source: Union;
- stored_fields: Field[];
- track_scores: boolean;
- version: boolean;
-}
-@namespace("aggregations.metric.top_metrics")
-class TopMetricsAggregation {
- metrics: TopMetricsValue[];
- size: integer;
- sort: Sort[];
-}
-@namespace("query_dsl.full_text.intervals")
-@class_serializer("FieldNameQueryFormatter`2")
-class IntervalsQuery {
-}
-@namespace("query_dsl.term_level.prefix")
-@class_serializer("FieldNameQueryFormatter`2")
-class PrefixQuery {
- rewrite: MultiTermQueryRewrite;
-}
-@namespace("query_dsl.term_level.wildcard")
-@class_serializer("FieldNameQueryFormatter`2")
-class WildcardQuery {
- rewrite: MultiTermQueryRewrite;
-}
-@namespace("aggregations.metric.average")
-class AverageAggregation {
-}
-@namespace("aggregations.metric.extended_stats")
-class ExtendedStatsAggregation {
- sigma: double;
-}
-@namespace("aggregations.metric.max")
-class MaxAggregation {
-}
-@namespace("aggregations.metric.min")
-class MinAggregation {
-}
-@namespace("aggregations.metric.percentile_ranks")
-@class_serializer("PercentileRanksAggregationFormatter")
-class PercentileRanksAggregation {
- method: PercentilesMethod;
- values: double[];
- keyed: boolean;
-}
-@namespace("aggregations.metric.percentiles")
-@class_serializer("PercentilesAggregationFormatter")
-class PercentilesAggregation {
- method: PercentilesMethod;
- percents: double[];
- keyed: boolean;
-}
-@namespace("aggregations.metric.stats")
-class StatsAggregation {
-}
-@namespace("aggregations.metric.sum")
-class SumAggregation {
-}
-@namespace("aggregations.metric.value_count")
-class ValueCountAggregation {
-}
-@namespace("aggregations.metric.median_absolute_deviation")
-class MedianAbsoluteDeviationAggregation {
- compression: double;
-}
-@namespace("query_dsl.span.term")
-@class_serializer("FieldNameQueryFormatter`2")
-class SpanTermQuery {
-}
-@namespace("x_pack.watcher.acknowledge_watch")
-class WatchStatus {
- actions: Dictionary;
- last_checked: Date;
- last_met_condition: Date;
- state: ActivationState;
- version: integer;
-}
-@namespace("x_pack.watcher.acknowledge_watch")
-class ActionStatus {
- ack: AcknowledgeState;
- last_execution: ExecutionState;
- last_successful_execution: ExecutionState;
- last_throttle: ThrottleState;
-}
-@namespace("x_pack.watcher.acknowledge_watch")
-class AcknowledgeState {
- state: AcknowledgementState;
- timestamp: Date;
-}
-@namespace("x_pack.watcher.acknowledge_watch")
-class ExecutionState {
- successful: boolean;
- timestamp: Date;
-}
-@namespace("x_pack.watcher.acknowledge_watch")
-class ThrottleState {
- reason: string;
- timestamp: Date;
-}
-@namespace("x_pack.watcher.acknowledge_watch")
-class ActivationState {
- active: boolean;
- timestamp: Date;
-}
-@namespace("x_pack.watcher.activate_watch")
-class ActivationStatus {
- actions: Dictionary;
- state: ActivationState;
-}
-@namespace("common_abstractions.union")
-@class_serializer("UnionFormatter`2")
-class Union {
-}
-@namespace("indices.analyze")
-class AnalyzeDetail {
- charfilters: CharFilterDetail[];
- custom_analyzer: boolean;
- tokenfilters: TokenDetail[];
- tokenizer: TokenDetail;
-}
-@namespace("indices.analyze")
-class CharFilterDetail {
- filtered_text: string[];
- name: string;
-}
-@namespace("indices.analyze")
-class TokenDetail {
- name: string;
- tokens: ExplainAnalyzeToken[];
-}
-@namespace("indices.analyze")
-class ExplainAnalyzeToken {
- bytes: string;
- end_offset: long;
- keyword: boolean;
- position: long;
- positionLength: long;
- start_offset: long;
- termFrequency: long;
- token: string;
- type: string;
-}
-@namespace("indices.analyze")
-class AnalyzeToken {
- end_offset: long;
- position: long;
- position_length: long;
- start_offset: long;
- token: string;
- type: string;
-}
-@namespace("x_pack.async_search")
-class AsyncSearch {
- aggregations: Dictionary;
- _clusters: ClusterStatistics;
- documents: TDocument[];
- fields: Dictionary;
- hits: Hit[];
- hits: HitsMetadata;
- max_score: double;
- num_reduce_phases: long;
- profile: Profile;
- _scroll_id: string;
- _shards: ShardStatistics;
- suggest: SuggestDictionary;
- terminated_early: boolean;
- timed_out: boolean;
- took: long;
-}
-@namespace("common_options.hit")
-class ClusterStatistics {
- skipped: integer;
- successful: integer;
- total: integer;
-}
-@namespace("search.explain")
-class Explanation {
- description: string;
- details: ExplanationDetail[];
- value: float;
-}
-@namespace("search.explain")
-class ExplanationDetail {
- description: string;
- details: ExplanationDetail[];
- value: float;
-}
-@namespace("search.search.hits")
-class InnerHitsResult {
- hits: InnerHitsMetadata;
-}
-@namespace("search.search.hits")
-class InnerHitsMetadata {
- hits: Hit[];
- max_score: double;
- total: TotalHits;
-}
-@namespace("search.search.hits")
-class NestedIdentity {
- field: Field;
- _nested: NestedIdentity;
- offset: integer;
-}
-@namespace("search.search.hits")
-@class_serializer("TotalHitsFormatter")
-class TotalHits {
- relation: TotalHitsRelation;
- value: long;
-}
-@namespace("search.search.profile")
-class Profile {
- shards: ShardProfile[];
-}
-@namespace("search.search.profile")
-class ShardProfile {
- aggregations: AggregationProfile[];
- id: string;
- searches: SearchProfile[];
-}
-@namespace("search.search.profile")
-class AggregationProfile {
- breakdown: AggregationBreakdown;
- description: string;
- time_in_nanos: long;
- type: string;
-}
-@namespace("search.search.profile")
-class AggregationBreakdown {
- build_aggregation: long;
- build_aggregation_count: long;
- collect: long;
- collect_count: long;
- initialize: long;
- intialize_count: long;
- reduce: long;
- reduce_count: long;
-}
-@namespace("search.search.profile")
-class SearchProfile {
- collector: Collector[];
- query: QueryProfile[];
- rewrite_time: long;
-}
-@namespace("search.search.profile")
-class Collector {
- children: Collector[];
- name: string;
- reason: string;
- time_in_nanos: long;
-}
-@namespace("search.search.profile")
-class QueryProfile {
- breakdown: QueryBreakdown;
- children: QueryProfile[];
- description: string;
- time_in_nanos: long;
- type: string;
-}
-@namespace("search.search.profile")
-class QueryBreakdown {
- advance: long;
- build_scorer: long;
- create_weight: long;
- match: long;
- next_doc: long;
- score: long;
-}
-@namespace("common_options.hit")
-class ShardStatistics {
- failed: integer;
- failures: ShardFailure[];
- successful: integer;
- total: integer;
-}
-@namespace("common_options.geo")
-@class_serializer("DistanceFormatter")
-class Distance {
- precision: double;
- unit: DistanceUnit;
-}
-@namespace("aggregations.bucket.histogram")
-class ExtendedBounds {
- max: T;
- min: T;
-}
-@namespace("aggregations.bucket.terms")
-@class_serializer("TermsExcludeFormatter")
-class TermsExclude {
- pattern: string;
- values: string[];
-}
-@namespace("aggregations.bucket.terms")
-@class_serializer("TermsIncludeFormatter")
-class TermsInclude {
- num_partitions: long;
- partition: long;
- pattern: string;
- values: string[];
-}
-@namespace("aggregations.bucket.significant_terms")
-@class_serializer("IncludeExcludeFormatter")
-class IncludeExclude {
- pattern: string;
- values: string[];
-}
-@namespace("x_pack.security.authenticate")
-class RealmInfo {
- name: string;
- type: string;
-}
-@namespace("cluster.task_management.list_tasks")
-class TaskExecutingNode {
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- attributes: Dictionary;
- host: string;
- ip: string;
- name: string;
- roles: string[];
- tasks: Dictionary;
- transport_address: string;
-}
-@namespace("cluster.task_management.list_tasks")
-class TaskState {
- action: string;
- cancellable: boolean;
- description: string;
- headers: Dictionary;
- id: long;
- node: string;
- parent_task_id: TaskId;
- running_time_in_nanos: long;
- start_time_in_millis: long;
- status: TaskStatus;
- type: string;
-}
-@namespace("cluster.task_management.list_tasks")
-class TaskStatus {
- batches: long;
- created: long;
- deleted: long;
- noops: long;
- requests_per_second: float;
- retries: TaskRetries;
- throttled_millis: long;
- throttled_until_millis: long;
- total: long;
- updated: long;
- version_conflicts: long;
-}
-@namespace("cluster.task_management.list_tasks")
-class TaskRetries {
- bulk: integer;
- search: integer;
-}
-@namespace("x_pack.cross_cluster_replication.stats")
-class CcrAutoFollowStats {
- number_of_failed_follow_indices: long;
- number_of_failed_remote_cluster_state_requests: long;
- number_of_successful_follow_indices: long;
- recent_auto_follow_errors: ErrorCause[];
- auto_followed_clusters: AutoFollowedCluster[];
-}
-@namespace("x_pack.cross_cluster_replication.stats")
-class AutoFollowedCluster {
- cluster_name: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- time_since_last_check_millis: Date;
- last_seen_metadata_version: long;
-}
-@namespace("x_pack.cross_cluster_replication.stats")
-class CcrFollowStats {
- indices: FollowIndexStats[];
-}
-@namespace("x_pack.cross_cluster_replication.follow.follow_index_stats")
-class FollowIndexStats {
- index: string;
- shards: FollowIndexShardStats[];
-}
-@namespace("x_pack.cross_cluster_replication.follow.follow_index_stats")
-class FollowIndexShardStats {
- bytes_read: long;
- failed_read_requests: long;
- failed_write_requests: long;
- follower_global_checkpoint: long;
- follower_index: string;
- follower_mapping_version: long;
- follower_max_seq_no: long;
- follower_settings_version: long;
- follower_aliases_version: long;
- last_requested_seq_no: long;
- leader_global_checkpoint: long;
- leader_index: string;
- leader_max_seq_no: long;
- operations_read: long;
- operations_written: long;
- outstanding_read_requests: integer;
- outstanding_write_requests: integer;
- remote_cluster: string;
- shard_id: integer;
- successful_read_requests: long;
- successful_write_requests: long;
- total_read_remote_exec_time_millis: long;
- total_read_time_millis: long;
- total_write_time_millis: long;
- write_buffer_operation_count: long;
- write_buffer_size_in_bytes: long;
- read_exceptions: FollowIndexReadException[];
- time_since_last_read_millis: long;
- fatal_exception: ErrorCause;
-}
-@namespace("x_pack.cross_cluster_replication.follow.follow_index_stats")
-class FollowIndexReadException {
- from_seq_no: long;
- retries: integer;
- exception: ErrorCause;
-}
-@namespace("modules.snapshot_and_restore.repositories.cleanup_repository")
-class CleanupRepositoryResults {
- deleted_bytes: long;
- deleted_blobs: long;
-}
-@namespace("x_pack.security")
-class SecurityNode {
- name: string;
-}
-@namespace("indices.index_management.open_close_index.close_index")
-class CloseIndexResult {
- closed: boolean;
- shards: Dictionary;
-}
-@namespace("indices.index_management.open_close_index.close_index")
-class CloseShardResult {
- failures: ShardFailure[];
-}
-@namespace("cluster.cluster_allocation_explain")
-class AllocationDecision {
- decider: string;
- decision: AllocationExplainDecision;
- explanation: string;
-}
-@namespace("cluster.cluster_allocation_explain")
-class CurrentNode {
- id: string;
- name: string;
- attributes: Dictionary;
- transport_address: string;
- weight_ranking: integer;
-}
-@namespace("cluster.cluster_allocation_explain")
-class NodeAllocationExplanation {
- deciders: AllocationDecision[];
- node_attributes: Dictionary;
- node_decision: Decision;
- node_id: string;
- node_name: string;
- store: AllocationStore;
- transport_address: string;
- weight_ranking: integer;
-}
-@namespace("cluster.cluster_allocation_explain")
-class AllocationStore {
- allocation_id: string;
- found: boolean;
- in_sync: boolean;
- matching_size_in_bytes: long;
- matching_sync_id: boolean;
- store_exception: string;
-}
-@namespace("cluster.cluster_allocation_explain")
-class UnassignedInformation {
- at: Date;
- last_allocation_status: string;
- reason: UnassignedInformationReason;
-}
-@namespace("cluster.cluster_health")
-class IndexHealthStats {
- active_primary_shards: integer;
- active_shards: integer;
- initializing_shards: integer;
- number_of_replicas: integer;
- number_of_shards: integer;
- relocating_shards: integer;
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- shards: Dictionary;
- status: Health;
- unassigned_shards: integer;
-}
-@namespace("cluster.cluster_health")
-class ShardHealthStats {
- active_shards: integer;
- initializing_shards: integer;
- primary_active: boolean;
- relocating_shards: integer;
- status: Health;
- unassigned_shards: integer;
-}
-@namespace("cluster.cluster_pending_tasks")
-class PendingTask {
- insert_order: integer;
- priority: string;
- source: string;
- time_in_queue: string;
- time_in_queue_millis: integer;
-}
-@namespace("cluster.cluster_reroute")
-class ClusterRerouteExplanation {
- command: string;
- decisions: ClusterRerouteDecision[];
- parameters: ClusterRerouteParameters;
-}
-@namespace("cluster.cluster_reroute")
-class ClusterRerouteDecision {
- decider: string;
- decision: string;
- explanation: string;
-}
-@namespace("cluster.cluster_reroute")
-class ClusterRerouteParameters {
- allow_primary: boolean;
- from_node: string;
- index: string;
- node: string;
- shard: integer;
- to_node: string;
-}
-@namespace("cluster")
-class NodeStatistics {
- failed: integer;
- successful: integer;
- total: integer;
- failures: ErrorCause[];
-}
-@namespace("cluster.cluster_stats")
-class ClusterIndicesStats {
- completion: CompletionStats;
- count: long;
- docs: DocStats;
- fielddata: FielddataStats;
- query_cache: QueryCacheStats;
- segments: SegmentsStats;
- shards: ClusterIndicesShardsStats;
- store: StoreStats;
-}
-@namespace("common_options.stats")
-class CompletionStats {
- size_in_bytes: long;
-}
-@namespace("common_options.stats")
-class DocStats {
- count: long;
- deleted: long;
-}
-@namespace("common_options.stats")
-class FielddataStats {
- evictions: long;
- memory_size_in_bytes: long;
-}
-@namespace("common_options.stats")
-class QueryCacheStats {
- cache_count: long;
- cache_size: long;
- evictions: long;
- hit_count: long;
- memory_size_in_bytes: long;
- miss_count: long;
- total_count: long;
-}
-@namespace("common_options.stats")
-class SegmentsStats {
- count: long;
- doc_values_memory_in_bytes: long;
- fixed_bit_set_memory_in_bytes: long;
- index_writer_max_memory_in_bytes: long;
- index_writer_memory_in_bytes: long;
- max_unsafe_auto_id_timestamp: long;
- memory_in_bytes: long;
- norms_memory_in_bytes: long;
- points_memory_in_bytes: long;
- stored_fields_memory_in_bytes: long;
- terms_memory_in_bytes: long;
- term_vectors_memory_in_bytes: long;
- version_map_memory_in_bytes: long;
- file_sizes: Dictionary;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardFileSizeInfo {
- description: string;
- size_in_bytes: long;
-}
-@namespace("cluster.cluster_stats")
-class ClusterIndicesShardsStats {
- index: ClusterIndicesShardsIndexStats;
- primaries: double;
- replication: double;
- total: double;
-}
-@namespace("cluster.cluster_stats")
-class ClusterIndicesShardsIndexStats {
- primaries: ClusterShardMetrics;
- replication: ClusterShardMetrics;
- shards: ClusterShardMetrics;
-}
-@namespace("cluster.cluster_stats")
-class ClusterShardMetrics {
- avg: double;
- max: double;
- min: double;
-}
-@namespace("common_options.stats")
-class StoreStats {
- size: string;
- size_in_bytes: double;
-}
-@namespace("cluster.cluster_stats")
-class ClusterNodesStats {
- count: ClusterNodeCount;
- discovery_types: Dictionary;
- fs: ClusterFileSystem;
- jvm: ClusterJvm;
- network_types: ClusterNetworkTypes;
- os: ClusterOperatingSystemStats;
- packaging_types: NodePackagingType[];
- plugins: PluginStats[];
- process: ClusterProcess;
- versions: string[];
- ingest: ClusterIngestStats;
-}
-@namespace("cluster.cluster_stats")
-class ClusterNodeCount {
- coordinating_only: integer;
- data: integer;
- ingest: integer;
- master: integer;
- total: integer;
- voting_only: integer;
-}
-@namespace("cluster.cluster_stats")
-class ClusterFileSystem {
- available_in_bytes: long;
- free_in_bytes: long;
- total_in_bytes: long;
-}
-@namespace("cluster.cluster_stats")
-class ClusterJvm {
- max_uptime_in_millis: long;
- mem: ClusterJvmMemory;
- threads: long;
- versions: ClusterJvmVersion[];
-}
-@namespace("cluster.cluster_stats")
-class ClusterJvmMemory {
- heap_max_in_bytes: long;
- heap_used_in_bytes: long;
-}
-@namespace("cluster.cluster_stats")
-class ClusterJvmVersion {
- bundled_jdk: boolean;
- count: integer;
- using_bundled_jdk: boolean;
- version: string;
- vm_name: string;
- vm_vendor: string;
- vm_version: string;
-}
-@namespace("cluster.cluster_stats")
-class ClusterNetworkTypes {
- http_types: Dictionary;
- transport_types: Dictionary;
-}
-@namespace("cluster.cluster_stats")
-class ClusterOperatingSystemStats {
- allocated_processors: integer;
- available_processors: integer;
- mem: OperatingSystemMemoryInfo;
- names: ClusterOperatingSystemName[];
- pretty_names: ClusterOperatingSystemPrettyNane[];
-}
-@namespace("cluster.cluster_stats")
-class OperatingSystemMemoryInfo {
- free_in_bytes: long;
- free_percent: integer;
- total_in_bytes: long;
- used_in_bytes: long;
- used_percent: integer;
-}
-@namespace("cluster.cluster_stats")
-class ClusterOperatingSystemName {
- count: integer;
- name: string;
-}
-@namespace("cluster.nodes_info")
-class ClusterOperatingSystemPrettyNane {
- count: integer;
- pretty_name: string;
-}
-@namespace("cluster.cluster_stats")
-class NodePackagingType {
- count: integer;
- flavor: string;
- type: string;
-}
-@namespace("common_options.stats")
-class PluginStats {
- classname: string;
- description: string;
- elasticsearch_version: string;
- extended_plugins: string[];
- name: string;
- has_native_controller: boolean;
- java_version: string;
- version: string;
-}
-@namespace("cluster.cluster_stats")
-class ClusterProcess {
- cpu: ClusterProcessCpu;
- open_file_descriptors: ClusterProcessOpenFileDescriptors;
-}
-@namespace("cluster.cluster_stats")
-class ClusterProcessCpu {
- percent: integer;
-}
-@namespace("cluster.cluster_stats")
-class ClusterProcessOpenFileDescriptors {
- avg: long;
- max: long;
- min: long;
-}
-@namespace("cluster.cluster_stats")
-class ClusterIngestStats {
- number_of_pipelines: integer;
- processor_stats: Dictionary;
-}
-@namespace("cluster.cluster_stats")
-class ClusterProcessorStats {
- count: long;
- current: long;
- failed: long;
- time_in_millis: long;
-}
-@namespace("document.multiple")
-class BulkIndexByScrollFailure {
- cause: MainError;
- id: string;
- index: string;
- status: integer;
- type: string;
-}
-@namespace("document.multiple")
-class Retries {
- bulk: long;
- search: long;
-}
-@namespace("x_pack.security.privileges.delete_privileges")
-class FoundUserPrivilege {
- found: boolean;
-}
-@namespace("x_pack.migration.deprecation_info")
-class DeprecationInfo {
- details: string;
- level: DeprecationWarningLevel;
- message: string;
- url: string;
-}
-@namespace("x_pack.enrich.stats")
-class ExecutingPolicy {
- name: string;
- task: TaskInfo;
-}
-@namespace("cluster.task_management.get_task")
-class TaskInfo {
- action: string;
- cancellable: boolean;
- children: TaskInfo[];
- description: string;
- headers: Dictionary;
- id: long;
- node: string;
- running_time_in_nanos: long;
- start_time_in_millis: long;
- status: TaskStatus;
- type: string;
-}
-@namespace("x_pack.enrich.stats")
-class CoordinatorStats {
- node_id: string;
- queue_size: integer;
- remote_requests_current: integer;
- remote_requests_total: long;
- executed_searches_total: long;
-}
-@namespace("x_pack.machine_learning.job.detectors")
-class FilterRef {
- filter_id: Id;
- filter_type: RuleFilterType;
-}
-@namespace("x_pack.enrich.execute_policy")
-class ExecuteEnrichPolicyStatus {
- phase: EnrichPolicyPhase;
-}
-@namespace("x_pack.watcher.execution")
-@class_serializer("SimulatedActionsFormatter")
-class SimulatedActions {
- actions: string[];
- all: SimulatedActions;
- use_all: boolean;
-}
-@namespace("x_pack.watcher.execute_watch")
-class WatchRecord {
- condition: ConditionContainer;
- input: InputContainer;
- messages: string[];
- metadata: Dictionary;
- result: ExecutionResult;
- state: ActionExecutionState;
- trigger_event: TriggerEventResult;
- user: string;
- node: string;
- watch_id: string;
-}
-@namespace("x_pack.watcher.execute_watch")
-class ExecutionResult {
- actions: ExecutionResultAction[];
- condition: ExecutionResultCondition;
- execution_duration: integer;
- execution_time: Date;
- input: ExecutionResultInput;
-}
-@namespace("x_pack.watcher.execute_watch")
-class ExecutionResultAction {
- email: EmailActionResult;
- id: string;
- index: IndexActionResult;
- logging: LoggingActionResult;
- pagerduty: PagerDutyActionResult;
- reason: string;
- slack: SlackActionResult;
- status: Status;
- type: ActionType;
- webhook: WebhookActionResult;
-}
-@namespace("x_pack.watcher.execution.email")
-class EmailActionResult {
- account: string;
- message: EmailResult;
- reason: string;
-}
-@namespace("x_pack.watcher.execution.email")
-class EmailResult {
- bcc: string[];
- body: EmailBody;
- cc: string[];
- from: string;
- id: string;
- priority: EmailPriority;
- reply_to: string[];
- sent_date: Date;
- subject: string;
- to: string[];
-}
-@namespace("x_pack.watcher.execution.index")
-class IndexActionResult {
- id: string;
- response: IndexActionResultIndexResponse;
-}
-@namespace("x_pack.watcher.execution.index")
-class IndexActionResultIndexResponse {
- created: boolean;
- id: string;
- index: IndexName;
- result: Result;
- version: integer;
-}
-@namespace("x_pack.watcher.execution.logging")
-class LoggingActionResult {
- logged_text: string;
-}
-@namespace("x_pack.watcher.execution.pager_duty")
-class PagerDutyActionResult {
- sent_event: PagerDutyActionEventResult;
-}
-@namespace("x_pack.watcher.execution.pager_duty")
-class PagerDutyActionEventResult {
- event: PagerDutyEvent;
- reason: string;
- request: HttpInputRequestResult;
- response: HttpInputResponseResult;
-}
-@namespace("x_pack.watcher.execution")
-class HttpInputResponseResult {
- body: string;
- headers: Dictionary;
- status: integer;
-}
-@namespace("x_pack.watcher.execution.slack")
-class SlackActionResult {
- account: string;
- sent_messages: SlackActionMessageResult[];
-}
-@namespace("x_pack.watcher.execution.slack")
-class SlackActionMessageResult {
- message: SlackMessage;
- reason: string;
- request: HttpInputRequestResult;
- response: HttpInputResponseResult;
- status: Status;
- to: string;
-}
-@namespace("x_pack.watcher.execution.webhook")
-class WebhookActionResult {
- request: HttpInputRequestResult;
- response: HttpInputResponseResult;
-}
-@namespace("x_pack.watcher.execute_watch")
-class ExecutionResultCondition {
- met: boolean;
- status: Status;
- type: ConditionType;
-}
-@namespace("x_pack.watcher.execute_watch")
-class ExecutionResultInput {
- payload: Dictionary;
- status: Status;
- type: InputType;
-}
-@namespace("x_pack.watcher.execute_watch")
-class TriggerEventResult {
- manual: TriggerEventContainer;
- triggered_time: Date;
- type: string;
-}
-@namespace("x_pack.ilm.explain_lifecycle")
-class LifecycleExplain {
- action: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- action_time_millis: Date;
- is_auto_retryable_error: boolean;
- failed_step: string;
- failed_step_retry_count: integer;
- index: IndexName;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- lifecycle_date_millis: Date;
- managed: boolean;
- phase: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- phase_time_millis: Date;
- policy: string;
- step: string;
- step_info: Dictionary;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- step_time_millis: Date;
- age: Time;
-}
-@namespace("search.field_capabilities")
-class FieldCapabilities {
- aggregatable: boolean;
- @prop_serializer("IndicesFormatter")
- indices: Indices;
- @prop_serializer("IndicesFormatter")
- non_aggregatable_indices: Indices;
- @prop_serializer("IndicesFormatter")
- non_searchable_indices: Indices;
- searchable: boolean;
- meta: Dictionary;
-}
-@namespace("x_pack.cross_cluster_replication.follow.follow_info")
-class FollowerInfo {
- follower_index: string;
- remote_cluster: string;
- leader_index: string;
- status: FollowerIndexStatus;
- parameters: FollowConfig;
-}
-@namespace("x_pack.cross_cluster_replication.follow.follow_info")
-class FollowConfig {
- max_read_request_operation_count: integer;
- max_read_request_size: string;
- max_outstanding_read_requests: integer;
- max_write_request_operation_count: integer;
- max_write_request_size: string;
- max_outstanding_write_requests: integer;
- max_write_buffer_count: integer;
- max_write_buffer_size: string;
- max_retry_delay: Time;
- read_poll_timeout: Time;
-}
-@namespace("indices.alias_management.get_alias")
-class IndexAliases {
- aliases: Dictionary;
-}
-@namespace("indices.alias_management")
-class AliasDefinition {
- filter: QueryContainer;
- index_routing: string;
- is_write_index: boolean;
- routing: string;
- search_routing: string;
-}
-@namespace("x_pack.machine_learning.job.results")
-class AnomalyRecord {
- actual: double[];
- bucket_span: Time;
- by_field_name: string;
- by_field_value: string;
- causes: AnomalyCause[];
- detector_index: integer;
- field_name: string;
- function: string;
- function_description: string;
- influencers: Influence[];
- initial_record_score: double;
- is_interim: boolean;
- job_id: string;
- over_field_name: string;
- over_field_value: string;
- partition_field_name: string;
- partition_field_value: string;
- probability: double;
- record_score: double;
- result_type: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- timestamp: Date;
- typical: double[];
-}
-@namespace("x_pack.machine_learning.job.results")
-class AnomalyCause {
- actual: double[];
- by_field_name: string;
- by_field_value: string;
- correlated_by_field_value: string;
- field_name: string;
- function: string;
- function_description: string;
- influencers: Influence[];
- over_field_name: string;
- over_field_value: string;
- partition_field_name: string;
- partition_field_value: string;
- probability: double;
- typical: double[];
-}
-@namespace("x_pack.machine_learning.job.results")
-class Influence {
- influencer_field_name: string;
- influencer_field_values: string[];
-}
-@namespace("x_pack.security.api_key.get_api_key")
-class ApiKeys {
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- creation: Date;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- expiration: Date;
- id: string;
- invalidated: boolean;
- name: string;
- realm: string;
- username: string;
-}
-@namespace("x_pack.machine_learning.job.results")
-class Bucket {
- anomaly_score: double;
- bucket_influencers: BucketInfluencer[];
- bucket_span: Time;
- event_count: long;
- initial_anomaly_score: double;
- is_interim: boolean;
- job_id: string;
- partition_scores: PartitionScore[];
- processing_time_ms: double;
- result_type: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- timestamp: Date;
-}
-@namespace("x_pack.machine_learning.job.results")
-class BucketInfluencer {
- bucket_span: long;
- influencer_field_name: string;
- influencer_field_value: string;
- influencer_score: double;
- initial_influencer_score: double;
- is_interim: boolean;
- job_id: string;
- probability: double;
- result_type: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- timestamp: Date;
-}
-@namespace("x_pack.machine_learning.job.results")
-class PartitionScore {
- initial_record_score: double;
- partition_field_name: string;
- partition_field_value: string;
- probability: double;
- record_score: double;
-}
-@namespace("x_pack.machine_learning.post_calendar_events")
-class ScheduledEvent {
- calendar_id: Id;
- description: string;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- start_time: Date;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- end_time: Date;
- event_id: Id;
-}
-@namespace("x_pack.machine_learning.get_calendars")
-class Calendar {
- calendar_id: string;
- job_ids: string[];
- description: string;
-}
-@namespace("x_pack.machine_learning.job.results")
-class CategoryDefinition {
- category_id: long;
- examples: string[];
- job_id: string;
- max_matching_length: long;
- regex: string;
- terms: string;
-}
-@namespace("x_pack.ssl.get_certificates")
-class ClusterCertificateInformation {
- path: string;
- alias: string;
- format: string;
- subject_dn: string;
- serial_number: string;
- has_private_key: boolean;
- expiry: Date;
-}
-@namespace("x_pack.machine_learning.datafeed")
-class DatafeedConfig {
- aggregations: Dictionary;
- chunking_config: ChunkingConfig;
- datafeed_id: string;
- frequency: Time;
- @prop_serializer("IndicesFormatter")
- indices: Indices;
- job_id: string;
- query: QueryContainer;
- query_delay: Time;
- script_fields: Dictionary;
- scroll_size: integer;
- max_empty_searches: integer;
-}
-@namespace("x_pack.machine_learning.datafeed")
-class DatafeedStats {
- assignment_explanation: string;
- datafeed_id: string;
- node: DiscoveryNode;
- state: DatafeedState;
- timing_stats: DatafeedTimingStats;
-}
-@namespace("x_pack.machine_learning.datafeed")
-class DiscoveryNode {
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- attributes: Dictionary;
- ephemeral_id: string;
- id: string;
- name: string;
- transport_address: string;
-}
-@namespace("x_pack.machine_learning.datafeed")
-class DatafeedTimingStats {
- bucket_count: long;
- exponential_average_search_time_per_hour_ms: double;
- job_id: string;
- search_count: long;
- total_search_time_ms: double;
-}
-@namespace("x_pack.enrich")
-class NamedPolicyMetadata {
- config: NamedPolicyConfig;
-}
-@namespace("x_pack.enrich")
-class NamedPolicyConfig {
- geo_match: NamedPolicy;
- match: NamedPolicy;
-}
-@namespace("indices.mapping_management.get_field_mapping")
-class TypeFieldMappings {
- @prop_serializer("ResolvableReadOnlyDictionaryFormatter`2")
- mappings: Dictionary;
-}
-@namespace("x_pack.machine_learning.get_filters")
-class Filter {
- description: string;
- filter_id: string;
- items: string[];
-}
-@namespace("x_pack.info.x_pack_usage")
-class Job {
- analysis_config: AnalysisConfig;
- analysis_limits: AnalysisLimits;
- background_persist_interval: Time;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- create_time: Date;
- data_description: DataDescription;
- description: string;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- finished_time: Date;
- job_id: string;
- job_type: string;
- model_plot: ModelPlotConfig;
- model_snapshot_id: string;
- model_snapshot_retention_days: long;
- renormalization_window_days: long;
- results_index_name: string;
- results_retention_days: long;
- allow_lazy_open: boolean;
-}
-@namespace("x_pack.machine_learning.job.config")
-class JobStats {
- assignment_explanation: string;
- data_counts: DataCounts;
- forecasts_stats: JobForecastStatistics;
- job_id: string;
- model_size_stats: ModelSizeStats;
- node: DiscoveryNode;
- open_time: Time;
- state: JobState;
- timing_stats: TimingStats;
-}
-@namespace("x_pack.machine_learning.job.process")
-class DataCounts {
- bucket_count: long;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- earliest_record_timestamp: Date;
- empty_bucket_count: long;
- input_bytes: long;
- input_field_count: long;
- input_record_count: long;
- invalid_date_count: long;
- job_id: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- last_data_time: Date;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- latest_empty_bucket_timestamp: Date;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- latest_record_timestamp: Date;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- latest_sparse_bucket_timestamp: Date;
- missing_field_count: long;
- out_of_order_timestamp_count: long;
- processed_field_count: long;
- processed_record_count: long;
- sparse_bucket_count: long;
-}
-@namespace("x_pack.machine_learning.job.config")
-class JobForecastStatistics {
- memory_bytes: JobStatistics;
- processing_time_ms: JobStatistics;
- records: JobStatistics;
- status: Dictionary;
- total: long;
-}
-@namespace("x_pack.machine_learning.job.process")
-class ModelSizeStats {
- bucket_allocation_failures_count: long;
- job_id: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- log_time: Date;
- memory_status: MemoryStatus;
- model_bytes: long;
- result_type: string;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- timestamp: Date;
- total_by_field_count: long;
- total_over_field_count: long;
- total_partition_field_count: long;
-}
-@namespace("x_pack.machine_learning.job.config")
-class TimingStats {
- job_id: string;
- bucket_count: long;
- minimum_bucket_processing_time_ms: double;
- maximum_bucket_processing_time_ms: double;
- average_bucket_processing_time_ms: double;
- exponential_average_bucket_processing_time_ms: double;
- exponential_average_bucket_processing_time_per_hour_ms: double;
-}
-@namespace("x_pack.license.get_license")
-class LicenseInformation {
- expiry_date: Date;
- expiry_date_in_millis: long;
- issue_date: Date;
- issue_date_in_millis: long;
- issued_to: string;
- issuer: string;
- max_nodes: long;
- max_resource_units: integer;
- status: LicenseStatus;
- type: LicenseType;
- uid: string;
-}
-@namespace("x_pack.ilm.get_lifecycle")
-class LifecyclePolicy {
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- modified_date: Date;
- policy: Policy;
- version: integer;
-}
-@namespace("indices.mapping_management.get_mapping")
-class IndexMappings {
- item: TypeMapping;
- mappings: TypeMapping;
-}
-@namespace("x_pack.machine_learning.job.process")
-class ModelSnapshot {
- description: string;
- job_id: string;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- latest_record_time_stamp: Date;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- latest_result_time_stamp: Date;
- model_size_stats: ModelSizeStats;
- retain: boolean;
- snapshot_doc_count: long;
- snapshot_id: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- timestamp: Date;
-}
-@namespace("x_pack.machine_learning.job.results")
-class OverallBucket {
- bucket_span: long;
- is_interim: boolean;
- jobs: OverallBucketJobInfo[];
- overall_score: double;
- result_type: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- timestamp: Date;
-}
-@namespace("x_pack.machine_learning.job.results")
-class OverallBucketJobInfo {
- job_id: string;
- max_anomaly_score: double;
-}
-@namespace("x_pack.security.role_mapping.get_role_mapping")
-class XPackRoleMapping {
- enabled: boolean;
- metadata: Dictionary;
- roles: string[];
- rules: RoleMappingRuleBase;
-}
-@namespace("x_pack.security.role.get_role")
-class XPackRole {
- cluster: string[];
- indices: IndicesPrivileges[];
- metadata: Dictionary;
- run_as: string[];
-}
-@namespace("x_pack.roll_up.get_rollup_capabilities")
-class RollupCapabilities {
- rollup_jobs: RollupCapabilitiesJob[];
-}
-@namespace("x_pack.roll_up.get_rollup_capabilities")
-class RollupCapabilitiesJob {
- fields: Dictionary>;
- index_pattern: string;
- job_id: string;
- rollup_index: string;
-}
-@namespace("x_pack.roll_up.get_rollup_index_capabilities")
-class RollupIndexCapabilities {
- rollup_jobs: RollupIndexCapabilitiesJob[];
-}
-@namespace("x_pack.roll_up.get_rollup_index_capabilities")
-class RollupIndexCapabilitiesJob {
- fields: Dictionary>;
- index_pattern: string;
- job_id: string;
- rollup_index: string;
-}
-@namespace("x_pack.roll_up.get_rollup_job")
-class RollupJobInformation {
- config: RollupJobConfiguration;
- stats: RollupJobStats;
- status: RollupJobStatus;
-}
-@namespace("x_pack.roll_up.get_rollup_job")
-class RollupJobConfiguration {
- cron: string;
- groups: RollupGroupings;
- id: string;
- index_pattern: string;
- metrics: RollupFieldMetric[];
- page_size: long;
- rollup_index: IndexName;
- timeout: Time;
-}
-@namespace("x_pack.roll_up.get_rollup_job")
-class RollupJobStats {
- documents_processed: long;
- pages_processed: long;
- rollups_indexed: long;
- trigger_count: long;
- search_failures: long;
- index_failures: long;
- index_time_in_ms: long;
- index_total: long;
- search_time_in_ms: long;
- search_total: long;
-}
-@namespace("x_pack.roll_up.get_rollup_job")
-class RollupJobStatus {
- current_position: Dictionary;
- job_state: IndexingJobState;
- upgraded_doc_id: boolean;
-}
-@namespace("x_pack.slm")
-class SnapshotLifecyclePolicyMetadata {
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- modified_date_millis: Date;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- next_execution_millis: Date;
- policy: SnapshotLifecyclePolicy;
- version: integer;
- in_progress: SnapshotLifecycleInProgress;
- last_success: SnapshotLifecycleInvocationRecord;
- last_failure: SnapshotLifecycleInvocationRecord;
-}
-@namespace("x_pack.slm")
-class SnapshotLifecycleInProgress {
- name: string;
- uuid: string;
- state: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- start_time_millis: Date;
-}
-@namespace("x_pack.slm")
-class SnapshotLifecycleInvocationRecord {
- snapshot_name: string;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- time: Date;
-}
-@namespace("modules.snapshot_and_restore.snapshot")
-class Snapshot {
- duration_in_millis: long;
- end_time: Date;
- end_time_in_millis: long;
- failures: SnapshotShardFailure[];
- indices: IndexName[];
- snapshot: string;
- shards: ShardStatistics;
- start_time: Date;
- start_time_in_millis: long;
- state: string;
- metadata: Dictionary;
-}
-@namespace("modules.snapshot_and_restore.snapshot")
-class SnapshotShardFailure {
- index: string;
- node_id: string;
- reason: string;
- @prop_serializer("IntStringFormatter")
- shard_id: string;
- status: string;
-}
-@namespace("x_pack.transform.get_transform_stats")
-class TransformStats {
- id: string;
- state: string;
- reason: string;
- node: NodeAttributes;
- stats: TransformIndexerStats;
- checkpointing: TransformCheckpointingInfo;
-}
-@namespace("x_pack.transform.get_transform_stats")
-class NodeAttributes {
- id: string;
- name: string;
- ephemeral_id: string;
- transport_address: string;
- attributes: Dictionary;
-}
-@namespace("x_pack.transform.get_transform_stats")
-class TransformIndexerStats {
- exponential_avg_checkpoint_duration_ms: double;
- exponential_avg_documents_indexed: double;
- exponential_avg_documents_processed: double;
- pages_processed: long;
- documents_processed: long;
- documents_indexed: long;
- trigger_count: long;
- index_time_in_ms: long;
- search_time_in_ms: long;
- processing_time_in_ms: long;
- index_total: long;
- search_total: long;
- processing_total: long;
- search_failures: long;
- index_failures: long;
-}
-@namespace("x_pack.transform.get_transform_stats")
-class TransformCheckpointingInfo {
- changes_last_detected_at: long;
- changes_last_detected_at_date_time: Date;
- last: TransformCheckpointStats;
- next: TransformCheckpointStats;
- operations_behind: long;
-}
-@namespace("x_pack.transform.get_transform_stats")
-class TransformCheckpointStats {
- checkpoint: long;
- checkpoint_progress: TransformProgress;
- timestamp_millis: long;
- timestamp: Date;
- time_upper_bound_millis: long;
- time_upper_bound: Date;
-}
-@namespace("x_pack.transform.get_transform_stats")
-class TransformProgress {
- total_docs: long;
- docs_remaining: long;
- percent_complete: double;
- docs_processed: long;
- docs_indexed: long;
-}
-@namespace("x_pack.security.privileges.get_user_privileges")
-class ApplicationResourcePrivileges {
- application: string;
- privileges: string[];
- resources: string[];
-}
-@namespace("x_pack.security.privileges.get_user_privileges")
-class GlobalPrivileges {
- application: ApplicationGlobalUserPrivileges;
-}
-@namespace("x_pack.security.privileges.get_user_privileges")
-class ApplicationGlobalUserPrivileges {
- manage: ManageUserPrivileges;
-}
-@namespace("x_pack.security.privileges.get_user_privileges")
-class ManageUserPrivileges {
- applications: string[];
-}
-@namespace("x_pack.security.privileges.get_user_privileges")
-class UserIndicesPrivileges {
- field_security: FieldSecuritySettings;
- names: string[];
- privileges: string[];
- query: QueryUserPrivileges;
-}
-@namespace("x_pack.security.privileges.get_user_privileges")
-class FieldSecuritySettings {
- except: string[];
- grant: string[];
-}
-@namespace("x_pack.security.privileges.get_user_privileges")
-class QueryUserPrivileges {
- term: TermUserPrivileges;
-}
-@namespace("x_pack.security.privileges.get_user_privileges")
-class TermUserPrivileges {
- apps: boolean;
-}
-@namespace("x_pack.security.user.get_user")
-class XPackUser {
- email: string;
- full_name: string;
- metadata: Dictionary;
- roles: string[];
- username: string;
-}
-@namespace("x_pack.graph.explore.request")
-class GraphVertexInclude {
- boost: double;
- term: string;
-}
-@namespace("x_pack.graph.explore.request")
-class SampleDiversity {
- field: Field;
- max_docs_per_value: integer;
-}
-@namespace("x_pack.graph.explore.response")
-class GraphConnection {
- doc_count: long;
- source: long;
- target: long;
- weight: double;
-}
-@namespace("x_pack.graph.explore.response")
-class GraphVertex {
- depth: long;
- field: string;
- term: string;
- weight: double;
-}
-@namespace("x_pack.security.privileges.has_privileges")
-class ResourcePrivileges {
- privileges: Dictionary;
- resource: string;
-}
-@namespace("modules.indices.fielddata")
-class FielddataSettings {
- cache_expire: Time;
- cache_size: string;
-}
-@namespace("indices.monitoring.indices_shard_stores")
-class IndicesShardStores {
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- shards: Dictionary;
-}
-@namespace("indices.monitoring.indices_shard_stores")
-class ShardStoreWrapper {
- stores: ShardStore[];
-}
-@namespace("indices.monitoring.indices_shard_stores")
-@class_serializer("ShardStoreFormatter")
-class ShardStore {
- allocation: ShardStoreAllocation;
- allocation_id: string;
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- attributes: Dictionary;
- id: string;
- legacy_version: long;
- name: string;
- store_exception: ShardStoreException;
- transport_address: string;
-}
-@namespace("indices.monitoring.indices_shard_stores")
-class ShardStoreException {
- reason: string;
- type: string;
-}
-@namespace("indices.monitoring.indices_stats")
-class IndicesStats {
- primaries: IndexStats;
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- shards: Dictionary;
- total: IndexStats;
- uuid: string;
-}
-@namespace("indices.monitoring.indices_stats")
-class IndexStats {
- completion: CompletionStats;
- docs: DocStats;
- fielddata: FielddataStats;
- flush: FlushStats;
- get: GetStats;
- indexing: IndexingStats;
- merges: MergesStats;
- query_cache: QueryCacheStats;
- recovery: RecoveryStats;
- refresh: RefreshStats;
- request_cache: RequestCacheStats;
- search: SearchStats;
- segments: SegmentsStats;
- store: StoreStats;
- translog: TranslogStats;
- warmer: WarmerStats;
-}
-@namespace("common_options.stats")
-class FlushStats {
- periodic: long;
- total: long;
- total_time: string;
- total_time_in_millis: long;
-}
-@namespace("common_options.stats")
-class GetStats {
- current: long;
- exists_time: string;
- exists_time_in_millis: long;
- exists_total: long;
- missing_time: string;
- missing_time_in_millis: long;
- missing_total: long;
- time: string;
- time_in_millis: long;
- total: long;
-}
-@namespace("common_options.stats")
-class IndexingStats {
- index_current: long;
- delete_current: long;
- delete_time: string;
- delete_time_in_millis: long;
- delete_total: long;
- is_throttled: boolean;
- noop_update_total: long;
- throttle_time: string;
- throttle_time_in_millis: long;
- index_time: string;
- index_time_in_millis: long;
- index_total: long;
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- types: Dictionary;
-}
-@namespace("common_options.stats")
-class MergesStats {
- current: long;
- current_docs: long;
- current_size: string;
- current_size_in_bytes: long;
- total: long;
- total_auto_throttle: string;
- total_auto_throttle_in_bytes: long;
- total_docs: long;
- total_size: string;
- total_size_in_bytes: long;
- total_stopped_time: string;
- total__stopped_time_in_millis: long;
- total_throttled_time: string;
- total_throttled_time_in_millis: long;
- total_time: string;
- total_time_in_millis: long;
-}
-@namespace("common_options.stats")
-class RecoveryStats {
- current_as_source: long;
- current_as_target: long;
- throttle_time: string;
- throttle_time_in_millis: long;
-}
-@namespace("common_options.stats")
-class RefreshStats {
- total: long;
- total_time: string;
- total_time_in_millis: long;
- external_total: long;
- external_total_time_in_millis: long;
-}
-@namespace("common_options.stats")
-class RequestCacheStats {
- evictions: long;
- hit_count: long;
- memory_size: string;
- memory_size_in_bytes: long;
- miss_count: long;
-}
-@namespace("common_options.stats")
-class SearchStats {
- fetch_current: long;
- fetch_time_in_millis: long;
- fetch_total: long;
- open_contexts: long;
- query_current: long;
- query_time_in_millis: long;
- query_total: long;
- scroll_current: long;
- scroll_time_in_millis: long;
- scroll_total: long;
- suggest_current: long;
- suggest_time_in_millis: long;
- suggest_total: long;
-}
-@namespace("common_options.stats")
-class TranslogStats {
- earliest_last_modified_age: long;
- operations: long;
- size: string;
- size_in_bytes: long;
- uncommitted_operations: integer;
- uncommitted_size: string;
- uncommitted_size_in_bytes: long;
-}
-@namespace("common_options.stats")
-class WarmerStats {
- current: long;
- total: long;
- total_time: string;
- total_time_in_millis: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardStats {
- commit: ShardCommit;
- completion: ShardCompletion;
- docs: ShardDocs;
- fielddata: ShardFielddata;
- flush: ShardFlush;
- get: ShardGet;
- indexing: ShardIndexing;
- merges: ShardMerges;
- shard_path: ShardPath;
- query_cache: ShardQueryCache;
- recovery: ShardStatsRecovery;
- refresh: ShardRefresh;
- request_cache: ShardRequestCache;
- routing: ShardRouting;
- search: ShardSearch;
- segments: ShardSegments;
- seq_no: ShardSequenceNumber;
- store: ShardStatsStore;
- translog: ShardTransactionLog;
- warmer: ShardWarmer;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardCommit {
- generation: integer;
- id: string;
- num_docs: long;
- user_data: Dictionary;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardCompletion {
- size_in_bytes: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardDocs {
- count: long;
- deleted: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardFielddata {
- evictions: long;
- memory_size_in_bytes: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardFlush {
- total: long;
- total_time_in_millis: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardGet {
- current: long;
- exists_time_in_millis: long;
- exists_total: long;
- missing_time_in_millis: long;
- missing_total: long;
- time_in_millis: long;
- total: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardIndexing {
- delete_current: long;
- delete_time_in_millis: long;
- delete_total: long;
- index_current: long;
- index_failed: long;
- index_time_in_millis: long;
- index_total: long;
- is_throttled: boolean;
- noop_update_total: long;
- throttle_time_in_millis: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardMerges {
- current: long;
- current_docs: long;
- current_size_in_bytes: long;
- total: long;
- total_auto_throttle_in_bytes: long;
- total_docs: long;
- total_size_in_bytes: long;
- total_stopped_time_in_millis: long;
- total_throttled_time_in_millis: long;
- total_time_in_millis: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardPath {
- data_path: string;
- is_custom_data_path: boolean;
- state_path: string;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardQueryCache {
- cache_count: long;
- cache_size: long;
- evictions: long;
- hit_count: long;
- memory_size_in_bytes: long;
- miss_count: long;
- total_count: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardStatsRecovery {
- current_as_source: long;
- current_as_target: long;
- throttle_time_in_millis: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardRefresh {
- listeners: long;
- total: long;
- total_time_in_millis: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardRequestCache {
- evictions: long;
- hit_count: long;
- memory_size_in_bytes: long;
- miss_count: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardRouting {
- node: string;
- primary: boolean;
- relocating_node: string;
- state: ShardRoutingState;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardSearch {
- fetch_current: long;
- fetch_time_in_millis: long;
- fetch_total: long;
- open_contexts: long;
- query_current: long;
- query_time_in_millis: long;
- query_total: long;
- scroll_current: long;
- scroll_time_in_millis: long;
- scroll_total: long;
- suggest_current: long;
- suggest_time_in_millis: long;
- suggest_total: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardSegments {
- count: long;
- doc_values_memory_in_bytes: long;
- file_sizes: Dictionary;
- fixed_bit_set_memory_in_bytes: long;
- index_writer_memory_in_bytes: long;
- max_unsafe_auto_id_timestamp: long;
- memory_in_bytes: long;
- norms_memory_in_bytes: long;
- points_memory_in_bytes: long;
- stored_fields_memory_in_bytes: long;
- terms_memory_in_bytes: long;
- term_vectors_memory_in_bytes: long;
- version_map_memory_in_bytes: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardSequenceNumber {
- global_checkpoint: long;
- local_checkpoint: long;
- max_seq_no: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardStatsStore {
- size_in_bytes: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardTransactionLog {
- operations: long;
- size_in_bytes: long;
- uncommitted_operations: long;
- uncommitted_size_in_bytes: long;
-}
-@namespace("indices.monitoring.indices_stats")
-class ShardWarmer {
- current: long;
- total: long;
- total_time_in_millis: long;
-}
-@namespace("x_pack.machine_learning.machine_learning_info")
-class Defaults {
- anomaly_detectors: AnomalyDetectors;
- datafeeds: Datafeeds;
-}
-@namespace("x_pack.machine_learning.machine_learning_info")
-class AnomalyDetectors {
- model_memory_limit: string;
- categorization_examples_limit: integer;
- model_snapshot_retention_days: integer;
- categorization_analyzer: CategorizationAnalyzer;
-}
-@namespace("x_pack.machine_learning.machine_learning_info")
-class CategorizationAnalyzer {
- tokenizer: string;
- filter: ITokenFilter[];
-}
-@namespace("x_pack.machine_learning.machine_learning_info")
-class Datafeeds {
- scroll_size: integer;
-}
-@namespace("x_pack.machine_learning.machine_learning_info")
-class Limits {
- max_model_memory_limit: string;
-}
-@namespace("document.single.term_vectors")
-class TermVector {
- field_statistics: FieldStatistics;
- terms: Dictionary;
-}
-@namespace("document.single.term_vectors")
-class FieldStatistics {
- doc_count: integer;
- sum_doc_freq: long;
- sum_ttf: long;
-}
-@namespace("document.single.term_vectors")
-class TermVectorTerm {
- doc_freq: integer;
- term_freq: integer;
- score: double;
- tokens: Token[];
- ttf: integer;
-}
-@namespace("document.single.term_vectors")
-class Token {
- end_offset: integer;
- payload: string;
- position: integer;
- start_offset: integer;
-}
-@namespace("cluster.nodes_hot_threads")
-class HotThreadInformation {
- hosts: string[];
- node_id: string;
- node_name: string;
- threads: string[];
-}
-@namespace("cluster.nodes_info")
-class NodeInfo {
- name: string;
- transport_address: string;
- host: string;
- ip: string;
- version: string;
- build_flavor: string;
- build_type: string;
- build_hash: string;
- total_indexing_buffer: long;
- roles: NodeRole[];
- attributes: Dictionary;
- settings: string[];
- os: NodeOperatingSystemInfo;
- process: NodeProcessInfo;
- jvm: NodeJvmInfo;
- http: NodeInfoHttp;
- network: NodeInfoNetwork;
- plugins: PluginStats[];
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- thread_pool: Dictionary;
- transport: NodeInfoTransport;
-}
-@namespace("cluster.nodes_info")
-class NodeOperatingSystemInfo {
- arch: string;
- available_processors: integer;
- cpu: NodeInfoOSCPU;
- mem: NodeInfoMemory;
- name: string;
- pretty_name: string;
- refresh_interval_in_millis: integer;
- swap: NodeInfoMemory;
- version: string;
-}
-@namespace("cluster.nodes_info")
-class NodeInfoOSCPU {
- cache_size: string;
- cache_size_in_bytes: integer;
- cores_per_socket: integer;
- mhz: integer;
- model: string;
- total_cores: integer;
- total_sockets: integer;
- vendor: string;
-}
-@namespace("cluster.nodes_info")
-class NodeInfoMemory {
- total: string;
- total_in_bytes: long;
-}
-@namespace("cluster.nodes_info")
-class NodeProcessInfo {
- id: long;
- mlockall: boolean;
- refresh_interval_in_millis: long;
-}
-@namespace("cluster.nodes_info")
-class NodeJvmInfo {
- gc_collectors: string[];
- mem: NodeInfoJvmMemory;
- memory_pools: string[];
- pid: integer;
- start_time_in_millis: long;
- version: string;
- vm_name: string;
- vm_vendor: string;
- vm_version: string;
-}
-@namespace("cluster.nodes_info")
-class NodeInfoJvmMemory {
- direct_max: string;
- direct_max_in_bytes: long;
- heap_init: string;
- heap_init_in_bytes: long;
- heap_max: string;
- heap_max_in_bytes: long;
- non_heap_init: string;
- non_heap_init_in_bytes: long;
- non_heap_max: string;
- non_heap_max_in_bytes: long;
-}
-@namespace("cluster.nodes_info")
-class NodeInfoHttp {
- bound_address: string[];
- max_content_length: string;
- max_content_length_in_bytes: long;
- publish_address: string;
-}
-@namespace("cluster.nodes_info")
-class NodeInfoNetwork {
- primary_interface: NodeInfoNetworkInterface;
- refresh_interval: integer;
-}
-@namespace("cluster.nodes_info")
-class NodeInfoNetworkInterface {
- address: string;
- mac_address: string;
- name: string;
-}
-@namespace("cluster.nodes_info")
-class NodeThreadPoolInfo {
- keep_alive: string;
- max: integer;
- core: integer;
- size: integer;
- queue_size: integer;
- type: string;
-}
-@namespace("cluster.nodes_info")
-class NodeInfoTransport {
- bound_address: string[];
- publish_address: string;
-}
-@namespace("cluster.nodes_stats")
-class NodeStats {
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- adaptive_selection: Dictionary;
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- breakers: Dictionary;
- fs: FileSystemStats;
- host: string;
- http: HttpStats;
- indices: IndexStats;
- ingest: NodeIngestStats;
- @prop_serializer("SingleOrEnumerableFormatter`1")
- ip: string[];
- jvm: NodeJvmStats;
- name: string;
- os: OperatingSystemStats;
- process: ProcessStats;
- roles: NodeRole[];
- script: ScriptStats;
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- thread_pool: Dictionary;
- timestamp: long;
- transport: TransportStats;
- transport_address: string;
-}
-@namespace("cluster.nodes_stats")
-class AdaptiveSelectionStats {
- avg_queue_size: long;
- avg_response_time: long;
- avg_response_time_ns: long;
- avg_service_time: string;
- avg_service_time_ns: long;
- outgoing_searches: long;
- rank: string;
-}
-@namespace("cluster.nodes_stats")
-class BreakerStats {
- estimated_size: string;
- estimated_size_in_bytes: long;
- limit_size: string;
- limit_size_in_bytes: long;
- overhead: float;
- tripped: float;
-}
-@namespace("cluster.nodes_stats")
-class FileSystemStats {
- data: DataPathStats[];
- timestamp: long;
- total: TotalFileSystemStats;
-}
-@namespace("cluster.nodes_stats")
-class HttpStats {
- current_open: integer;
- total_opened: long;
-}
-@namespace("cluster.nodes_stats.statistics")
-class NodeIngestStats {
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- pipelines: Dictionary;
- total: IngestStats;
-}
-@namespace("cluster.nodes_stats.statistics")
-class IngestStats {
- count: long;
- current: long;
- failed: long;
- time_in_millis: long;
- processors: KeyedProcessorStats[];
-}
-@namespace("cluster.nodes_stats.statistics")
-@class_serializer("KeyedProcessorStatsFormatter")
-class KeyedProcessorStats {
- type: string;
- statistics: ProcessStats;
-}
-@namespace("cluster.nodes_stats")
-class ProcessStats {
- cpu: CPUStats;
- mem: MemoryStats;
- open_file_descriptors: integer;
- timestamp: long;
-}
-@namespace("cluster.nodes_stats")
-class NodeJvmStats {
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- buffer_pools: Dictionary;
- classes: JvmClassesStats;
- gc: GarbageCollectionStats;
- mem: MemoryStats;
- threads: ThreadStats;
- timestamp: long;
- uptime: string;
- uptime_in_millis: long;
-}
-@namespace("cluster.nodes_stats")
-class OperatingSystemStats {
- cpu: CPUStats;
- mem: ExtendedMemoryStats;
- swap: MemoryStats;
- timestamp: long;
-}
-@namespace("cluster.nodes_stats")
-class ScriptStats {
- cache_evictions: long;
- compilations: long;
-}
-@namespace("cluster.nodes_stats")
-class ThreadCountStats {
- active: long;
- completed: long;
- largest: long;
- queue: long;
- rejected: long;
- threads: long;
-}
-@namespace("cluster.nodes_stats")
-class TransportStats {
- rx_count: long;
- rx_size: string;
- rx_size_in_bytes: long;
- server_open: integer;
- tx_count: long;
- tx_size: string;
- tx_size_in_bytes: long;
-}
-@namespace("cluster.nodes_usage")
-class NodeUsageInformation {
- rest_actions: Dictionary;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- since: Date;
- @prop_serializer("DateTimeOffsetEpochMillisecondsFormatter")
- timestamp: Date;
-}
-@namespace("x_pack.license.get_license")
-class License {
- expiry_date_in_millis: long;
- issue_date_in_millis: long;
- issued_to: string;
- issuer: string;
- max_nodes: long;
- signature: string;
- type: LicenseType;
- uid: string;
-}
-@namespace("x_pack.license.post_license")
-class LicenseAcknowledgement {
- license: string[];
- message: string;
-}
-@namespace("x_pack.security.privileges.put_privileges")
-class PutPrivilegesStatus {
- created: boolean;
-}
-@namespace("x_pack.security.role_mapping.put_role_mapping")
-class PutRoleMappingStatus {
- created: boolean;
-}
-@namespace("x_pack.security.role.put_role")
-class PutRoleStatus {
- created: boolean;
-}
-@namespace("x_pack.sql.query_sql")
-class SqlColumn {
- name: string;
- type: string;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryStatus {
- shards: ShardRecovery[];
-}
-@namespace("indices.monitoring.indices_recovery")
-class ShardRecovery {
- id: long;
- index: RecoveryIndexStatus;
- primary: boolean;
- source: RecoveryOrigin;
- stage: string;
- start: RecoveryStartStatus;
- @prop_serializer("NullableDateTimeEpochMillisecondsFormatter")
- start_time_in_millis: Date;
- @prop_serializer("NullableDateTimeEpochMillisecondsFormatter")
- stop_time_in_millis: Date;
- target: RecoveryOrigin;
- total_time_in_millis: long;
- translog: RecoveryTranslogStatus;
- type: string;
- verify_index: RecoveryVerifyIndex;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryIndexStatus {
- bytes: RecoveryBytes;
- files: RecoveryFiles;
- size: RecoveryBytes;
- source_throttle_time_in_millis: long;
- target_throttle_time_in_millis: long;
- total_time_in_millis: long;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryBytes {
- percent: string;
- recovered: long;
- reused: long;
- total: long;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryFiles {
- details: RecoveryFileDetails[];
- percent: string;
- recovered: long;
- reused: long;
- total: long;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryFileDetails {
- length: long;
- name: string;
- recovered: long;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryOrigin {
- hostname: string;
- id: string;
- ip: string;
- name: string;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryStartStatus {
- check_index_time: long;
- total_time_in_millis: string;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryTranslogStatus {
- percent: string;
- recovered: long;
- total: long;
- total_on_start: long;
- total_time: string;
- total_time_in_millis: long;
-}
-@namespace("indices.monitoring.indices_recovery")
-class RecoveryVerifyIndex {
- check_index_time_in_millis: long;
- total_time_in_millis: long;
-}
-@namespace("document.multiple.reindex_on_server")
-@class_serializer("ReindexRoutingFormatter")
-class ReindexRouting {
-}
-@namespace("document.multiple.reindex_rethrottle")
-class ReindexNode {
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- attributes: Dictionary;
- host: string;
- ip: string;
- name: string;
- roles: string[];
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- tasks: Dictionary;
- transport_address: string;
-}
-@namespace("document.multiple.reindex_rethrottle")
-class ReindexTask {
- action: string;
- cancellable: boolean;
- description: string;
- id: long;
- node: string;
- running_time_in_nanos: long;
- start_time_in_millis: long;
- status: ReindexStatus;
- type: string;
-}
-@namespace("document.multiple.reindex_rethrottle")
-class ReindexStatus {
- batches: long;
- created: long;
- deleted: long;
- noops: long;
- requests_per_second: float;
- retries: Retries;
- throttled_millis: long;
- throttled_until_millis: long;
- total: long;
- updated: long;
- version_conflicts: long;
-}
-@namespace("indices.reload_search_analyzers")
-class ReloadDetails {
- index: string;
- reloaded_analyzers: string[];
- reloaded_node_ids: string[];
-}
-@namespace("cluster.remote_info")
-class RemoteInfo {
- connected: boolean;
- skip_unavailable: boolean;
- initial_connect_timeout: Time;
- max_connections_per_cluster: integer;
- num_nodes_connected: long;
- seeds: string[];
-}
-@namespace("modules.snapshot_and_restore.restore")
-class SnapshotRestore {
- indices: IndexName[];
- snapshot: string;
- shards: ShardStatistics;
-}
-@namespace("common_abstractions.response")
-class ElasticsearchVersionInfo {
- lucene_version: string;
- number: string;
- build_flavor: string;
- build_type: string;
- build_hash: string;
- build_date: Date;
- build_snapshot: boolean;
- minimum_wire_compatibility_version: string;
- minimum_index_compatibility_version: string;
-}
-@namespace("search.search_shards")
-class SearchNode {
- name: string;
- transport_address: string;
-}
-@namespace("search.search_shards")
-class SearchShard {
- index: string;
- node: string;
- primary: boolean;
- relocating_node: string;
- shard: integer;
- state: string;
-}
-@namespace("indices.monitoring.indices_segments")
-class IndexSegment {
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- shards: Dictionary;
-}
-@namespace("indices.monitoring.indices_segments")
-@class_serializer("Json")
-class ShardsSegment {
- num_committed_segments: integer;
- routing: ShardSegmentRouting;
- num_search_segments: integer;
- @prop_serializer("VerbatimInterfaceReadOnlyDictionaryKeysFormatter`2")
- segments: Dictionary;
-}
-@namespace("indices.monitoring.indices_segments")
-class ShardSegmentRouting {
- node: string;
- primary: boolean;
- state: string;
-}
-@namespace("indices.monitoring.indices_segments")
-class Segment {
- attributes: Dictionary;
- committed: boolean;
- compound: boolean;
- deleted_docs: long;
- generation: integer;
- memory_in_bytes: double;
- search: boolean;
- size_in_bytes: double;
- num_docs: long;
- version: string;
-}
-@namespace("ingest.simulate_pipeline")
-class PipelineSimulation {
- doc: DocumentSimulation;
- processor_results: PipelineSimulation[];
- tag: string;
-}
-@namespace("ingest.simulate_pipeline")
-class DocumentSimulation {
- _id: string;
- _index: string;
- _ingest: Ingest;
- _parent: string;
- _routing: string;
- _source: LazyDocument;
- _type: string;
-}
-@namespace("ingest.simulate_pipeline")
-class Ingest {
- timestamp: Date;
-}
-@namespace("modules.snapshot_and_restore.snapshot.snapshot_status")
-class SnapshotStatus {
- include_global_state: boolean;
- indices: Dictionary;
- repository: string;
- shards_stats: SnapshotShardsStats;
- snapshot: string;
- state: string;
- stats: SnapshotStats;
- uuid: string;
-}
-@namespace("modules.snapshot_and_restore.snapshot.snapshot_status")
-class SnapshotIndexStats {
- shards: Dictionary;
- shards_stats: SnapshotShardsStats;
- stats: SnapshotStats;
-}
-@namespace("modules.snapshot_and_restore.snapshot.snapshot_status")
-class SnapshotShardsStats {
- done: long;
- failed: long;
- finalizing: long;
- initializing: long;
- started: long;
- total: long;
-}
-@namespace("modules.snapshot_and_restore.snapshot.snapshot_status")
-class SnapshotStats {
- incremental: FileCountSnapshotStats;
- total: FileCountSnapshotStats;
- start_time_in_millis: long;
- time_in_millis: long;
-}
-@namespace("modules.snapshot_and_restore.snapshot.snapshot_status")
-class FileCountSnapshotStats {
- file_count: integer;
- size_in_bytes: long;
-}
-@namespace("search.validate")
-class ValidationExplanation {
- error: string;
- explanation: string;
- index: string;
- valid: boolean;
-}
-@namespace("modules.snapshot_and_restore.repositories.verify_repository")
-class CompactNodeInfo {
- name: string;
-}
-@namespace("x_pack.watcher.watcher_stats")
-class WatcherNodeStats {
- current_watches: WatchRecordStats[];
- execution_thread_pool: ExecutionThreadPool;
- queued_watches: WatchRecordQueuedStats[];
- watch_count: long;
- watcher_state: WatcherState;
-}
-@namespace("x_pack.watcher.watcher_stats")
-class WatchRecordQueuedStats {
- execution_time: Date;
- triggered_time: Date;
- watch_id: string;
- watch_record_id: string;
-}
-@namespace("x_pack.watcher.watcher_stats")
-class ExecutionThreadPool {
- max_size: long;
- queue_size: long;
-}
-@namespace("x_pack.info.x_pack_info")
-class XPackBuildInformation {
- date: Date;
- hash: string;
-}
-@namespace("x_pack.info.x_pack_info")
-class XPackFeatures {
- analytics: XPackFeature;
- ccr: XPackFeature;
- enrich: XPackFeature;
- data_frame: XPackFeature;
- flattened: XPackFeature;
- frozen_indices: XPackFeature;
- data_science: XPackFeature;
- graph: XPackFeature;
- ilm: XPackFeature;
- logstash: XPackFeature;
- ml: XPackFeature;
- monitoring: XPackFeature;
- rollup: XPackFeature;
- security: XPackFeature;
- slm: XPackFeature;
- spatial: XPackFeature;
- sql: XPackFeature;
- transform: XPackFeature;
- vectors: XPackFeature;
- voting_only: XPackFeature;
- watcher: XPackFeature;
-}
-@namespace("x_pack.info.x_pack_info")
-class XPackFeature {
- available: boolean;
- description: string;
- enabled: boolean;
- native_code_info: NativeCodeInformation;
-}
-@namespace("x_pack.info.x_pack_info")
-class NativeCodeInformation {
- build_hash: string;
- version: string;
-}
-@namespace("x_pack.info.x_pack_info")
-class MinimalLicenseInformation {
- expiry_date_in_millis: long;
- mode: LicenseType;
- status: LicenseStatus;
- type: LicenseType;
- uid: string;
-}
-@namespace("x_pack.info.x_pack_usage")
-class XPackUsage {
- available: boolean;
- enabled: boolean;
-}
-@namespace("x_pack.info.x_pack_usage")
-class QueryUsage {
- total: integer;
- paging: integer;
- failed: integer;
- count: integer;
-}
-@namespace("x_pack.info.x_pack_usage")
-class IlmUsage {
- policy_count: integer;
- policy_stats: IlmPolicyStatistics[];
-}
-@namespace("x_pack.info.x_pack_usage")
-class SnapshotLifecycleStats {
- retention_runs: long;
- retention_failed: long;
- retention_timed_out: long;
- retention_deletion_time: string;
- retention_deletion_time_millis: long;
- total_snapshots_taken: long;
- total_snapshots_failed: long;
- total_snapshots_deleted: long;
- total_snapshot_deletion_failures: long;
-}
-@namespace("search.suggesters.context_suggester")
-@class_serializer("ContextFormatter")
-class Context extends Union {
- category: string;
- geo: GeoLocation;
-}
-@namespace("common_options.minimum_should_match")
-@class_serializer("MinimumShouldMatchFormatter")
-class MinimumShouldMatch extends Union {
-}
-@namespace("query_dsl.multi_term_query_rewrite")
-@class_serializer("MultiTermQueryRewriteFormatter")
-class MultiTermQueryRewrite {
- constant_score: MultiTermQueryRewrite;
- constant_score_boolean: MultiTermQueryRewrite;
- rewrite: RewriteMultiTerm;
- scoring_boolean: MultiTermQueryRewrite;
- size: integer;
-}
-@namespace("query_dsl.specialized.more_like_this.like")
-@class_serializer("LikeFormatter")
-class Like extends Union {
-}
-@namespace("analysis")
-@class_serializer("StopWordsFormatter")
-class StopWords extends Union {
-}
-@namespace("aggregations.bucket.histogram")
-@class_serializer("SortOrderFormatter`1")
-class HistogramOrder {
- count_ascending: HistogramOrder;
- count_descending: HistogramOrder;
- key: string;
- key_ascending: HistogramOrder;
- key_descending: HistogramOrder;
- order: SortOrder;
-}
-@namespace("aggregations.bucket.terms")
-@class_serializer("SortOrderFormatter`1")
-class TermsOrder {
- count_ascending: TermsOrder;
- count_descending: TermsOrder;
- key: string;
- key_ascending: TermsOrder;
- key_descending: TermsOrder;
- order: SortOrder;
-}
-@namespace("cat.cat_aliases")
-class CatAliasesRecord implements ICatRecord {
- alias: string;
- filter: string;
- index: string;
- indexRouting: string;
- searchRouting: string;
-}
-@namespace("cat.cat_aliases")
-class CatAliasesResponse extends ResponseBase {
- records: CatAliasesRecord[];
-}
-@namespace("cat.cat_allocation")
-class CatAllocationRecord implements ICatRecord {
- '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;
-}
-@namespace("cat.cat_allocation")
-class CatAllocationResponse extends ResponseBase {
- records: CatAllocationRecord[];
-}
-@namespace("cat.cat_count")
-class CatCountRecord implements ICatRecord {
- count: string;
- epoch: string;
- timestamp: string;
-}
-@namespace("cat.cat_count")
-class CatCountResponse extends ResponseBase {
- records: CatCountRecord[];
-}
-@namespace("cat.cat_datafeeds")
-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;
-}
-@namespace("cat.cat_datafeeds")
-class CatDatafeedsResponse extends ResponseBase {
- records: CatDatafeedsRecord[];
-}
-@namespace("cat.cat_data_frame_analytics")
-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;
-}
-@namespace("cat.cat_data_frame_analytics")
-class CatDataFrameAnalyticsResponse extends ResponseBase {
- records: CatDataFrameAnalyticsRecord[];
-}
-@namespace("cat.cat_fielddata")
-@class_serializer("CatFielddataRecordFormatter")
-class CatFielddataRecord implements ICatRecord {
- field: string;
- host: string;
- id: string;
- ip: string;
- node: string;
- size: string;
-}
-@namespace("cat.cat_fielddata")
-class CatFielddataResponse extends ResponseBase {
- records: CatFielddataRecord[];
-}
-@namespace("cat.cat_health")
-class CatHealthRecord implements ICatRecord {
- cluster: string;
- epoch: string;
- init: string;
- 'node.data': string;
- 'node.total': string;
- pending_tasks: string;
- pri: string;
- relo: string;
- shards: string;
- status: string;
- timestamp: string;
- unassign: string;
-}
-@namespace("cat.cat_health")
-class CatHealthResponse extends ResponseBase {
- records: CatHealthRecord[];
-}
-@namespace("cat.cat_help")
-class CatHelpRecord implements ICatRecord {
- endpoint: string;
-}
-@namespace("cat.cat_help")
-class CatHelpResponse extends ResponseBase {
- records: CatHelpRecord[];
-}
-@namespace("cat.cat_indices")
-class CatIndicesRecord implements ICatRecord {
- 'docs.count': string;
- 'docs.deleted': string;
- health: string;
- index: string;
- uuid: string;
- pri: string;
- 'pri.store.size': string;
- rep: string;
- status: string;
- 'store.size': string;
- tm: string;
-}
-@namespace("cat.cat_indices")
-class CatIndicesResponse extends ResponseBase {
- records: CatIndicesRecord[];
-}
-@namespace("cat.cat_jobs")
-class CatJobsRecord implements ICatRecord {
- assignment_explanation: string;
- 'buckets.count': string;
- 'buckets.time.exp_avg': string;
- 'buckets.time.exp_avg_hour': string;
- 'buckets.time.max': string;
- 'buckets.time.min': string;
- 'buckets.time.total': string;
- 'data.buckets': string;
- 'data.earliest_record': string;
- 'data.empty_buckets': string;
- 'data.input_bytes': string;
- 'data.input_fields': string;
- 'data.input_records': string;
- 'data.invalid_dates': string;
- 'data.last': string;
- 'data.last_empty_bucket': string;
- 'data.last_sparse_bucket': string;
- 'data.latest_record': string;
- 'data.missing_fields': string;
- 'data.out_of_order_timestamps': string;
- 'data.processed_fields': string;
- 'data.processed_records': string;
- 'data.sparse_buckets': string;
- 'forecasts.memory.avg': string;
- 'forecasts.memory.min': string;
- 'forecasts.memory.total': string;
- 'forecasts.records.avg': string;
- 'forecasts.records.max': string;
- 'forecasts.records.min': string;
- 'forecasts.records.total': string;
- 'forecasts.time.avg': string;
- 'forecasts.time.max': string;
- 'forecasts.time.min': string;
- 'forecasts.total': string;
- id: string;
- 'model.bucket_allocation_failures': string;
- 'model.by_fields': string;
- 'model.bytes': string;
- 'model.bytes': string;
- 'model.categorization_status': ModelCategorizationStatus;
- 'model.categorized_doc_count': string;
- 'model.dead_category_count': string;
- 'model.frequent_category_count': string;
- 'model.log_time': string;
- 'model.memory_limit': string;
- 'model.memory_status': ModelMemoryStatus;
- 'model.over_fields': string;
- 'model.partition_fields': string;
- 'model.rare_category_count': string;
- 'model.timestamp': string;
- 'node.address': string;
- 'node.ephemeral_id': string;
- 'node.id': string;
- 'node.name': string;
- opened_time: string;
- state: JobState;
-}
-@namespace("cat.cat_jobs")
-class CatJobsResponse extends ResponseBase {
- records: CatJobsRecord[];
-}
-@namespace("cat.cat_master")
-class CatMasterRecord implements ICatRecord {
- id: string;
- ip: string;
- node: string;
-}
-@namespace("cat.cat_master")
-class CatMasterResponse extends ResponseBase {
- records: CatMasterRecord[];
-}
-@namespace("cat.cat_node_attributes")
-class CatNodeAttributesRecord implements ICatRecord {
- attr: string;
- host: string;
- id: string;
- ip: string;
- node: string;
- port: long;
- pid: long;
- value: string;
-}
-@namespace("cat.cat_node_attributes")
-class CatNodeAttributesResponse extends ResponseBase {
- records: CatNodeAttributesRecord[];
-}
-@namespace("cat.cat_nodes")
-class CatNodesRecord implements ICatRecord {
- build: string;
- completion_size: string;
- cpu: string;
- disk_available: string;
- fielddata_evictions: string;
- fielddata_memory: string;
- file_descriptor_current: integer;
- file_descriptor_max: integer;
- file_descriptor_percent: integer;
- filter_cache_evictions: string;
- filter_cache_memory: string;
- flush_total: string;
- flush_total_time: string;
- get_current: string;
- get_exists_time: string;
- get_exists_total: string;
- get_missing_time: string;
- get_missing_total: string;
- get_time: string;
- get_total: string;
- heap_current: string;
- heap_max: string;
- heap_percent: string;
- id_cache_memory: string;
- indexing_delete_current: string;
- indexing_delete_time: string;
- indexing_delete_total: string;
- indexing_index_current: string;
- indexing_index_time: string;
- indexing_index_total: string;
- ip: string;
- jdk: string;
- load_15m: string;
- load_5m: string;
- load_1m: string;
- master: string;
- merges_current: string;
- merges_current_docs: string;
- merges_current_size: string;
- merges_total: string;
- merges_total_docs: string;
- merges_total_time: string;
- name: string;
- node_id: string;
- node_role: string;
- percolate_current: string;
- percolate_memory: string;
- percolate_queries: string;
- percolate_time: string;
- percolate_total: string;
- pid: string;
- port: string;
- ram_current: string;
- ram_max: string;
- ram_percent: string;
- refresh_time: string;
- refresh_total: string;
- search_fetch_current: string;
- search_fetch_time: string;
- search_fetch_total: string;
- search_open_contexts: string;
- search_query_current: string;
- search_query_time: string;
- search_query_total: string;
- segments_count: string;
- segments_index_writer_max_memory: string;
- segments_index_writer_memory: string;
- segments_memory: string;
- segments_version_map_memory: string;
- uptime: string;
- version: string;
-}
-@namespace("cat.cat_nodes")
-class CatNodesResponse extends ResponseBase {
- records: CatNodesRecord[];
-}
-@namespace("cat.cat_pending_tasks")
-class CatPendingTasksRecord implements ICatRecord {
- @prop_serializer("NullableStringIntFormatter")
- insertOrder: integer;
- priority: string;
- source: string;
- timeInQueue: string;
-}
-@namespace("cat.cat_pending_tasks")
-class CatPendingTasksResponse extends ResponseBase {
- records: CatPendingTasksRecord[];
-}
-@namespace("cat.cat_plugins")
-class CatPluginsRecord implements ICatRecord {
- component: string;
- description: string;
- id: string;
- isolation: string;
- name: string;
- type: string;
- url: string;
- version: string;
-}
-@namespace("cat.cat_plugins")
-class CatPluginsResponse extends ResponseBase {
- records: CatPluginsRecord[];
-}
-@namespace("cat.cat_recovery")
-class CatRecoveryRecord implements ICatRecord {
- bytes: string;
- bytes_percent: string;
- bytes_recovered: string;
- bytes_total: string;
- files: string;
- files_percent: string;
- files_recovered: string;
- files_total: string;
- index: string;
- repository: string;
- shard: string;
- snapshot: string;
- source_host: string;
- source_node: string;
- stage: string;
- target_host: string;
- target_node: string;
- time: string;
- @prop_serializer("NullableStringLongFormatter")
- translog_ops: long;
- translog_ops_percent: string;
- @prop_serializer("NullableStringLongFormatter")
- translog_ops_recovered: long;
- type: string;
-}
-@namespace("cat.cat_recovery")
-class CatRecoveryResponse extends ResponseBase {
- records: CatRecoveryRecord[];
-}
-@namespace("cat.cat_repositories")
-class CatRepositoriesRecord implements ICatRecord {
- id: string;
- type: string;
-}
-@namespace("cat.cat_repositories")
-class CatRepositoriesResponse extends ResponseBase {
- records: CatRepositoriesRecord[];
-}
-@namespace("cat.cat_segments")
-class CatSegmentsRecord implements ICatRecord {
- committed: string;
- compound: string;
- 'docs.count': string;
- 'docs.deleted': string;
- generation: string;
- id: string;
- index: string;
- ip: string;
- prirep: string;
- searchable: string;
- segment: string;
- shard: string;
- size: string;
- 'size.memory': string;
- version: string;
-}
-@namespace("cat.cat_segments")
-class CatSegmentsResponse extends ResponseBase {
- records: CatSegmentsRecord[];
-}
-@namespace("cat.cat_shards")
-class CatShardsRecord implements ICatRecord {
- 'completion.size': string;
- docs: string;
- 'fielddata.evictions': string;
- 'fielddata.memory_size': string;
- 'filter_cache.memory_size': string;
- 'flush.total': string;
- 'flush.total_time': string;
- 'get.current': string;
- 'get.exists_time': string;
- 'get.exists_total': string;
- 'get.missing_time': string;
- 'get.missing_total': string;
- 'get.time': string;
- 'get.total': string;
- id: string;
- 'id_cache.memory_size': string;
- index: string;
- 'indexing.delete_current': string;
- 'indexing.delete_time': string;
- 'indexing.delete_total': string;
- 'indexing.index_current': string;
- 'indexing.index_time': string;
- 'indexing.index_total': string;
- ip: string;
- 'merges.current': string;
- 'merges.current_docs': string;
- 'merges.current_size': string;
- 'merges.total_docs': string;
- 'merges.total_size': string;
- 'merges.total_time': string;
- node: string;
- 'percolate.current': string;
- 'percolate.memory_size': string;
- 'percolate.queries': string;
- 'percolate.time': string;
- 'percolate.total': string;
- prirep: string;
- 'refresh.time': string;
- 'refresh.total': string;
- 'search.fetch_current': string;
- 'search.fetch_time': string;
- 'search.fetch_total': string;
- 'search.open_contexts': string;
- 'search.query_current': string;
- 'search.query_time': string;
- 'search.query_total': string;
- 'segments.count': string;
- 'segments.fixed_bitset_memory': string;
- 'segments.index_writer_max_memory': string;
- 'segments.index_writer_memory': string;
- 'segments.memory': string;
- 'segments.version_map_memory': string;
- shard: string;
- state: string;
- store: string;
- 'warmer.current': string;
- 'warmer.total': string;
- 'warmer.total_time': string;
-}
-@namespace("cat.cat_shards")
-class CatShardsResponse extends ResponseBase {
- records: CatShardsRecord[];
-}
-@namespace("cat.cat_snapshots")
-class CatSnapshotsRecord implements ICatRecord {
- duration: Time;
- @prop_serializer("StringLongFormatter")
- end_epoch: long;
- end_time: string;
- @prop_serializer("StringLongFormatter")
- failed_shards: long;
- id: string;
- @prop_serializer("StringLongFormatter")
- indices: long;
- @prop_serializer("StringLongFormatter")
- start_epoch: long;
- start_time: string;
- status: string;
- @prop_serializer("StringLongFormatter")
- successful_shards: long;
- @prop_serializer("StringLongFormatter")
- total_shards: long;
-}
-@namespace("cat.cat_snapshots")
-class CatSnapshotsResponse extends ResponseBase {
- records: CatSnapshotsRecord[];
-}
-@namespace("cat.cat_tasks")
-class CatTasksRecord implements ICatRecord {
- action: string;
- ip: string;
- node: string;
- parent_task_id: string;
- running_time: string;
- start_time: string;
- task_id: string;
- timestamp: string;
- type: string;
-}
-@namespace("cat.cat_tasks")
-class CatTasksResponse extends ResponseBase {
- records: CatTasksRecord[];
-}
-@namespace("cat.cat_templates")
-class CatTemplatesRecord implements ICatRecord {
- index_patterns: string;
- name: string;
- @prop_serializer("StringLongFormatter")
- order: long;
- @prop_serializer("NullableStringLongFormatter")
- version: long;
-}
-@namespace("cat.cat_templates")
-class CatTemplatesResponse extends ResponseBase {
- records: CatTemplatesRecord[];
-}
-@namespace("cat.cat_thread_pool")
-class CatThreadPoolRecord implements ICatRecord {
- @prop_serializer("StringIntFormatter")
- active: integer;
- @prop_serializer("NullableStringLongFormatter")
- completed: long;
- @prop_serializer("NullableStringIntFormatter")
- core: integer;
- ephemeral_node_id: string;
- host: string;
- ip: string;
- keep_alive: Time;
- @prop_serializer("NullableStringIntFormatter")
- largest: integer;
- @prop_serializer("NullableStringIntFormatter")
- max: integer;
- name: string;
- node_id: string;
- node_name: string;
- @prop_serializer("NullableStringIntFormatter")
- pool_size: integer;
- @prop_serializer("NullableStringIntFormatter")
- port: integer;
- @prop_serializer("NullableStringIntFormatter")
- pid: integer;
- @prop_serializer("StringIntFormatter")
- queue: integer;
- @prop_serializer("NullableStringIntFormatter")
- queue_size: integer;
- @prop_serializer("StringLongFormatter")
- rejected: long;
- @prop_serializer("NullableStringIntFormatter")
- size: integer;
- type: string;
-}
-@namespace("cat.cat_thread_pool")
-class CatThreadPoolResponse extends ResponseBase {
- records: CatThreadPoolRecord[];
-}
-@namespace("cat.cat_trained_models")
-class CatTrainedModelsRecord implements ICatRecord {
- create_time: string;
- created_by: string;
- data_frame_analytics_id: string;
- description: string;
- heap_size: string;
- id: string;
- 'ingest.count': long;
- 'ingest.current': long;
- 'ingest.failed': long;
- 'ingest.pipelines': string;
- 'ingest.time': long;
- license: string;
- operations: string;
- version: string;
-}
-@namespace("cat.cat_trained_models")
-class CatTrainedModelsResponse extends ResponseBase {
- records: CatTrainedModelsRecord[];
-}
-@namespace("cat.cat_transforms")
-class CatTransformsRecord implements ICatRecord {
- changes_last_detection_time: string;
- checkpoint_duration_time_exp_avg: long;
- create_time: Date;
- description: string;
- dest_index: string;
- documents_indexed: long;
- documents_processed: long;
- frequency: Time;
- id: string;
- index_failure: long;
- index_time: long;
- index_total: long;
- indexed_documents_exp_avg: long;
- max_page_search_size: long;
- pages_processed: long;
- pipeline: string;
- processed_documents_exp_avg: long;
- processing_time: long;
- reason: string;
- search_failure: long;
- search_time: long;
- search_total: long;
- @prop_serializer("IndicesFormatter")
- source_index: Indices;
- state: TransformState;
- transform_type: TransformType;
- trigger_count: long;
- version: string;
-}
-@namespace("cat.cat_transforms")
-class CatTransformsResponse extends ResponseBase {
- records: CatTransformsRecord[];
-}
-@namespace("x_pack.watcher.watcher_stats")
-class WatchRecordStats extends WatchRecordQueuedStats {
- execution_phase: ExecutionPhase;
-}
-@namespace("x_pack.info.x_pack_usage")
-class SqlUsage extends XPackUsage {
- features: Dictionary;
- queries: Dictionary;
-}
-@namespace("x_pack.info.x_pack_usage")
-class FlattenedUsage extends XPackUsage {
- field_count: integer;
-}
-@namespace("x_pack.info.x_pack_usage")
-class CcrUsage extends XPackUsage {
- auto_follow_patterns_count: integer;
- follower_indices_count: integer;
-}
-@namespace("x_pack.info.x_pack_usage")
-class AlertingUsage extends XPackUsage {
- count: AlertingCount;
- execution: AlertingExecution;
- watch: AlertingInput;
-}
-@namespace("x_pack.info.x_pack_usage")
-class MachineLearningUsage extends XPackUsage {
- node_count: integer;
- datafeeds: Dictionary;
- jobs: Dictionary;
-}
-@namespace("x_pack.info.x_pack_usage")
-class MonitoringUsage extends XPackUsage {
- collection_enabled: boolean;
- enabled_exporters: Dictionary;
-}
-@namespace("x_pack.info.x_pack_usage")
-class SecurityUsage extends XPackUsage {
- anonymous: SecurityFeatureToggle;
- audit: AuditUsage;
- ipfilter: IpFilterUsage;
- realms: Dictionary;
- role_mapping: Dictionary;
- roles: Dictionary;
- ssl: SslUsage;
- system_key: SecurityFeatureToggle;
-}
-@namespace("x_pack.info.x_pack_usage")
-class VectorUsage extends XPackUsage {
- dense_vector_fields_count: integer;
- sparse_vector_fields_count: integer;
- dense_vector_dims_avg_count: integer;
-}
-@namespace("x_pack.info.x_pack_usage")
-class SlmUsage extends XPackUsage {
- policy_count: integer;
- policy_stats: SnapshotLifecycleStats;
-}
-@namespace("common_abstractions.infer.id")
-@class_serializer("IdFormatter")
-class Id extends String {}
-@namespace("common_abstractions.infer.id")
-class Ids {
-}
-@namespace("common_abstractions.infer.name")
-class Names extends String {}
-@namespace("common_abstractions.infer.indices")
-@class_serializer("IndicesMultiSyntaxFormatter")
-class Indices extends String {}
-@namespace("common_abstractions.infer.index_name")
-@class_serializer("IndexNameFormatter")
-class IndexName extends String {}
-@namespace("common_abstractions.infer.field")
-@class_serializer("FieldFormatter")
-class Field extends String {}
-@namespace("query_dsl.geo")
-@class_serializer("GeoLocationFormatter")
-class GeoLocation {
- lat: double;
- lon: double;
-}
-@namespace("common_abstractions.infer.join_field_routing")
-@class_serializer("RoutingFormatter")
-class Routing extends String {}
-@namespace("common_abstractions.infer.relation_name")
-@class_serializer("RelationNameFormatter")
-class RelationName extends String {}
-@namespace("common_options.date_math")
-@class_serializer("DateMathExpressionFormatter")
-class DateMathExpression extends String {}
-@namespace("common_options.date_math")
-@class_serializer("DateMathTimeFormatter")
-class DateMathTime {
- factor: integer;
- interval: DateMathTimeUnit;
-}
-@namespace("common_abstractions.infer.property_name")
-@class_serializer("PropertyNameFormatter")
-class PropertyName extends String {}
-@namespace("common_abstractions.infer.task_id")
-@class_serializer("TaskIdFormatter")
-class TaskId extends String {}
-@namespace("common_abstractions.infer.node_id")
-class NodeIds extends String {}
-@namespace("common_abstractions.infer.name")
-class Name extends String {}
-@namespace("common_abstractions.infer.metrics")
-class Metrics extends String {}
-@namespace("x_pack.watcher.execution")
-class HttpInputRequestResult extends HttpInputRequest {
-}
-@namespace("common_abstractions.infer.timestamp")
-class Timestamp {
-}
-@namespace("common_abstractions.infer.long_id")
-class LongId {
-}
-@namespace("x_pack.enrich")
-class NamedPolicy extends EnrichPolicy {
- name: string;
-}
-@namespace("common_abstractions.infer.metrics")
-class IndexMetrics extends String {}
-@namespace("x_pack.sql.query_sql")
-@class_serializer("SqlValueFormatter")
-class SqlValue extends LazyDocument {
-}
-@namespace("x_pack.watcher.acknowledge_watch")
-class AcknowledgeWatchResponse extends ResponseBase implements IResponse {
- status: WatchStatus;
-}
-@namespace("x_pack.watcher.activate_watch")
-class ActivateWatchResponse extends ResponseBase implements IResponse {
- status: ActivationStatus;
-}
-@namespace("indices.analyze")
-class AnalyzeResponse extends ResponseBase implements IResponse {
- detail: AnalyzeDetail;
- tokens: AnalyzeToken[];
-}
-@namespace("analysis.token_filters")
-class AsciiFoldingTokenFilter extends TokenFilterBase {
- @prop_serializer("NullableStringBooleanFormatter")
- preserve_original: boolean;
-}
-@namespace("common_options.time_unit")
-@class_serializer("TimeFormatter")
-class Time {
- factor: double;
- interval: TimeUnit;
- milliseconds: double;
- minus_one: Time;
- zero: Time;
-}
-@namespace("query_dsl.geo")
-@class_serializer("GeoCoordinateFormatter")
-class GeoCoordinate extends GeoLocation {
- z: double;
-}
-@namespace("x_pack.security.authenticate")
-class AuthenticateResponse extends ResponseBase implements IResponse {
- email: string;
- full_name: string;
- metadata: Dictionary;
- roles: string[];
- username: string;
- authentication_realm: RealmInfo;
- lookup_realm: RealmInfo;
-}
-@namespace("document.multiple.bulk")
-class BulkResponse extends ResponseBase implements IResponse {
- errors: boolean;
- items: BulkResponseItemBase[];
- items_with_errors: BulkResponseItemBase[];
- took: long;
-}
-@namespace("cluster.task_management.cancel_tasks")
-class CancelTasksResponse extends ResponseBase implements IResponse {
- node_failures: ErrorCause[];
- nodes: Dictionary;
-}
-@namespace("cat")
-class CatResponse extends ResponseBase implements IResponse {
- records: TCatRecord[];
-}
-@namespace("x_pack.cross_cluster_replication.stats")
-class CcrStatsResponse extends ResponseBase implements IResponse {
- auto_follow_stats: CcrAutoFollowStats;
- follow_stats: CcrFollowStats;
-}
-@namespace("x_pack.security.user.change_password")
-class ChangePasswordResponse extends ResponseBase implements IResponse {
-}
-@namespace("analysis.tokenizers")
-class CharGroupTokenizer extends TokenizerBase {
- tokenize_on_chars: string[];
-}
-@namespace("modules.snapshot_and_restore.repositories.cleanup_repository")
-class CleanupRepositoryResponse extends ResponseBase implements IResponse {
- results: CleanupRepositoryResults;
-}
-@namespace("x_pack.security.clear_cached_realms")
-class ClearCachedRealmsResponse extends ResponseBase implements IResponse {
- cluster_name: string;
- nodes: Dictionary;
-}
-@namespace("x_pack.security.role.clear_cached_roles")
-class ClearCachedRolesResponse extends ResponseBase implements IResponse {
- cluster_name: string;
- nodes: Dictionary;
-}
-@namespace("search.scroll.clear_scroll")
-class ClearScrollResponse extends ResponseBase implements IResponse {
-}
-@namespace("x_pack.sql.clear_sql_cursor")
-class ClearSqlCursorResponse extends ResponseBase implements IResponse {
- succeeded: boolean;
-}
-@namespace("x_pack.machine_learning.close_job")
-class CloseJobResponse extends ResponseBase implements IResponse {
- closed: boolean;
-}
-@namespace("cluster.cluster_allocation_explain")
-class ClusterAllocationExplainResponse extends ResponseBase implements IResponse {
- allocate_explanation: string;
- allocation_delay: string;
- allocation_delay_in_millis: long;
- can_allocate: Decision;
- can_move_to_other_node: Decision;
- can_rebalance_cluster: Decision;
- can_rebalance_cluster_decisions: AllocationDecision[];
- can_rebalance_to_other_node: Decision;
- can_remain_decisions: AllocationDecision[];
- can_remain_on_current_node: Decision;
- configured_delay: string;
- configured_delay_in_mills: long;
- current_node: CurrentNode;
- current_state: string;
- index: string;
- move_explanation: string;
- node_allocation_decisions: NodeAllocationExplanation[];
- primary: boolean;
- rebalance_explanation: string;
- remaining_delay: string;
- remaining_delay_in_millis: long;
- shard: integer;
- unassigned_info: UnassignedInformation;
-}
-@namespace("cluster.cluster_settings.cluster_get_settings")
-class ClusterGetSettingsResponse extends ResponseBase implements IResponse {
- persistent: Dictionary;
- transient: Dictionary;
-}
-@namespace("cluster.cluster_health")
-class ClusterHealthResponse extends ResponseBase implements IResponse {
- active_primary_shards: integer;
- active_shards: integer;
- active_shards_percent_as_number: double;
- cluster_name: string;
- delayed_unassigned_shards: integer;
- @prop_serializer("ResolvableReadOnlyDictionaryFormatter`2")
- indices: Dictionary;
- initializing_shards: integer;
- number_of_data_nodes: integer;
- number_of_in_flight_fetch: integer;
- number_of_nodes: integer;
- number_of_pending_tasks: integer;
- relocating_shards: integer;
- status: Health;
- task_max_waiting_in_queue_millis: long;
- timed_out: boolean;
- unassigned_shards: integer;
-}
-@namespace("cluster.cluster_pending_tasks")
-class ClusterPendingTasksResponse extends ResponseBase implements IResponse {
- tasks: PendingTask[];
-}
-@namespace("cluster.cluster_settings.cluster_put_settings")
-class ClusterPutSettingsResponse extends ResponseBase implements IResponse {
- acknowledged: boolean;
- persistent: Dictionary;
- transient: Dictionary;
-}
-@namespace("cluster.cluster_reroute")
-class ClusterRerouteResponse extends ResponseBase implements IResponse {
- explanations: ClusterRerouteExplanation[];
- state: string[];
-}
-@namespace("analysis.token_filters")
-class CommonGramsTokenFilter extends TokenFilterBase {
- @prop_serializer("SingleOrEnumerableFormatter`1")
- common_words: string[];
- common_words_path: string;
- @prop_serializer("NullableStringBooleanFormatter")
- ignore_case: boolean;
- @prop_serializer("NullableStringBooleanFormatter")
- query_mode: boolean;
-}
-@namespace("analysis.token_filters")
-class ConditionTokenFilter extends TokenFilterBase {
- script: Script;
- filter: string[];
-}
-@namespace("search.count")
-class CountResponse extends ResponseBase implements IResponse {
- count: long;
- _shards: ShardStatistics;
-}
-@namespace("x_pack.security.api_key.create_api_key")
-class CreateApiKeyResponse extends ResponseBase implements IResponse {
- id: string;
- name: string;
- @prop_serializer("NullableDateTimeOffsetEpochMillisecondsFormatter")
- expiration: Date;
- api_key: string;
-}
-@namespace("x_pack.cross_cluster_replication.follow.create_follow_index")
-class CreateFollowIndexResponse extends ResponseBase implements IResponse {
- follow_index_created: boolean;
- follow_index_shards_acked: boolean;
- index_following_started: boolean;
-}
-@namespace("analysis.analyzers")
-class CustomAnalyzer extends AnalyzerBase {
- @prop_serializer("SingleOrEnumerableFormatter`1")
- char_filter: string[];
- @prop_serializer("SingleOrEnumerableFormatter`1")
- filter: string[];
- @prop_serializer("NullableStringIntFormatter")
- position_offset_gap: integer;
- @prop_serializer("NullableStringIntFormatter")
- position_increment_gap: integer;
- tokenizer: string;
-}
-@namespace("x_pack.watcher.deactivate_watch")
-class DeactivateWatchResponse extends ResponseBase implements IResponse {
- status: ActivationStatus;
-}
-@namespace("indices.alias_management.delete_alias")
-class DeleteAliasResponse extends ResponseBase implements IResponse {
-}
-@namespace("document.multiple.delete_by_query")
-class DeleteByQueryResponse extends ResponseBase implements IResponse {
- batches: long;
- deleted: long;
- failures: BulkIndexByScrollFailure[];
- noops: long;
- requests_per_second: float;
- retries: Retries;
- slice_id: integer;
- task: TaskId;
- throttled_millis: long;
- throttled_until_millis: long;
- timed_out: boolean;
- took: long;
- total: long;
- version_conflicts: long;
-}
-@namespace("x_pack.machine_learning.delete_calendar_job")
-class DeleteCalendarJobResponse extends ResponseBase implements IResponse {
- calendar_id: string;
- description: string;
- job_ids: Id[];
-}
-@namespace("x_pack.machine_learning.delete_expired_data")
-class DeleteExpiredDataResponse extends ResponseBase implements IResponse {
- deleted: boolean;
-}
-@namespace("x_pack.license.delete_license")
-class DeleteLicenseResponse extends ResponseBase implements IResponse {
-}
-@namespace("x_pack.security.role_mapping.delete_role_mapping")
-class DeleteRoleMappingResponse extends ResponseBase implements IResponse {
- found: boolean;
-}
-@namespace("x_pack.security.role.delete_role")
-class DeleteRoleResponse extends ResponseBase implements IResponse {
- found: boolean;
-}
-@namespace("x_pack.security.user.delete_user")
-class DeleteUserResponse extends ResponseBase implements IResponse {
- found: boolean;
-}
-@namespace("x_pack.watcher.delete_watch")
-class DeleteWatchResponse extends ResponseBase implements IResponse {
- found: boolean;
- _id: string;
- _version: integer;
-}
-@namespace("analysis.token_filters.delimited_payload")
-class DelimitedPayloadTokenFilter extends TokenFilterBase {
- delimiter: string;
- encoding: DelimitedPayloadEncoding;
-}
-@namespace("x_pack.migration.deprecation_info")
-class DeprecationInfoResponse extends ResponseBase implements IResponse {
- cluster_settings: DeprecationInfo[];
- index_settings: Dictionary;
- node_settings: DeprecationInfo[];
-}
-@namespace("x_pack.security.user.disable_user")
-class DisableUserResponse extends ResponseBase implements IResponse {
-}
-@namespace("analysis.token_filters.edge_n_gram")
-class EdgeNGramTokenFilter extends TokenFilterBase {
- @prop_serializer("NullableStringIntFormatter")
- max_gram: integer;
- @prop_serializer("NullableStringIntFormatter")
- min_gram: integer;
- side: EdgeNGramSide;
-}
-@namespace("analysis.tokenizers.n_gram")
-class EdgeNGramTokenizer extends TokenizerBase {
- @prop_serializer("NullableStringIntFormatter")
- max_gram: integer;
- @prop_serializer("NullableStringIntFormatter")
- min_gram: integer;
- token_chars: TokenChar[];
- custom_token_chars: string;
-}
-@namespace("analysis.token_filters")
-class ElisionTokenFilter extends TokenFilterBase {
- articles: string[];
- @prop_serializer("NullableStringBooleanFormatter")
- articles_case: boolean;
-}
-@namespace("x_pack.security.user.enable_user")
-class EnableUserResponse extends ResponseBase implements IResponse {
-}
-@namespace("x_pack.enrich.stats")
-class EnrichStatsResponse extends ResponseBase implements IResponse {
- executing_policies: ExecutingPolicy[];
- coordinator_stats: CoordinatorStats[];
-}
-@namespace("x_pack.machine_learning.estimate_model_memory")
-class EstimateModelMemoryResponse extends ResponseBase implements IResponse {
- model_memory_estimate: string;
-}
-@namespace("x_pack.enrich.execute_policy")
-class ExecuteEnrichPolicyResponse extends ResponseBase implements IResponse {
- task_id: TaskId;
- status: ExecuteEnrichPolicyStatus;
-}
-@namespace("x_pack.slm.execute_lifecycle")
-class ExecuteSnapshotLifecycleResponse extends ResponseBase implements IResponse {
- snapshot_name: string;
-}
-@namespace("x_pack.watcher.schedule")
-@class_serializer("CronExpressionFormatter")
-class CronExpression extends ScheduleBase {
-}
-@namespace("x_pack.watcher.execute_watch")
-class ExecuteWatchResponse extends ResponseBase implements IResponse {
- _id: string;
- watch_record: WatchRecord;
-}
-@namespace("indices.index_management.indices_exists")
-class ExistsResponse extends ResponseBase implements IResponse {
- exists: boolean;
-}
-@namespace("x_pack.ilm.explain_lifecycle")
-class ExplainLifecycleResponse extends ResponseBase implements IResponse {
- indices: Dictionary