Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Indicates whether the modification is successful.
// true: The modification is successful.
// false: The modification failed.
Acknowledged bool `json:"acknowledged"`
// Error message. If acknowledged is set to true, null is returned for this field.
ExternalMessage string `json:"externalMessage"`
// HTTP error information. The default value is null.
ErrorMsg string `json:"httpErrorResponse"`
}
type Configurations ¶
func List ¶
func List(client *golangsdk.ServiceClient, clusterId string) (*Configurations, error)
type ModifyOpts ¶
type ModifyOpts struct {
// Operations performed on parameter configurations. The value can be:
// modify
// delete
// reset
Edit map[string]interface{} `json:"edit" required:"true"`
}
type Task ¶
type Task struct {
// Action ID
ID string `json:"id"`
// Cluster ID
ClusterId string `json:"clusterId"`
// Creation time. Format: Unix timestamp.
CreatedAt int64 `json:"createAt"`
// Task execution status.
// true: The operation is successful.
// false: The execution failed.
Status string `json:"status"`
// End time. If the creation has not been completed, the end time is null. Format: Unix timestamp.
FinishedAt int64 `json:"finishedAt"`
// History of parameter configuration modifications
History string `json:"modifyDeleteReset"`
// Returned error message. If the status is success, the value of this parameter is null.
ErrorMsg string `json:"failedMsg"`
}
type Template ¶
type Template struct {
// parameter ID
ID string `json:"id"`
// parameter name
Key string `json:"key"`
// parameter value
Value string `json:"value"`
// parameter default value.
DefaultValue string `json:"defaultValue"`
// parameter constraint
Regex string `json:"regex"`
// parameter type description
Type string `json:"type"`
// indicates whether a parameter can be modified.
// The value can be true (parameter value can be changed) and false (parameter value cannot be changed).
ModifyEnable string `json:"modifyEnable"`
// parameter value that can be changed
EnableValue string `json:"enableValue"`
// name of the file where parameters exist. The default value is elasticsearch.yml
FileName string `json:"fileName"`
// version information
Version string `json:"version"`
// parameter description
Description string `json:"descENG"`
// parameter function description
ModuleDescription string `json:"moduleDescENG"`
}
Click to show internal directories.
Click to hide internal directories.