forked from splunk/splunk-sdk-csharp-pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIServerSettings.cs
189 lines (175 loc) · 5.92 KB
/
IServerSettings.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/*
* Copyright 2014 Splunk, Inc.
*
* Licensed 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.
*/
//// TODO
//// [O] Contracts
//// [O] Documentation
namespace Splunk.Client
{
/// <summary>
/// Provides an operational interface the Splunk server settings resource.
/// </summary>
/// <seealso cref="T:IBaseResource"/>
public interface IServerSettings : IBaseResource
{
/// <summary>
/// Gets the extensible administration interface properties for the Splunk
/// server instance.
/// </summary>
/// <value>
/// The extensible administration interface properties.
/// </value>
Eai Eai
{ get; }
/// <summary>
/// Gets the path to the default index for Splunk.
/// </summary>
/// <value>
/// The splunk database.
/// </value>
string SplunkDB
{ get; }
/// <summary>
/// Gets the path to the local installation of Splunk.
/// </summary>
/// <value>
/// The splunk home.
/// </value>
string SplunkHome
{ get; }
/// <summary>
/// Gets a value that indicates whether Splunk web is enabled for HTTPS or
/// HTTP.
/// </summary>
/// <remarks>
/// A value of <c>true</c> indicates that Splunk Web is enabled for HTTPS and
/// SSL. A value of <c>false</c> indicates that Splunk Web is enabled for
/// HTTP and that SSL is disabled.
/// </remarks>
/// <value>
/// <c>true</c> if enable splunk web ssl, <c>false</c> if not.
/// </value>
bool EnableSplunkWebSsl
{ get; }
/// <summary>
/// Gets the default hostname to use for data inputs that do not override
/// this setting.
/// </summary>
/// <value>
/// The default hostname.
/// </value>
string Host
{ get; }
/// <summary>
/// Gets the port on which Splunk Web is listening.
/// </summary>
/// <value>
/// The HTTP port.
/// </value>
int HttpPort
{ get; }
/// <summary>
/// Gets the port on which splunkd is listening for management operations.
/// </summary>
/// <value>
/// The management host port.
/// </value>
int ManagementHostPort
{ get; }
/// <summary>
/// Gets the amount of space in megabytes that must exist for splunkd to
/// continue operating.
/// </summary>
/// <remarks>
/// This value affects search and indexing. Before attempting to launch a
/// search, Splunk requires this amount of free space on the file system
/// where the dispatch directory is located:
/// <c> "$SPLUNK_HOME/var/run/splunk/dispatch</c>). It is applied
/// similarly to the search quota values in <c>authorize.conf</c>
/// and <c>limits.conf</c>. Splunk periodically checks space on all
/// partitions that contain indexes as specified by <c>indexes.conf</c>. When
/// you need to clear more disk space indexing is paused and Splunk posts a
/// UI banner and warning.
/// </remarks>
/// <value>
/// The minimum free space.
/// </value>
int MinFreeSpace
{ get; }
/// <summary>
/// Gets the password string that is prefixed to the Splunk symmetric key,
/// generating the final key to sign all traffic between master/slave
/// licensers.
/// </summary>
/// <value>
/// The pass 4 symmetric key.
/// </value>
string Pass4SymmetricKey
{ get; }
/// <summary>
/// Gets an ASCII String to use as the name of a Splunk instance for features
/// such as distributed search.
/// </summary>
/// <remarks>
/// The default value is <![CDATA[<hostname>-<user-running-
/// splunk>]]>.
/// </remarks>
/// <value>
/// The name of the server.
/// </value>
string ServerName
{ get; }
/// <summary>
/// Gets the amount of time before a user session times out.
/// </summary>
/// <value>
/// The session timeout.
/// </value>
/// <remarks>
/// This value is expressed as a search-like time range.
/// <example>Examples:</example>
/// <code>
/// args.SessionTimeout = "24h"; // 24 hours
/// args.SessionTimeout = "3d"; // 3 days
/// args.SessionTimeout = 7200s; // 7,200 seconds or two hours
/// </code>
/// </remarks>
string SessionTimeout
{ get; }
/// <summary>
/// Gets a value indicating whether Splunk Web is enabled.
/// </summary>
/// <remarks>
/// A value of <c>true</c> indicates that Splunk Web is enabled.
/// </remarks>
/// <value>
/// <c>true</c> if start web server, <c>false</c> if not.
/// </value>
bool StartWebServer
{ get; }
/// <summary>
/// Gets the IP address of the authenticating proxy.
/// </summary>
/// <remarks>
/// If the authentication proxy is disabled, a value of <c>null</c> is
/// returned.
/// </remarks>
/// <value>
/// The trusted IP.
/// </value>
string TrustedIP
{ get; }
}
}