Skip to content

Commit ec2c7de

Browse files
Merge pull request DataDog#821 from DataDog/mattw/betaguides
added beta meta to remove from toc and search
2 parents 7def7b9 + 538fee2 commit ec2c7de

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

content/guides/anomalies.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Anomaly Detection (BETA)
3-
kind: documentation
3+
kind: guide
4+
listorder: 16
5+
beta: true
46
sidebar:
57
nav:
68
- header: Anomaly Detection
@@ -10,6 +12,7 @@ sidebar:
1012
href: "#alerts"
1113
---
1214

15+
1316
Anomaly detection is an algorithmic feature that allows you to identify when a metric is behaving differently than it has in the past, taking into account day-of-week and time-of-day patterns. It's well suited for metrics with recurring patterns that are hard or impossible to monitor with threshold-based alerting. For example, anomaly detection can help you discover when your web traffic is unusually low on a weekday afternoon - even though that same level of traffic would be perfectly normal later in the evening.
1417

1518
## How to Use Anomaly Detection on Your Data

content/tipuesearch/tipuesearch_content.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%
22
# for now we are using path exclusion scheme
3-
pages = @items.select{ |item| ((%w{article page documentation integration guide}.include? item[:kind]) && !(item.identifier.match('/ja/'))) }.collect{ |item|
3+
pages = @items.select{ |item| ((%w{article page documentation integration guide}.include? item[:kind]) && (item[:beta]!=true) && !(item.identifier.match('/ja/'))) }.collect{ |item|
44
{
55
"title" => item[:title],
66
"text" => Nokogiri::HTML(item.compiled_content).at('body').inner_text,

lib/helpers_.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ def collect_video_items
1414
end
1515

1616
def collect_integration_items
17-
integrations = @items.select { |item| item[:kind] == 'integration' && !(item.identifier.match('/ja/')) }
17+
integrations = @items.select { |item| item[:kind] == 'integration' && (item[:beta]!=true) && !(item.identifier.match('/ja/')) }
1818
integrations.sort_by { |i| i[:integration_title].downcase }
1919
# $all_itegration_items = integrations
2020
end
2121

2222
def collect_guide_items
23-
guides = @items.select{ |item| item[:kind] == 'guide' && item[:listorder] != nil && !(item.identifier.match('/ja/')) }
23+
guides = @items.select{ |item| item[:kind] == 'guide' && item[:listorder] != nil && (item[:beta]!=true) && !(item.identifier.match('/ja/')) }
2424
guides.sort_by { |item| item[:listorder] }
2525
end
2626

@@ -39,12 +39,12 @@ def collect_ja_integration_items
3939
end
4040

4141
def collect_ja_guide_items
42-
guides = @items.select{ |item| item[:kind] == 'guide' && item[:listorder] != nil && item[:language] == 'ja' && item[:translation_status] == "complete" && item.identifier.match('/ja/') }
42+
guides = @items.select{ |item| item[:kind] == 'guide' && item[:listorder] != nil && (item[:beta]!=true) && item[:language] == 'ja' && item[:translation_status] == "complete" && item.identifier.match('/ja/') }
4343
guides.sort_by { |item| item[:listorder] }
4444
end
4545

4646
def ja_guide_items_yet
47-
guides = @items.select{ |item| item[:kind] == 'guide' && item[:listorder] != nil && item[:language] == nil }
47+
guides = @items.select{ |item| item[:kind] == 'guide' && item[:listorder] != nil && (item[:beta]!=true) && item[:language] == nil }
4848
guides_translated = @items.select{ |item| item[:kind] == 'guide' && item[:listorder] != nil && item[:language] == 'ja' && item[:translation_status] == "complete" && item.identifier.match('/ja/') }
4949

5050
guides_translated.each do |jp_content|

0 commit comments

Comments
 (0)