Skip to content
代码片段 群组 项目
未验证 提交 7774e35e 编辑于 作者: Grant Young's avatar Grant Young 提交者: GitLab
浏览文件

Add GitLab Environment Toolkit service ping metric

上级 c81c87f2
No related branches found
No related tags found
无相关合并请求
---
key_path: gitlab_environment_toolkit
description: Is the instance provisioned with the Gitlab Environment Toolkit
product_section: analytics
product_stage: analytics
product_group: analytics_instrumentation
value_type: boolean
status: active
milestone: "17.0"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/148077
time_frame: none
data_source: database
data_category: optional
instrumentation_class: GitlabEnvironmentToolkitMetric
performance_indicator_type: []
distribution:
- ee
tier:
- premium
- ultimate
# frozen_string_literal: true
module Gitlab
module Usage
module Metrics
module Instrumentations
class GitlabEnvironmentToolkitMetric < GenericMetric
value do
Gitlab::CurrentSettings.gitlab_environment_toolkit_instance
end
end
end
end
end
end
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Usage::Metrics::Instrumentations::GitlabEnvironmentToolkitMetric, feature_category: :service_ping do
let(:expected_value) { Gitlab::CurrentSettings.gitlab_environment_toolkit_instance }
it_behaves_like 'a correct instrumented metric value', { time_frame: 'none' }
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册