alertmuting

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertMutingRule

type AlertMutingRule struct {
	// The time the alerting muting rule was created, in Unix time UTC-relative.  **This property is read-only; it's always set by the system.**
	Created int64 `json:"created,omitempty"`
	// SignalFx user ID of the alert muting rule creator, in the form of a JSON string. **This property is read-only; it's always set by the system.**
	Creator string `json:"creator,omitempty"`
	// Description of the rule. **read/write**
	Description string `json:"description,omitempty"`
	// List of alert muting filters for this rule, in the form of a JSON array of alert muting filter objects. Each object is a set of conditions for an alert muting rule. Each object property (name-value pair)  specifies a dimension or custom property to match to alert events. **read/write**
	Filters []*AlertMutingRuleFilter `json:"filters,omitempty"`
	// SignalFx-assigned ID of an alert muting rule, in the form of a JSON string. **This property is read-only; it's always set by the system.**
	Id string `json:"id,omitempty"`
	// The last time the alert muting rule was last updated, in Unix time  UTC-relative. **This property is read-only; it's always set by the system.**
	LastUpdated int64 `json:"lastUpdated,omitempty"`
	// The SignalFx-assigned user ID of the last user who updated the alert muting rule, in the form of a JSON string. If the system made the  last update, the value is \"AAAAAAAAAA\". **This property is read-only;  it's always set by the system.**
	LastUpdatedBy string `json:"lastUpdatedBy,omitempty"`
	// Toggle if alerts should be sent once the muting period is over.  If not specified, defaults to true
	SendAlertsOnceMutingPeriodHasEnded bool `json:"sendAlertsOnceMutingPeriodHasEnded,omitempty"`
	// Starting time of an alert muting rule, in Unix time format UTC. If not specified, defaults to the current time. **read/write**.
	StartTime int64 `json:"startTime,omitempty"`
	// Stop time of an alert muting rule, in Unix time format UTC. If set to 0, detectors that match this rule are muted indefinitely. The default value is 0. **read/write**
	StopTime int64 `json:"stopTime,omitempty"`
}

Properties of an alert muting rule, in the form of a JSON object. **NOTE:** You can't create or update properties marked read-only. You receive read-only properties in response bodies for the following: * **GET** `/alertmuting` * **POST** `/alertmuting` * **GET** `/alertmuting/{id}` * **PUT** `/alertmuting/{id}`

type AlertMutingRuleFilter

type AlertMutingRuleFilter struct {
	NOT           bool          `json:"NOT,omitempty"`
	Property      string        `json:"property,omitempty"`
	PropertyValue StringOrArray `json:"propertyValue,omitempty"`
}

Properties of an alert muting rule, in the form of a JSON object. **NOTE:** You can't create or update properties marked read-only. You receive read-only properties in response bodies for the following: * **GET** `/alertmuting` * **POST** `/alertmuting` * **GET** `/alertmuting/{id}` * **PUT** `/alertmuting/{id}`

type CreateUpdateAlertMutingRuleRequest

type CreateUpdateAlertMutingRuleRequest struct {
	// Description of the rule. **read/write**
	Description string `json:"description,omitempty"`
	// List of alert muting filters for this rule, in the form of a JSON array of alert muting filter objects. Each object is a set of conditions for an alert muting rule. Each object property (name-value pair)  specifies a dimension or custom property to match to alert events. **read/write**
	Filters []*AlertMutingRuleFilter `json:"filters,omitempty"`
	// Toggle if alerts should be sent once the muting period is over.  If not specified, defaults to true **read/write**
	SendAlertsOnceMutingPeriodHasEnded bool `json:"sendAlertsOnceMutingPeriodHasEnded,omitempty"`
	// Starting time of an alert muting rule, in Unix time format UTC. If not specified, defaults to the current time. **read/write**.
	StartTime int64 `json:"startTime,omitempty"`
	// Stop time of an alert muting rule, in Unix time format UTC. If set to 0, detectors that match this rule are muted indefinitely. The default value is 0. **read/write**
	StopTime int64 `json:"stopTime,omitempty"`
}

Properties of an alert muting rule, in the form of a JSON object. **NOTE:** You can't create or update properties marked read-only. You receive read-only properties in response bodies for the following: * **GET** `/alertmuting` * **POST** `/alertmuting` * **GET** `/alertmuting/{id}` * **PUT** `/alertmuting/{id}`

type SearchResult

type SearchResult struct {
	Count   int32             `json:"count,omitempty"`
	Results []AlertMutingRule `json:"results,omitempty"`
}

SearchResult is an object containing the query results

type StringOrArray added in v1.8.3

type StringOrArray struct {
	Values []string
}

func (*StringOrArray) MarshalJSON added in v1.8.3

func (soa *StringOrArray) MarshalJSON() ([]byte, error)

func (*StringOrArray) UnmarshalJSON added in v1.8.3

func (soa *StringOrArray) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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