Documentation
¶
Index ¶
- Constants
- func StatusError(status int) error
- type AffectedCounts
- type AffectedEntities
- type AppliedTag
- type AutoTag
- type AutoTagResponse
- type AutoTagRule
- type AutoTagRuleCondition
- type AutoTagRuleConditionComparisonInfo
- type AutoTagRuleConditionKey
- type AutoTagRulePropagationType
- type AutoTagRuleType
- type Client
- func (c *Client) AllApplicationNameDetectionRules() ([]NameDetectionRule, error)
- func (c *Client) CreateApplicationNameDetectionRule(body NameDetectionRuleDetail) (NameDetectionRule, error)
- func (c *Client) DeleteApplicationNameDetectionRule(id string) error
- func (c *Client) Do(method string, path string, body interface{}, response interface{}, ...) (*resty.Response, error)
- func (c *Client) GetApplicationNameDetectionRule(id string) (NameDetectionRuleDetail, error)
- func (c *Client) UpdateApplicationNameDetectionRule(id string, body NameDetectionRuleDetail) error
- func (c *Client) UpdateApplicationNameDetectionRuleOrder(ids []string) error
- type Config
- type ConfigurationMetadata
- type ConstraintViolation
- type ConstraintViolationParameterLocation
- type CustomDevicePushMessage
- type CustomDevicePushResult
- type CustomFilterChartConfig
- type CustomFilterChartConfigType
- type CustomFilterChartSeriesConfig
- type CustomFilterChartSeriesConfigAggregation
- type CustomFilterChartSeriesConfigType
- type CustomFilterChartSeriesDimensionConfig
- type CustomFilterConfig
- type Dashboard
- type DashboardFilter
- type DashboardMetadata
- type DashboardResponse
- type DashboardStub
- type Details
- type Entity
- type EntityID
- type EntityShortRepresentation
- type EnvV2Entity
- type ErrorDetail
- type ErrorResponse
- type EventCreation
- type EventStoreResult
- type EventType
- type EvidenceDetails
- type GroupingEntity
- type ImpactedEntities
- type Monitored
- type NameDetectionResponse
- type NameDetectionRule
- type NameDetectionRuleDetail
- type NameDetectionRuleFilterConfiguration
- type NameDetectionRuleMetadata
- type NameDetectionRuleOrderRequest
- type Problem
- type ProblemClose
- type ProblemFilters
- type ProblemV1
- type ProblemV1Result
- type ProblemsResponse
- type PushEventAttachRules
- type RankedEvents
- type RankedImpacts
- type RecoveredCounts
- type Result
- type SharingInfo
- type Tag
- type TagInfo
- type TagMatchRule
- type TagResponse
- type Tags
- type Tile
- type TileBounds
- type TileFilter
- type TileType
Constants ¶
View Source
const ( AutoTagRuleTypeCustomDevice AutoTagRuleType = "CUSTOM_DEVICE" AutoTagRuleTypeHost = "HOST" AutoTagRuleTypeProcessGroup = "PROCESS_GROUP" AutoTagRuleTypeService = "SERVICE" )
View Source
const ( EventTypeAvailabilityEvent = "AVAILABILITY_EVENT" EventTypeCustomAlert = "CUSTOM_ALERT" EventTypeCustomAnnotation = "CUSTOM_ANNOTATION" EventTypeCustomConfiguration = "CUSTOM_CONFIGURATION" EventTypeCustomDeployment = "CUSTOM_DEPLOYMENT" EventTypeCustomInfo = "CUSTOM_INFO" EventTypeErrorEvent = "ERROR_EVENT" EventTypeMarkedForTermination = "MARKED_FOR_TERMINATION" EventTypePerformanceEvent = "PERFORMANCE_EVENT" EventTypeResourceContention = "RESOURCE_CONTENTION" )
Variables ¶
This section is empty.
Functions ¶
func StatusError ¶
Types ¶
type AffectedCounts ¶
type AffectedEntities ¶
type AppliedTag ¶
type AutoTag ¶
type AutoTag struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Rules []AutoTagRule `json:"rules"` }
AutoTags
type AutoTagResponse ¶
type AutoTagResponse struct {
Values []AutoTag `json:"values"`
}
type AutoTagRule ¶
type AutoTagRule struct { Type AutoTagRuleType `json:"type"` Enabled bool `json:"enabled"` ValueFormat string `json:"valueFormat"` PropagationTypes []AutoTagRulePropagationType `json:"propagationTypes"` Conditions []AutoTagRuleCondition `json:"conditions"` }
type AutoTagRuleCondition ¶
type AutoTagRuleCondition struct { Key AutoTagRuleConditionKey `json:"key"` ComparisonInfo AutoTagRuleConditionComparisonInfo `json:"comparisonInfo"` }
type AutoTagRuleConditionKey ¶
type AutoTagRuleConditionKey struct {
Attribute string `json:"attribute"`
}
type AutoTagRulePropagationType ¶
type AutoTagRulePropagationType string
const ( ServiceToProcessGroupLike AutoTagRulePropagationType = "SERVICE_TO_PROCESS_GROUP_LIKE" ServiceToHostLike AutoTagRulePropagationType = "SERVICE_TO_HOST_LIKE" ProcessGroupToHost AutoTagRulePropagationType = "PROCESS_GROUP_TO_HOST" ProcessGroupToService AutoTagRulePropagationType = "PROCESS_GROUP_TO_SERVICE" HostToProcessGroupInstance AutoTagRulePropagationType = "HOST_TO_PROCESS_GROUP_INSTANCE" )
type AutoTagRuleType ¶
type AutoTagRuleType string
type Client ¶
type Client struct { AutoTags *autoTagsService Dashboards *dashboardService Events *eventsService CustomDevice *customDeviceService Problem *problemService CustomTags *tagService Entities *entitiesService RestyClient *resty.Client Log *log.Logger // contains filtered or unexported fields }
func (*Client) AllApplicationNameDetectionRules ¶
func (c *Client) AllApplicationNameDetectionRules() ([]NameDetectionRule, error)
Get all application naming rules in order
func (*Client) CreateApplicationNameDetectionRule ¶
func (c *Client) CreateApplicationNameDetectionRule(body NameDetectionRuleDetail) (NameDetectionRule, error)
Create an application name detection rule. If the API responds with a non-2xx status code, an error is returned.
func (*Client) DeleteApplicationNameDetectionRule ¶
Delete an application name detection rule.
func (*Client) GetApplicationNameDetectionRule ¶
func (c *Client) GetApplicationNameDetectionRule(id string) (NameDetectionRuleDetail, error)
Get an application name detection rule. If the rule does not exist, an empty NameDetectionRuleDetail will be returned with an Id of ""
func (*Client) UpdateApplicationNameDetectionRule ¶
func (c *Client) UpdateApplicationNameDetectionRule(id string, body NameDetectionRuleDetail) error
Update an application name detection rule. If the API responds with a non-2xx status code, an error is returned.
func (*Client) UpdateApplicationNameDetectionRuleOrder ¶
type ConfigurationMetadata ¶
type ConstraintViolation ¶
type ConstraintViolation struct { Path string `json:"path,omitempty"` Message string `json:"message,omitempty"` ParameterLocation ConstraintViolationParameterLocation `json:"parameterLocation,omitempty"` Location string `json:"location,omitempty"` }
type ConstraintViolationParameterLocation ¶
type ConstraintViolationParameterLocation string
const ( ConstraintViolationParameterLocationPath ConstraintViolationParameterLocation = "PATH" ConstraintViolationParameterLocationPayloadBody ConstraintViolationParameterLocation = "PAYLOAD_BODY" ConstraintViolationParameterLocationQuery ConstraintViolationParameterLocation = "QUERY" )
type CustomDevicePushMessage ¶
type CustomDevicePushMessage struct { DisplayName string `json:"displayName,omitempty"` Group string `json:"group,omitempty"` IPAddresses []string `json:"ipAddresses,omitempty"` ListenPorts []int `json:"listenPorts,omitempty"` Favicon string `json:"favicon,omitempty"` ConfigURL string `json:"configUrl,omitempty"` Type string `json:"type,omitempty"` Properties map[string]string `json:"properties,omitempty"` Tags []string `json:"tags,omitempty"` HostNames []string `json:"hostNames,omitempty"` }
type CustomDevicePushResult ¶
type CustomFilterChartConfig ¶
type CustomFilterChartConfig struct { Type CustomFilterChartConfigType `json:"type"` Series *[]CustomFilterChartSeriesConfig `json:"series"` ResultMetadata string `json:"resulMetadata,omitempty"` }
type CustomFilterChartConfigType ¶
type CustomFilterChartConfigType string
const ( PIE CustomFilterChartConfigType = "PIE" SINGLE_VALUE CustomFilterChartConfigType = "SINGLE_VALUE" TIMESERIES CustomFilterChartConfigType = "TIMESERIES" TOP_LIST CustomFilterChartConfigType = "TOP_LIST" )
type CustomFilterChartSeriesConfig ¶
type CustomFilterChartSeriesConfig struct { Metric string `json:"metric"` Aggregation CustomFilterChartSeriesConfigAggregation `json:"aggregation"` Percentile *int `json:"percentile"` Type CustomFilterChartSeriesConfigType `json:"type"` EntityType string `json:"entityType"` Dimensions []CustomFilterChartSeriesDimensionConfig `json:"dimensions"` SortAscending bool `json:"sortAscending"` SortColumn bool `json:"sortColumn"` }
type CustomFilterChartSeriesConfigAggregation ¶
type CustomFilterChartSeriesConfigAggregation string
const ( AVG CustomFilterChartSeriesConfigAggregation = "AVG" COUNT CustomFilterChartSeriesConfigAggregation = "COUNT" DISTINCT CustomFilterChartSeriesConfigAggregation = "DISTINCT" FASTEST10PERCENT CustomFilterChartSeriesConfigAggregation = "FASTEST10PERCENT" MAX CustomFilterChartSeriesConfigAggregation = "MAX" MEDIAN CustomFilterChartSeriesConfigAggregation = "MEDIAN" MIN CustomFilterChartSeriesConfigAggregation = "MIN" NONE CustomFilterChartSeriesConfigAggregation = "NONE" OF_INTEREST_RATIO CustomFilterChartSeriesConfigAggregation = "OF_INTEREST_RATIO" OTHER_RATIO CustomFilterChartSeriesConfigAggregation = "OTHER_RATIO" PERCENTILE CustomFilterChartSeriesConfigAggregation = "PERCENTILE" PER_MIN CustomFilterChartSeriesConfigAggregation = "PER_MIN" SLOWEST10PERCENT CustomFilterChartSeriesConfigAggregation = "SLOWEST10PERCENT" SLOWEST5PERCENT CustomFilterChartSeriesConfigAggregation = "SLOWEST5PERCENT" SUM CustomFilterChartSeriesConfigAggregation = "SUM" )
type CustomFilterChartSeriesConfigType ¶
type CustomFilterChartSeriesConfigType string
const ( AREA CustomFilterChartSeriesConfigType = "AREA" BAR CustomFilterChartSeriesConfigType = "BAR" LINE CustomFilterChartSeriesConfigType = "LINE" )
type CustomFilterConfig ¶
type Dashboard ¶
type Dashboard struct { ID string `json:"id,omitempty"` Metadata *ConfigurationMetadata `json:"metadata,omitempty"` DashboardMetadata *DashboardMetadata `json:"dashboardMetadata,omitempty"` Tiles []Tile `json:"tiles"` }
type DashboardFilter ¶
type DashboardFilter struct { Timeframe string `json:"tismeframe,omitempty"` ManagementZone *EntityShortRepresentation `json:"managementZone"` }
type DashboardMetadata ¶
type DashboardMetadata struct { Name string `json:"name"` Owner string `json:"owner,omitempty"` SharingDetails *SharingInfo `json:"sharingDetails,omitempty"` DashboardFilter *DashboardFilter `json:"dashboardFilter"` }
type DashboardResponse ¶
type DashboardResponse struct {
Dashboards []DashboardStub `json:"dashboards"`
}
Dashboard Types
type DashboardStub ¶
type Details ¶
type Details struct { EvidenceType string `json:"evidenceType"` DisplayName string `json:"displayName"` Entity Entity `json:"entity"` GroupingEntity GroupingEntity `json:"groupingEntity"` RootCauseRelevant bool `json:"rootCauseRelevant"` EventID string `json:"eventId"` EventType string `json:"eventType"` StartTime int64 `json:"startTime"` }
type EnvV2Entity ¶ added in v1.0.7
type ErrorDetail ¶
type ErrorDetail struct { Code int64 `json:"code,omitempty"` Message string `json:"message,omitempty"` ConstraintViolations []ConstraintViolation `json:"constraintViolations"` }
type ErrorResponse ¶
type ErrorResponse struct {
Detail *ErrorDetail `json:"error,omitempty"`
}
Error Types
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type EventCreation ¶
type EventCreation struct { EventType EventType `json:"eventType,omitempty"` Start int64 `json:"start,omitempty"` End int64 `json:"end,omitempty"` TimeoutMinutes int32 `json:"timeoutMinutes,omitempty"` Source string `json:"source,omitempty"` AnnotationType string `json:"annotationType,omitempty"` AnnotationDescription string `json:"annotationDescription,omitempty"` AttachRules PushEventAttachRules `json:"attachRules,omitempty"` Description string `json:"description,omitempty"` Title string `json:"title,omitempty"` CustomProperties map[string]string `json:"customProperties,omitempty"` AllowDavisMerge bool `json:"allowDavisMerge"` }
type EventStoreResult ¶
type EvidenceDetails ¶
type GroupingEntity ¶
type ImpactedEntities ¶
type NameDetectionResponse ¶
type NameDetectionResponse struct {
Values []NameDetectionRule `json:"values"`
}
type NameDetectionRule ¶
type NameDetectionRuleDetail ¶
type NameDetectionRuleDetail struct { Id string `json:"id,omitempty"` Metadata NameDetectionRuleMetadata `json:"metadata"` ApplicationIdentifier string `json:"applicationIdentifier"` FilterConfig NameDetectionRuleFilterConfiguration `json:"filterConfig"` }
type NameDetectionRuleOrderRequest ¶
type NameDetectionRuleOrderRequest struct {
Values []NameDetectionRule `json:"values"`
}
type Problem ¶
type Problem struct { ProblemID string `json:"problemId"` DisplayID string `json:"displayId"` Title string `json:"title"` ImpactLevel string `json:"impactLevel"` SeverityLevel string `json:"severityLevel"` Status string `json:"status"` AffectedEntities []AffectedEntities `json:"affectedEntities"` ImpactedEntities []ImpactedEntities `json:"impactedEntities"` RootCauseEntity interface{} `json:"rootCauseEntity"` ManagementZones []interface{} `json:"managementZones"` EntityTags []interface{} `json:"entityTags"` ProblemFilters []ProblemFilters `json:"problemFilters"` StartTime int64 `json:"startTime"` EndTime int `json:"endTime"` EvidenceDetails EvidenceDetails `json:"evidenceDetails"` }
type ProblemClose ¶
type ProblemClose struct {
Message string `json:"message"`
}
type ProblemFilters ¶
type ProblemV1 ¶
type ProblemV1 struct { ID string `json:"id"` StartTime int64 `json:"startTime"` EndTime int `json:"endTime"` DisplayName string `json:"displayName"` ImpactLevel string `json:"impactLevel"` Status string `json:"status"` SeverityLevel string `json:"severityLevel"` CommentCount int `json:"commentCount"` TagsOfAffectedEntities []interface{} `json:"tagsOfAffectedEntities"` RankedEvents []RankedEvents `json:"rankedEvents"` RankedImpacts []RankedImpacts `json:"rankedImpacts"` AffectedCounts AffectedCounts `json:"affectedCounts"` RecoveredCounts RecoveredCounts `json:"recoveredCounts"` HasRootCause bool `json:"hasRootCause"` }
type ProblemV1Result ¶
type ProblemV1Result struct {
Result Result `json:"result"`
}
type ProblemsResponse ¶
type PushEventAttachRules ¶
type PushEventAttachRules struct { EntityIds []string `json:"entityIds,omitempty"` TagMatchRules []TagMatchRule `json:"tagRule,omitempty"` }
type RankedEvents ¶
type RankedEvents struct { StartTime int64 `json:"startTime"` EndTime int `json:"endTime"` EntityID string `json:"entityId"` EntityName string `json:"entityName"` SeverityLevel string `json:"severityLevel"` ImpactLevel string `json:"impactLevel"` EventType string `json:"eventType"` Status string `json:"status"` Severities []interface{} `json:"severities"` IsRootCause bool `json:"isRootCause"` CustomProperties map[string]string `json:"customProperties"` Source string `json:"source"` AnnotationDescription string `json:"annotationDescription"` CorrelationID string `json:"correlationId"` }
type RankedImpacts ¶
type RecoveredCounts ¶
type SharingInfo ¶
type SharingInfo struct { Published bool `json:"published,omitempty"` }
type TagMatchRule ¶
type TagResponse ¶
type TagResponse struct { AppliedTags []AppliedTag `json:"appliedTags"` MatchedEntitiesCount int `json:"matchedEntitiesCount"` }
type Tile ¶
type Tile struct { Name string `json:"name"` TileType TileType `json:"tileType"` Configured bool `json:"configured,omitempty"` Bounds *TileBounds `json:"bounds"` TileFilter *TileFilter `json:"tileFilter"` // CustomChartingTile CustomFilterConfig *CustomFilterConfig `json:"filterConfig,omitempty"` }
type TileBounds ¶
type TileFilter ¶
type TileFilter struct {
ManagementZone *EntityShortRepresentation `json:"managementZone"`
}
type TileType ¶
type TileType string
const ( TileTypeApplication TileType = "APPLICATION" TileTypeApplications TileType = "APPLICATIONS" TileTypeApplicationsMostActive TileType = "APPLICATIONS_MOST_ACTIVE" TileTypeApplicationMethod TileType = "APPLICATION_METHOD" TileTypeApplicationWorldMap TileType = "APPLICATION_WORLDMAP" TileTypeAWS TileType = "AWS" TileTypeBounceRate TileType = "BOUNCE_RATE" TileTypeCustomApplication TileType = "CUSTOM_APPLICATION" TileTypeCustomCharting TileType = "CUSTOM_CHARTING" TileTypeDatabase TileType = "DATABASE" TileTypeDAtabasesOverview TileType = "DATABASES_OVERVIEW" TileTypeDCRUMServices TileType = "DCRUM_SERVICES" TileTypeDocker TileType = "DOCKER" TileTypeDTAQL TileType = "DTAQL" TileTypeHeader TileType = "HEADER" TileTypeHost TileType = "HOST" TileTypeHosts TileType = "HOSTS" TileTypeLogAnalytics TileType = "LOG_ANALYTICS" TileTypeMarkdown TileType = "MARKDOWN" TileTypeMobileApplication TileType = "MOBILE_APPLICATION" TileTypeNetwork TileType = "NETWORK" TileTypeNetworkMedium TileType = "NETWORK_MEDIUM" TileTypeOpenProblems TileType = "OPEN_PROBLEMS" TileTypeProcessGroupsOne TileType = "PROCESS_GROUPS_ONE" TileTypePureModel TileType = "PURE_MODEL" TileTypeResources TileType = "RESOURCES" TileTypeServices TileType = "SERVICES" TileTypeServiceVersatile TileType = "SERVICE_VERSATILE" TileTypeSessionMetrics TileType = "SESSION_METRICS" TileTypeSyntheticHTTPMonitor TileType = "SYNTHETIC_HTTP_MONITOR" TileTypeSyntheticSingleExitTest TileType = "SYNTHETIC_SINGLE_EXT_TEST" TileTypeSyntheticSingleWebcheck TileType = "SYNTHETIC_SINGLE_WEBCHECK" TileTypeSyntheticTests TileType = "SYNTHETIC_TESTS" TileTypeTechnologyLandscape TileType = "TECHNOLOGY_LANDSCAPE" TileTypeThirdPartyMostActive TileType = "THIRD_PARTY_MOST_ACTIVE" TileTypeUEMActiveSessions TileType = "UEM_ACTIVE_SESSIONS" TileTypeUEMConversionsOverall TileType = "UEM_CONVERSIONS_OVERALL" TileTypeUEMConversionsPerGoal TileType = "UEM_CONVERSIONS_PER_GOAL" TileTypeUEMJSErrorsOverall TileType = "UEM_JSERRORS_OVERALL" TileTypeUEMKeyUserActions TileType = "UEM_KEY_USER_ACTIONS" TileTypeUsers TileType = "USERS" TileTypeVirtualization TileType = "VIRTUALIZATION" )
Click to show internal directories.
Click to hide internal directories.