parameter_configuration

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

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"`
}

func Modify

func Modify(client *golangsdk.ServiceClient, opts ModifyOpts, clusterID string) (*Config, error)

type Configurations

type Configurations struct {
	Templates map[string]Template `json:"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"`
}

func ListTask

func ListTask(client *golangsdk.ServiceClient, clusterId string) ([]Task, error)

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL