/* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
// -----------------------------------------------
//
// This file is automatically generated
// Please do not edit these files manually
// Run the following in the root of the repos:
//
// *NIX : ./build.sh codegen
// Windows : build.bat codegen
//
// -----------------------------------------------
// ReSharper disable RedundantUsingDirective
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;
// ReSharper disable once CheckNamespace
namespace OpenSearch.Net.Specification.NodesApi
{
///Request options for HotThreads
public class NodesHotThreadsRequestParameters : RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
///Don't show threads that are in known-idle places, such as waiting on a socket select or pulling from an empty task queue (default: true)
public bool? IgnoreIdleThreads
{
get => Q("ignore_idle_threads");
set => Q("ignore_idle_threads", value);
}
///The interval for the second sampling of threads
public TimeSpan Interval
{
get => Q("interval");
set => Q("interval", value);
}
///Number of samples of thread stacktrace (default: 10)
public long? Snapshots
{
get => Q("snapshots");
set => Q("snapshots", value);
}
///The type to sample (default: cpu)
public ThreadType? ThreadType
{
get => Q("type");
set => Q("type", value);
}
///Specify the number of threads to provide information for (default: 3)
public long? Threads
{
get => Q("threads");
set => Q("threads", value);
}
///Explicit operation timeout
public TimeSpan Timeout
{
get => Q("timeout");
set => Q("timeout", value);
}
}
///Request options for Info https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/
public class NodesInfoRequestParameters : RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
///Return settings in flat format (default: false)
public bool? FlatSettings
{
get => Q("flat_settings");
set => Q("flat_settings", value);
}
///Explicit operation timeout
public TimeSpan Timeout
{
get => Q("timeout");
set => Q("timeout", value);
}
}
///Request options for ReloadSecureSettings
public class ReloadSecureSettingsRequestParameters : RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.POST;
public override bool SupportsBody => true;
///Explicit operation timeout
public TimeSpan Timeout
{
get => Q("timeout");
set => Q("timeout", value);
}
}
///Request options for Stats https://opensearch.org/docs/latest/opensearch/stats-api/
public class NodesStatsRequestParameters : RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)
public string[] CompletionFields
{
get => Q("completion_fields");
set => Q("completion_fields", value);
}
///A comma-separated list of fields for `fielddata` index metric (supports wildcards)
public string[] FielddataFields
{
get => Q("fielddata_fields");
set => Q("fielddata_fields", value);
}
///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards)
public string[] Fields
{
get => Q("fields");
set => Q("fields", value);
}
///A comma-separated list of search groups for `search` index metric
public bool? Groups
{
get => Q("groups");
set => Q("groups", value);
}
///Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)
public bool? IncludeSegmentFileSizes
{
get => Q("include_segment_file_sizes");
set => Q("include_segment_file_sizes", value);
}
///Return indices stats aggregated at index, node or shard level
public Level? Level
{
get => Q("level");
set => Q("level", value);
}
///Explicit operation timeout
public TimeSpan Timeout
{
get => Q("timeout");
set => Q("timeout", value);
}
///A comma-separated list of document types for the `indexing` index metric
public string[] Types
{
get => Q("types");
set => Q("types", value);
}
}
///Request options for Usage
public class NodesUsageRequestParameters : RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
///Explicit operation timeout
public TimeSpan Timeout
{
get => Q("timeout");
set => Q("timeout", value);
}
}
}