package
2.14.1+incompatible
Repository: https://github.com/moira-alert/moira.git
Documentation: pkg.go.dev
# Functions
AddTeamUsers is a controller function that adds a users to certain team.
CheckUserPermissionsForContact checks contact for existence and permissions for given user.
CheckUserPermissionsForSubscription checks subscription for existence and permissions for given user.
No description provided by the author
CreateContact creates new notification contact for current user.
CreateSubscription create or update subscription.
CreateTags create tags with tag names.
CreateTeam is a controller function that creates a new team in Moira.
CreateTrigger creates new trigger.
DeleteAllEvents deletes all notification events.
DeleteAllNotifications removes all notifications.
DeleteNotification removes all notifications by notification key.
DeletePattern deletes trigger pattern.
DeleteTeam is a controller function that removes an existing team in Moira.
DeleteTeamUser is a controller function that removes a user from certain team.
DeleteTriggerMetric deletes metric from last check and all trigger patterns metrics.
DeleteTriggerNodataMetrics deletes all metric from last check which are in NODATA state.
No description provided by the author
DeleteTriggerThrottling deletes trigger throttling.
GetAllContacts gets all moira contacts.
GetAllPatterns get all patterns and triggers and metrics info corresponding to this pattern.
GetAllTags gets all tag names.
GetAllTagsAndSubscriptions get tags subscriptions and triggerIDs.
GetAllTriggers gets all moira triggers.
GetContactById gets notification contact by its id string.
GetContactEventsHistoryByID is a controller that fetches events from database by using moira.Database.GetNotificationsHistoryByContactID.
GetNotifications gets all notifications from current page, if end==-1 && start==0 gets all notifications.
GetNotifierState return current notifier state.
GetSubscription returns subscription by it's id.
GetTeam is a controller function that returns a team by it's ID.
GetTeamSettings gets team contacts and subscriptions.
GetTeamUsers is a controller function that returns a users of team by team ID.
GetTrigger gets trigger with his throttling - next allowed message time.
GetTriggerDump returns raw trigger from database.
GetTriggerEvaluationResult evaluates every target in trigger and returns result, separated on main and additional targets metrics.
GetTriggerEvents gets trigger events from current page and total count of filtered trigger events.
GetTriggerLastCheck gets trigger last check data.
GetTriggerMetrics gets all trigger metrics values, default values from: now - 10min, to: now.
GetTriggerNoisiness get triggers with amount of events (within time range [from, to]) and sorts by events_count according to sortOrder.
GetTriggerThrottling gets trigger throttling timestamp.
GetUnusedTriggerIDs returns unused triggers ids.
GetUserSettings gets user contacts and subscriptions.
GetUserSubscriptions get all user subscriptions.
GetUserTeams is a controller function that returns a teams in which user is a member bu user ID.
RemoveContact deletes notification contact for current user and remove contactID from all subscriptions.
RemoveSubscription deletes subscription.
RemoveTag deletes tag by name.
RemoveTrigger deletes trigger by given triggerID.
SearchTeams is a controller function that returns all teams.
SearchTriggers gets trigger page and filter trigger by tags and search request terms.
SendTestContactNotification push test notification to verify the correct contact settings.
SendTestNotification push test notification to verify the correct notification settings.
SetTeamUsers is a controller function that sets all users for team.
SetTriggerMaintenance sets maintenance to metrics and whole trigger.
UpdateContact updates notification contact for current user.
UpdateNotifierState update current notifier state.
UpdateSubscription updates existing subscription.
UpdateTeam is a controller function that updates an existing team in Moira.
UpdateTrigger update trigger data and trigger metrics in last state.
# Variables
ErrNotAllowedContactType means that this type of contact is not allowed to be created.