# README

Go API client for alerting

OpenAPI schema for alerting endpoints

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.2
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import alerting "github.com/elastic/terraform-provider-elasticstack/alerting"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), alerting.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), alerting.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), alerting.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), alerting.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
AlertingAPICreateRulePost /s/{spaceId}/api/alerting/ruleCreates a rule with a randomly generated rule identifier.
AlertingAPICreateRuleIdPost /s/{spaceId}/api/alerting/rule/{ruleId}Creates a rule with a specific rule identifier.
AlertingAPIDeleteRuleDelete /s/{spaceId}/api/alerting/rule/{ruleId}Deletes a rule.
AlertingAPIDisableRulePost /s/{spaceId}/api/alerting/rule/{ruleId}/_disableDisables a rule.
AlertingAPIEnableRulePost /s/{spaceId}/api/alerting/rule/{ruleId}/_enableEnables a rule.
AlertingAPIFindRulesGet /s/{spaceId}/api/alerting/rules/_findRetrieves information about rules.
AlertingAPIGetAlertingHealthGet /s/{spaceId}/api/alerting/_healthRetrieves the health status of the alerting framework.
AlertingAPIGetRuleGet /s/{spaceId}/api/alerting/rule/{ruleId}Retrieves a rule by its identifier.
AlertingAPIGetRuleTypesGet /s/{spaceId}/api/alerting/rule_typesRetrieves a list of rule types.
AlertingAPILegacyCreateAlertPost /s/{spaceId}/api/alerts/alert/{alertId}Create an alert.
AlertingAPILegacyDisableAlertPost /s/{spaceId}/api/alerts/alert/{alertId}/_disableDisables an alert.
AlertingAPILegacyEnableAlertPost /s/{spaceId}/api/alerts/alert/{alertId}/_enableEnables an alert.
AlertingAPILegacyFindAlertsGet /s/{spaceId}/api/alerts/alerts/_findRetrieves a paginated set of alerts.
AlertingAPILegacyGetAlertGet /s/{spaceId}/api/alerts/alert/{alertId}Retrieves an alert by its identifier.
AlertingAPILegacyGetAlertTypesGet /s/{spaceId}/api/alerts/alerts/list_alert_typesRetrieves a list of alert types.
AlertingAPILegacyGetAlertingHealthGet /s/{spaceId}/api/alerts/alerts/_healthRetrieves the health status of the alerting framework.
AlertingAPILegacyMuteAlertInstancePost /s/{spaceId}/api/alerts/alert/{alertId}/alert_instance/{alertInstanceId}/_muteMutes an alert instance.
AlertingAPILegacyMuteAllAlertInstancesPost /s/{spaceId}/api/alerts/alert/{alertId}/_mute_allMutes all alert instances.
AlertingAPILegacyUnmuteAlertInstancePost /s/{spaceId}/api/alerts/alert/{alertId}/alert_instance/{alertInstanceId}/_unmuteUnmutes an alert instance.
AlertingAPILegacyUnmuteAllAlertInstancesPost /s/{spaceId}/api/alerts/alert/{alertId}/_unmute_allUnmutes all alert instances.
AlertingAPILegacyUpdateAlertPut /s/{spaceId}/api/alerts/alert/{alertId}Updates the attributes for an alert.
AlertingAPILegaryDeleteAlertDelete /s/{spaceId}/api/alerts/alert/{alertId}Permanently removes an alert.
AlertingAPIMuteAlertPost /s/{spaceId}/api/alerting/rule/{ruleId}/alert/{alertId}/_muteMutes an alert.
AlertingAPIMuteAllAlertsPost /s/{spaceId}/api/alerting/rule/{ruleId}/_mute_allMutes all alerts.
AlertingAPIUnmuteAlertPost /s/{spaceId}/api/alerting/rule/{ruleId}/alert/{alertId}/_unmuteUnmutes an alert.
AlertingAPIUnmuteAllAlertsPost /s/{spaceId}/api/alerting/rule/{ruleId}/_unmute_allUnmutes all alerts.
AlertingAPIUpdateRulePut /s/{spaceId}/api/alerting/rule/{ruleId}Updates the attributes for a rule.
AlertingAPIUpdateRuleAPIKeyPost /s/{spaceId}/api/alerting/rule/{ruleId}/_update_api_keyUpdates the API key for a rule.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

