观察与升级
原能力
跟踪关键指标、前提变化和计划偏离,形成应由责任人审阅的异常清单。(细化版 p.8–9)
首选项目
Alertmanager(Apache-2.0)。 Alertmanager
匹配范围
告警路由、去重和工作包升级。
源码
Alertmanager · func (rs RoutingStage) Exec(
notify/notify.go · 279–292 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
func (rs RoutingStage) Exec(ctx context.Context, l *slog.Logger, alerts ...*alert.Alert) (context.Context, []*alert.Alert, error) {
receiver, ok := ReceiverName(ctx)
if !ok {
return ctx, nil, errors.New("receiver missing")
}
ctx, span := tracer.StartRoutingStage(ctx, receiver, len(alerts))
defer span.End()
s, ok := rs[receiver]
if !ok {
return ctx, nil, errors.New("stage for receiver missing")
}
- // Copyright The Prometheus Authors
OpenProject · class WorkPackage
app/models/work_package.rb · 30–43 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
class WorkPackage < ApplicationRecord
include WorkPackage::SemanticIdentifier
include WorkPackage::Validations
include WorkPackage::SchedulingRules
include WorkPackage::StatusTransitions
include WorkPackage::AskBeforeDestruction
include WorkPackage::TimeEntriesCleaner
include WorkPackage::Ancestors
include WorkPackage::Automatable
include WorkPackage::Hooks
include WorkPackage::Origin
# Must stay above WorkPackage::Journalized: its after_save persists the
# version rows that the journal snapshot then reads.
include WorkPackage::Versions
- #-- copyright
- # Copyright (C) the OpenProject GmbH
- # OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
- # Copyright (C) 2006-2013 Jean-Philippe Lang
- # Copyright (C) 2010-2013 the ChiliProject Team
- # See COPYRIGHT and LICENSE files for more details.
实现与验收要点
实际监测口径、变更证据和责任人资质。