extappdynamics

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateCheckModeAtLeastOnce = "atLeastOnce"
	StateCheckModeAllTheTime  = "allTheTime"
)
View Source
const (
	AppAttribute   = "appdynamics.application"
	AppAccountGUID = ".account-guid"
	AppDescription = ".description"
	AppOrigin      = ".origin"
)
View Source
const (
	HealthRuleAttribute         = "appdynamics.health-rule"
	AttributeEnabled            = ".enabled"
	AttributeAffectedEntityType = ".affected_entity_type"
	AttributeAppID              = ".application.id"
	AttributeAppName            = ".application.name"
	AttributeOrigin             = ".origin"
)

Variables

View Source
var RestyClient *resty.Client

Functions

func ActionSuppressionStart

func ActionSuppressionStart(ctx context.Context, state *ActionSuppressionState, client *resty.Client) (*action_kit_api.StartResult, error)

func ActionSuppressionStop

func ActionSuppressionStop(ctx context.Context, state *ActionSuppressionState, client *resty.Client) (*action_kit_api.StopResult, error)

func GetLocalTimezone

func GetLocalTimezone() (string, error)

func HealthRuleCheckStatus

func HealthRuleCheckStatus(ctx context.Context, state *HealthRuleCheckState, client *resty.Client) (*action_kit_api.StatusResult, error)

func NewApplicationDiscovery

func NewApplicationDiscovery() discovery_kit_sdk.TargetDiscovery

func NewHealthRuleDiscovery

func NewHealthRuleDiscovery() discovery_kit_sdk.TargetDiscovery

func NewHealthRuleStateCheckAction

func NewHealthRuleStateCheckAction() action_kit_sdk.Action[HealthRuleCheckState]

Types

type ActionSuppressionAction

type ActionSuppressionAction struct{}

func (*ActionSuppressionAction) Describe

func (*ActionSuppressionAction) NewEmptyState

func (*ActionSuppressionAction) Start

func (*ActionSuppressionAction) Stop

type ActionSuppressionRequest

type ActionSuppressionRequest struct {
	Name                    string  `json:"name"`
	DisableAgentReporting   bool    `json:"disableAgentReporting"`
	SuppressionScheduleType string  `json:"suppressionScheduleType"`
	Timezone                string  `json:"timezone"`
	StartTime               string  `json:"startTime"`
	EndTime                 string  `json:"endTime"`
	Affects                 Affects `json:"affects"`
}

type ActionSuppressionResponse

type ActionSuppressionResponse struct {
	ID                      int     `json:"id"`
	Name                    string  `json:"name"`
	DisableAgentReporting   bool    `json:"disableAgentReporting"`
	SuppressionScheduleType string  `json:"suppressionScheduleType"`
	Timezone                string  `json:"timezone"`
	StartTime               string  `json:"startTime"`
	EndTime                 string  `json:"endTime"`
	Affects                 Affects `json:"affects"`
}

type ActionSuppressionState

type ActionSuppressionState struct {
	ApplicationId         string
	End                   time.Time
	DisableAgentReporting bool
	ActionSuppressionId   *string
	ExperimentUri         *string
	ExecutionUri          *string
}

type Affects

type Affects struct {
	AffectedInfoType string `json:"affectedInfoType"`
}

type Application

type Application struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	AccountGUID string `json:"accountGuid"`
}

type EntityDef

type EntityDef struct {
	EntityType string `json:"entityType"`
	Name       string `json:"name"`
	EntityID   int64  `json:"entityId"`
}

type HealthRule

type HealthRule struct {
	ID                 int    `json:"id"`
	Name               string `json:"name"`
	Enabled            bool   `json:"enabled"`
	AffectedEntityType string `json:"affectedEntityType"`
}

type HealthRuleCheckState

type HealthRuleCheckState struct {
	HealthRuleId          string
	HealthRuleName        string
	HealthRuleApplication string
	End                   time.Time
	IsViolationExpected   bool
	StateCheckMode        string
	StateCheckSuccess     bool
}

type HealthRuleStateCheckAction

type HealthRuleStateCheckAction struct{}

func (*HealthRuleStateCheckAction) Describe

func (*HealthRuleStateCheckAction) NewEmptyState

func (*HealthRuleStateCheckAction) Start

func (*HealthRuleStateCheckAction) Status

type TokenResponse added in v1.1.0

type TokenResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int64  `json:"expires_in"`
}

type Violation

type Violation struct {
	DeepLinkURL          string    `json:"deepLinkUrl"`
	Severity             string    `json:"severity"`
	TriggeredEntity      EntityDef `json:"triggeredEntityDefinition"`
	StartTimeInMillis    int64     `json:"startTimeInMillis"`
	DetectedTimeInMillis int64     `json:"detectedTimeInMillis"`
	EndTimeInMillis      int64     `json:"endTimeInMillis"`
	Name                 string    `json:"name"`
	Description          string    `json:"description"`
	ID                   int64     `json:"id"`
	AffectedEntity       EntityDef `json:"affectedEntityDefinition"`
	IncidentStatus       string    `json:"incidentStatus"`
}

Jump to

Keyboard shortcuts

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