basicAuth

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

apiKeyAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		sw.ContextAPIKeys,
		map[string]sw.APIKey{
			"Authorization": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

# Functions

[]stringAsFindRulesSearchFieldsParameter is a convenience function that returns []string wrapped in FindRulesSearchFieldsParameter.
CacheExpires helper function to determine remaining time before repeating a request.
IsNil checks if an input is nil.
NewActionsInner instantiates a new ActionsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActionsInnerAlertsFilter instantiates a new ActionsInnerAlertsFilter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActionsInnerAlertsFilterQuery instantiates a new ActionsInnerAlertsFilterQuery object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActionsInnerAlertsFilterQueryWithDefaults instantiates a new ActionsInnerAlertsFilterQuery object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewActionsInnerAlertsFilterTimeframe instantiates a new ActionsInnerAlertsFilterTimeframe object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActionsInnerAlertsFilterTimeframeHours instantiates a new ActionsInnerAlertsFilterTimeframeHours object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActionsInnerAlertsFilterTimeframeHoursWithDefaults instantiates a new ActionsInnerAlertsFilterTimeframeHours object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewActionsInnerAlertsFilterTimeframeWithDefaults instantiates a new ActionsInnerAlertsFilterTimeframe object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewActionsInnerAlertsFilterWithDefaults instantiates a new ActionsInnerAlertsFilter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewActionsInnerFrequency instantiates a new ActionsInnerFrequency object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewActionsInnerFrequencyWithDefaults instantiates a new ActionsInnerFrequency object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewActionsInnerWithDefaults instantiates a new ActionsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAlertDelay instantiates a new AlertDelay object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAlertDelayWithDefaults instantiates a new AlertDelay object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAlertResponseProperties instantiates a new AlertResponseProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAlertResponsePropertiesExecutionStatus instantiates a new AlertResponsePropertiesExecutionStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAlertResponsePropertiesExecutionStatusWithDefaults instantiates a new AlertResponsePropertiesExecutionStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAlertResponsePropertiesSchedule instantiates a new AlertResponsePropertiesSchedule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewAlertResponsePropertiesScheduleWithDefaults instantiates a new AlertResponsePropertiesSchedule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAlertResponsePropertiesWithDefaults instantiates a new AlertResponseProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewConfiguration returns a new Configuration object.
NewCreateRuleRequest instantiates a new CreateRuleRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewCreateRuleRequestWithDefaults instantiates a new CreateRuleRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFieldmapProperties instantiates a new FieldmapProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFieldmapPropertiesPropertiesValue instantiates a new FieldmapPropertiesPropertiesValue object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFieldmapPropertiesPropertiesValueWithDefaults instantiates a new FieldmapPropertiesPropertiesValue object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFieldmapPropertiesWithDefaults instantiates a new FieldmapProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFilter instantiates a new Filter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFilterMeta instantiates a new FilterMeta object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFilterMetaWithDefaults instantiates a new FilterMeta object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFilterWithDefaults instantiates a new Filter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFindRules200Response instantiates a new FindRules200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFindRules200ResponseWithDefaults instantiates a new FindRules200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewFindRulesHasReferenceParameter instantiates a new FindRulesHasReferenceParameter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewFindRulesHasReferenceParameterWithDefaults instantiates a new FindRulesHasReferenceParameter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetAlertingHealth200Response instantiates a new GetAlertingHealth200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetAlertingHealth200ResponseAlertingFrameworkHealth instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealth instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealthWithDefaults instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealth instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealthWithDefaults instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetAlertingHealth200ResponseAlertingFrameworkHealthReadHealth instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHealthReadHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetAlertingHealth200ResponseAlertingFrameworkHealthReadHealthWithDefaults instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHealthReadHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetAlertingHealth200ResponseAlertingFrameworkHealthWithDefaults instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetAlertingHealth200ResponseAlertingFrameworkHeath instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHeath object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetAlertingHealth200ResponseAlertingFrameworkHeathDecryptionHealth instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHeathDecryptionHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetAlertingHealth200ResponseAlertingFrameworkHeathDecryptionHealthWithDefaults instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHeathDecryptionHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetAlertingHealth200ResponseAlertingFrameworkHeathWithDefaults instantiates a new GetAlertingHealth200ResponseAlertingFrameworkHeath object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetAlertingHealth200ResponseWithDefaults instantiates a new GetAlertingHealth200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInner instantiates a new GetRuleTypes200ResponseInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerActionGroupsInner instantiates a new GetRuleTypes200ResponseInnerActionGroupsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerActionGroupsInnerWithDefaults instantiates a new GetRuleTypes200ResponseInnerActionGroupsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerActionVariables instantiates a new GetRuleTypes200ResponseInnerActionVariables object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerActionVariablesContextInner instantiates a new GetRuleTypes200ResponseInnerActionVariablesContextInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerActionVariablesContextInnerWithDefaults instantiates a new GetRuleTypes200ResponseInnerActionVariablesContextInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerActionVariablesParamsInner instantiates a new GetRuleTypes200ResponseInnerActionVariablesParamsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerActionVariablesParamsInnerWithDefaults instantiates a new GetRuleTypes200ResponseInnerActionVariablesParamsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerActionVariablesStateInner instantiates a new GetRuleTypes200ResponseInnerActionVariablesStateInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerActionVariablesStateInnerWithDefaults instantiates a new GetRuleTypes200ResponseInnerActionVariablesStateInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerActionVariablesWithDefaults instantiates a new GetRuleTypes200ResponseInnerActionVariables object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerAlerts instantiates a new GetRuleTypes200ResponseInnerAlerts object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerAlertsMappings instantiates a new GetRuleTypes200ResponseInnerAlertsMappings object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerAlertsMappingsWithDefaults instantiates a new GetRuleTypes200ResponseInnerAlertsMappings object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerAlertsWithDefaults instantiates a new GetRuleTypes200ResponseInnerAlerts object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerAuthorizedConsumers instantiates a new GetRuleTypes200ResponseInnerAuthorizedConsumers object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerAuthorizedConsumersAlerts instantiates a new GetRuleTypes200ResponseInnerAuthorizedConsumersAlerts object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerAuthorizedConsumersAlertsWithDefaults instantiates a new GetRuleTypes200ResponseInnerAuthorizedConsumersAlerts object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerAuthorizedConsumersWithDefaults instantiates a new GetRuleTypes200ResponseInnerAuthorizedConsumers object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerRecoveryActionGroup instantiates a new GetRuleTypes200ResponseInnerRecoveryActionGroup object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewGetRuleTypes200ResponseInnerRecoveryActionGroupWithDefaults instantiates a new GetRuleTypes200ResponseInnerRecoveryActionGroup object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewGetRuleTypes200ResponseInnerWithDefaults instantiates a new GetRuleTypes200ResponseInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyCreateAlertRequestProperties instantiates a new LegacyCreateAlertRequestProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyCreateAlertRequestPropertiesSchedule instantiates a new LegacyCreateAlertRequestPropertiesSchedule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyCreateAlertRequestPropertiesScheduleWithDefaults instantiates a new LegacyCreateAlertRequestPropertiesSchedule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyCreateAlertRequestPropertiesWithDefaults instantiates a new LegacyCreateAlertRequestProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyFindAlerts200Response instantiates a new LegacyFindAlerts200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyFindAlerts200ResponseWithDefaults instantiates a new LegacyFindAlerts200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyFindAlertsHasReferenceParameter instantiates a new LegacyFindAlertsHasReferenceParameter object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyFindAlertsHasReferenceParameterWithDefaults instantiates a new LegacyFindAlertsHasReferenceParameter object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertingHealth200Response instantiates a new LegacyGetAlertingHealth200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertingHealth200ResponseAlertingFrameworkHealth instantiates a new LegacyGetAlertingHealth200ResponseAlertingFrameworkHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealth instantiates a new LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealthWithDefaults instantiates a new LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealth instantiates a new LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealthWithDefaults instantiates a new LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertingHealth200ResponseAlertingFrameworkHealthReadHealth instantiates a new LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthReadHealth object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertingHealth200ResponseAlertingFrameworkHealthReadHealthWithDefaults instantiates a new LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthReadHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertingHealth200ResponseAlertingFrameworkHealthWithDefaults instantiates a new LegacyGetAlertingHealth200ResponseAlertingFrameworkHealth object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertingHealth200ResponseWithDefaults instantiates a new LegacyGetAlertingHealth200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertTypes200ResponseInner instantiates a new LegacyGetAlertTypes200ResponseInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertTypes200ResponseInnerActionGroupsInner instantiates a new LegacyGetAlertTypes200ResponseInnerActionGroupsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertTypes200ResponseInnerActionGroupsInnerWithDefaults instantiates a new LegacyGetAlertTypes200ResponseInnerActionGroupsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertTypes200ResponseInnerActionVariables instantiates a new LegacyGetAlertTypes200ResponseInnerActionVariables object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertTypes200ResponseInnerActionVariablesContextInner instantiates a new LegacyGetAlertTypes200ResponseInnerActionVariablesContextInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertTypes200ResponseInnerActionVariablesContextInnerWithDefaults instantiates a new LegacyGetAlertTypes200ResponseInnerActionVariablesContextInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertTypes200ResponseInnerActionVariablesWithDefaults instantiates a new LegacyGetAlertTypes200ResponseInnerActionVariables object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertTypes200ResponseInnerRecoveryActionGroup instantiates a new LegacyGetAlertTypes200ResponseInnerRecoveryActionGroup object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyGetAlertTypes200ResponseInnerRecoveryActionGroupWithDefaults instantiates a new LegacyGetAlertTypes200ResponseInnerRecoveryActionGroup object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyGetAlertTypes200ResponseInnerWithDefaults instantiates a new LegacyGetAlertTypes200ResponseInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyUpdateAlertRequestProperties instantiates a new LegacyUpdateAlertRequestProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyUpdateAlertRequestPropertiesActionsInner instantiates a new LegacyUpdateAlertRequestPropertiesActionsInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyUpdateAlertRequestPropertiesActionsInnerWithDefaults instantiates a new LegacyUpdateAlertRequestPropertiesActionsInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyUpdateAlertRequestPropertiesSchedule instantiates a new LegacyUpdateAlertRequestPropertiesSchedule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewLegacyUpdateAlertRequestPropertiesScheduleWithDefaults instantiates a new LegacyUpdateAlertRequestPropertiesSchedule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewLegacyUpdateAlertRequestPropertiesWithDefaults instantiates a new LegacyUpdateAlertRequestProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewMockAlertingAPI creates a new mock instance.
NewModel400Response instantiates a new Model400Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewModel400ResponseWithDefaults instantiates a new Model400Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewModel401Response instantiates a new Model401Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewModel401ResponseWithDefaults instantiates a new Model401Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewModel404Response instantiates a new Model404Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewModel404ResponseWithDefaults instantiates a new Model404Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewNotifyWhenFromValue returns a pointer to a valid NotifyWhen for the value passed as argument, or an error if the value passed is not allowed by the enum.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRuleResponseProperties instantiates a new RuleResponseProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRuleResponsePropertiesExecutionStatus instantiates a new RuleResponsePropertiesExecutionStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRuleResponsePropertiesExecutionStatusWithDefaults instantiates a new RuleResponsePropertiesExecutionStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRuleResponsePropertiesLastRun instantiates a new RuleResponsePropertiesLastRun object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRuleResponsePropertiesLastRunAlertsCount instantiates a new RuleResponsePropertiesLastRunAlertsCount object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewRuleResponsePropertiesLastRunAlertsCountWithDefaults instantiates a new RuleResponsePropertiesLastRunAlertsCount object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRuleResponsePropertiesLastRunWithDefaults instantiates a new RuleResponsePropertiesLastRun object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewRuleResponsePropertiesWithDefaults instantiates a new RuleResponseProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewSchedule instantiates a new Schedule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewScheduleWithDefaults instantiates a new Schedule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
NewUpdateRuleRequest instantiates a new UpdateRuleRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.
NewUpdateRuleRequestWithDefaults instantiates a new UpdateRuleRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.
stringAsFindRulesSearchFieldsParameter is a convenience function that returns string wrapped in FindRulesSearchFieldsParameter.

# Constants

List of notify_when.
List of notify_when.
List of notify_when.

# Variables

All allowed values of NotifyWhen enum.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

ActionsInner An action that runs under defined conditions.
ActionsInnerAlertsFilter Conditions that affect whether the action runs.
ActionsInnerAlertsFilterQuery Defines a query filter that determines whether the action runs.
ActionsInnerAlertsFilterTimeframe Defines a period that limits whether the action runs.
ActionsInnerAlertsFilterTimeframeHours Defines the range of time in a day that the action can run.
ActionsInnerFrequency The properties that affect how often actions are generated.
AlertDelay Indicates that an alert occurs only when the specified number of consecutive runs met the rule conditions.
AlertResponseProperties struct for AlertResponseProperties.
AlertResponsePropertiesExecutionStatus struct for AlertResponsePropertiesExecutionStatus.
AlertResponsePropertiesSchedule struct for AlertResponsePropertiesSchedule.
APIClient manages communication with the Alerting API v0.2 In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIResponse stores the API response returned by the server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
Configuration stores the configuration of the API client.
CreateRuleRequest The create rule API request body varies depending on the type of rule and actions.
FieldmapProperties struct for FieldmapProperties.
FieldmapPropertiesPropertiesValue struct for FieldmapPropertiesPropertiesValue.
Filter A filter written in Elasticsearch Query Domain Specific Language (DSL) as defined in the `kbn-es-query` package.
FilterMeta struct for FilterMeta.
FindRules200Response struct for FindRules200Response.
FindRulesHasReferenceParameter struct for FindRulesHasReferenceParameter.
FindRulesSearchFieldsParameter - struct for FindRulesSearchFieldsParameter.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
GetAlertingHealth200Response struct for GetAlertingHealth200Response.
GetAlertingHealth200ResponseAlertingFrameworkHealth Three substates identify the health of the alerting framework: `decryption_health`, `execution_health`, and `read_health`.
GetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealth The timestamp and status of the rule decryption.
GetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealth The timestamp and status of the rule run.
GetAlertingHealth200ResponseAlertingFrameworkHealthReadHealth The timestamp and status of the rule reading events.
GetAlertingHealth200ResponseAlertingFrameworkHeath This property has a typo.
GetAlertingHealth200ResponseAlertingFrameworkHeathDecryptionHealth struct for GetAlertingHealth200ResponseAlertingFrameworkHeathDecryptionHealth.
GetRuleTypes200ResponseInner struct for GetRuleTypes200ResponseInner.
GetRuleTypes200ResponseInnerActionGroupsInner struct for GetRuleTypes200ResponseInnerActionGroupsInner.
GetRuleTypes200ResponseInnerActionVariables A list of action variables that the rule type makes available via context and state in action parameter templates, and a short human readable description.
GetRuleTypes200ResponseInnerActionVariablesContextInner struct for GetRuleTypes200ResponseInnerActionVariablesContextInner.
GetRuleTypes200ResponseInnerActionVariablesParamsInner struct for GetRuleTypes200ResponseInnerActionVariablesParamsInner.
GetRuleTypes200ResponseInnerActionVariablesStateInner struct for GetRuleTypes200ResponseInnerActionVariablesStateInner.
GetRuleTypes200ResponseInnerAlerts Details for writing alerts as data documents for this rule type.
GetRuleTypes200ResponseInnerAlertsMappings struct for GetRuleTypes200ResponseInnerAlertsMappings.
GetRuleTypes200ResponseInnerAuthorizedConsumers The list of the plugins IDs that have access to the rule type.
GetRuleTypes200ResponseInnerAuthorizedConsumersAlerts struct for GetRuleTypes200ResponseInnerAuthorizedConsumersAlerts.
GetRuleTypes200ResponseInnerRecoveryActionGroup An action group to use when an alert goes from an active state to an inactive one.
LegacyCreateAlertRequestProperties struct for LegacyCreateAlertRequestProperties.
LegacyCreateAlertRequestPropertiesSchedule The schedule specifying when this alert should be run.
LegacyFindAlerts200Response struct for LegacyFindAlerts200Response.
LegacyFindAlertsHasReferenceParameter struct for LegacyFindAlertsHasReferenceParameter.
LegacyGetAlertingHealth200Response struct for LegacyGetAlertingHealth200Response.
LegacyGetAlertingHealth200ResponseAlertingFrameworkHealth Three substates identify the health of the alerting framework: `decryptionHealth`, `executionHealth`, and `readHealth`.
LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthDecryptionHealth The timestamp and status of the alert decryption.
LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthExecutionHealth The timestamp and status of the alert execution.
LegacyGetAlertingHealth200ResponseAlertingFrameworkHealthReadHealth The timestamp and status of the alert reading events.
LegacyGetAlertTypes200ResponseInner struct for LegacyGetAlertTypes200ResponseInner.
LegacyGetAlertTypes200ResponseInnerActionGroupsInner struct for LegacyGetAlertTypes200ResponseInnerActionGroupsInner.
LegacyGetAlertTypes200ResponseInnerActionVariables A list of action variables that the alert type makes available via context and state in action parameter templates, and a short human readable description.
LegacyGetAlertTypes200ResponseInnerActionVariablesContextInner struct for LegacyGetAlertTypes200ResponseInnerActionVariablesContextInner.
LegacyGetAlertTypes200ResponseInnerRecoveryActionGroup An action group to use when an alert instance goes from an active state to an inactive one.
LegacyUpdateAlertRequestProperties struct for LegacyUpdateAlertRequestProperties.
LegacyUpdateAlertRequestPropertiesActionsInner struct for LegacyUpdateAlertRequestPropertiesActionsInner.
LegacyUpdateAlertRequestPropertiesSchedule The schedule specifying when this alert should be run.
MockAlertingAPI is a mock of AlertingAPI interface.
MockAlertingAPIMockRecorder is the mock recorder for MockAlertingAPI.
Model400Response struct for Model400Response.
Model401Response struct for Model401Response.
Model404Response struct for Model404Response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RuleResponseProperties struct for RuleResponseProperties.
RuleResponsePropertiesExecutionStatus struct for RuleResponsePropertiesExecutionStatus.
RuleResponsePropertiesLastRun struct for RuleResponsePropertiesLastRun.
RuleResponsePropertiesLastRunAlertsCount struct for RuleResponsePropertiesLastRunAlertsCount.
Schedule The check interval, which specifies how frequently the rule conditions are checked.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
UpdateRuleRequest The update rule API request body varies depending on the type of rule and actions.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

AlertingAPIService AlertingAPI service.
NotifyWhen Deprecated in 8.13.0.
ServerConfigurations stores multiple ServerConfiguration items.