Skip to content

Commit 94282b3

Browse files
committed
[Pipelines, Queues, Radar] Use DashButton component
1 parent df63372 commit 94282b3

File tree

5 files changed

+51
-33
lines changed

5 files changed

+51
-33
lines changed

src/content/docs/pipelines/build-with-pipelines/sources/http.mdx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ head:
88
content: Configure HTTP endpoint
99
---
1010

11-
import { Render, PackageManagers } from "~/components";
11+
import { Render, PackageManagers, DashButton } from "~/components";
1212

1313
Pipelines support data ingestion over HTTP. When you create a new pipeline using the default settings you will receive a globally scalable ingestion endpoint. To ingest data, make HTTP POST requests to the endpoint.
1414

@@ -54,12 +54,16 @@ $ npx wrangler pipelines create [PIPELINE-NAME] --r2-bucket [R2-BUCKET-NAME] --r
5454
Once authentication is turned on, you will need to include a Cloudflare API token in your request headers.
5555
5656
### Get API token
57-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
58-
2. Navigate to your [API Keys](https://dash.cloudflare.com/profile/api-tokens).
59-
3. Select **Create Token**.
60-
4. Choose the template for Workers Pipelines. Select **Continue to summary** > **Create token**. Make sure to copy the API token and save it securely.
57+
58+
1. In the Cloudflare dashboard, go to the **Account API tokens** page.
59+
60+
<DashButton url="/?to=/:account/api-tokens" />
61+
62+
2. Select **Create Token**.
63+
3. Choose the template for Workers Pipelines. Select **Continue to summary** > **Create token**. Make sure to copy the API token and save it securely.
6164
6265
### Making authenticated requests
66+
6367
Include the API token you created in the previous step in the headers for your request:
6468
6569
```sh

src/content/docs/pipelines/tutorials/send-data-from-client/index.mdx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tags:
1212
- SQL
1313
---
1414

15-
import { Render, PackageManagers, Details, WranglerConfig } from "~/components";
15+
import { Render, PackageManagers, Details, WranglerConfig, DashButton } from "~/components";
1616

1717
In this tutorial, you will learn how to build a data lake of website interaction events (clickstream data), using Pipelines.
1818

@@ -406,17 +406,21 @@ Now, you can access the application at the deployed URL. When you click on the `
406406

407407
## 9. View the data in R2
408408

409-
You can view the data in the R2 bucket. If you are not signed in to the Cloudflare dashboard, sign in and navigate to the [R2 overview](https://dash.cloudflare.com/?to=/:account/r2/overview) page.
409+
To view the data in the R2 bucket:
410410

411-
Open the bucket you configured for your pipeline in Step 3. You can see files, representing the clickstream data. These files are newline delimited JSON files. Each row in a file represents one click event. Download one of the files, and open it in your preferred text editor to see the output:
411+
1. In the Cloudflare dashboard, go to R2's **Overview** page.
412412

413-
```json
414-
{"timestamp":"2025-04-06T16:24:29.213Z","session_id":"1234567890abcdef","user_id":"user965","event_data":{"event_id":673,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:29.213Z","product_id":2},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
415-
{"timestamp":"2025-04-06T16:24:30.436Z","session_id":"1234567890abcdef","user_id":"user998","event_data":{"event_id":787,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:30.436Z","product_id":4},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
416-
{"timestamp":"2025-04-06T16:24:31.330Z","session_id":"1234567890abcdef","user_id":"user22","event_data":{"event_id":529,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:31.330Z","product_id":4},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
417-
{"timestamp":"2025-04-06T16:24:31.879Z","session_id":"1234567890abcdef","user_id":"user750","event_data":{"event_id":756,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:31.879Z","product_id":4},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
418-
{"timestamp":"2025-04-06T16:24:33.978Z","session_id":"1234567890abcdef","user_id":"user333","event_data":{"event_id":467,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:33.978Z","product_id":6},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
419-
```
413+
<DashButton url="/?to=/:account/r2/overview" />
414+
415+
2. Open the bucket you configured for your pipeline in Step 3. You can see files, representing the clickstream data. These files are newline delimited JSON files. Each row in a file represents one click event. Download one of the files, and open it in your preferred text editor to see the output:
416+
417+
```json
418+
{"timestamp":"2025-04-06T16:24:29.213Z","session_id":"1234567890abcdef","user_id":"user965","event_data":{"event_id":673,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:29.213Z","product_id":2},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
419+
{"timestamp":"2025-04-06T16:24:30.436Z","session_id":"1234567890abcdef","user_id":"user998","event_data":{"event_id":787,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:30.436Z","product_id":4},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
420+
{"timestamp":"2025-04-06T16:24:31.330Z","session_id":"1234567890abcdef","user_id":"user22","event_data":{"event_id":529,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:31.330Z","product_id":4},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
421+
{"timestamp":"2025-04-06T16:24:31.879Z","session_id":"1234567890abcdef","user_id":"user750","event_data":{"event_id":756,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:31.879Z","product_id":4},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
422+
{"timestamp":"2025-04-06T16:24:33.978Z","session_id":"1234567890abcdef","user_id":"user333","event_data":{"event_id":467,"event_type":"product_view","page_url":"https://<URL>.workers.dev/","timestamp":"2025-04-06T16:24:33.978Z","product_id":6},"device_info":{"browser":"Chrome","os":"Linux","device":"Mobile","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36"},"referrer":""}
423+
```
420424

421425
## 10. Optional: Connect a query engine to your R2 bucket and query the data
422426
Once you have collected the raw events in R2, you might want to query the events, to answer questions such as "how many events occurred?". You can connect a query engine, such as MotherDuck, to your R2 bucket.

src/content/docs/queues/configuration/consumer-concurrency.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
order: 5
66
---
77

8-
import { WranglerConfig } from "~/components";
8+
import { WranglerConfig, DashButton } from "~/components";
99

1010
Consumer concurrency allows a [consumer Worker](/queues/reference/how-queues-works/#consumers) processing messages from a queue to automatically scale out horizontally to keep up with the rate that messages are being written to a queue.
1111

@@ -66,11 +66,13 @@ You can configure the concurrency of your consumer Worker in two ways:
6666

6767
To configure the concurrency settings for your consumer Worker from the dashboard:
6868

69-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
70-
2. Select **Workers & Pages** > **Queues**.
71-
3. Select your queue > **Settings**.
72-
4. Select **Edit Consumer** under Consumer details.
73-
5. Set **Maximum consumer invocations** to a value between `1` and `250`. This value represents the maximum number of concurrent consumer invocations available to your queue.
69+
1. In the Cloudflare dashboard, go to the **Queues** page.
70+
71+
<DashButton url="/?to=/:account/workers/queues" />
72+
73+
2. Select your queue > **Settings**.
74+
3. Select **Edit Consumer** under Consumer details.
75+
4. Set **Maximum consumer invocations** to a value between `1` and `250`. This value represents the maximum number of concurrent consumer invocations available to your queue.
7476

7577
To remove a fixed maximum value, select **auto (recommended)**.
7678

src/content/docs/queues/examples/send-messages-from-dash.mdx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,22 @@ description: Use the dashboard to send messages to a queue.
1111

1212
---
1313

14+
import { DashButton } from "~/components";
15+
1416
Sending messages from the dashboard allows you to debug Queues or queue consumers without a producer Worker.
1517

1618
To send messages from the dashboard:
1719

18-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com) and select your account.
19-
2. Select **Workers & Pages** > **Queues**.
20-
3. Select the queue to send a message to.
21-
4. Select the **Messages** tab.
22-
5. Select **Send message**.
23-
6. Enter your message. You can choose your message content type by selecting the **Text** or **JSON** tabs. Alternatively, select the **Upload a file** button or drag a file over the textbox to upload a file as a message.
24-
7. Select **Send message**.
20+
1. In the Cloudflare dashboard, go to the **Queues** page.
21+
22+
<DashButton url="/?to=/:account/workers/queues" />
23+
24+
2. Select the queue to send a message to.
25+
3. Select the **Messages** tab.
26+
4. Select **Send**.
27+
5. Choose your message **Content Type**: _Text_ or _JSON_.
28+
5. Enter your message. Alternatively, drag a file over the textbox to upload a file as a message.
29+
6. Select **Send**.
2530

2631
Your message will be sent to the queue.
2732

src/content/docs/radar/investigate/url-scanner.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ pcx_content_type: reference
33
title: URL Scanner
44
sidebar:
55
order: 7
6-
76
---
87

8+
import { DashButton } from "~/components";
9+
910
To better understand Internet usage around the world, use Cloudflare's URL Scanner. With Cloudflare's URL Scanner, you have the ability to investigate the details of a domain, IP, URL, or ASN. Cloudflare's URL Scanner is available in the Security Center of the Cloudflare dashboard, [Cloudflare Radar](https://radar.cloudflare.com/scan), and the Cloudflare [API](/api/resources/url_scanner/).
1011

1112
## Use the API
@@ -119,7 +120,7 @@ To fetch the scan's [screenshots](/api/resources/url_scanner/subresources/scans/
119120

120121
### Search scans
121122

122-
Use a subset of ElasticSearch Query syntax to filter scans. Search results will include `Public` scans and your own `Unlisted` scans.
123+
Use a subset of ElasticSearch Query syntax to filter scans. Search results will include `Public` scans and your own `Unlisted` scans.
123124

124125
To search for scans to the hostname `google.com`, use the query parameter `q=page.domain:"google.com"`:
125126

@@ -154,9 +155,11 @@ Go to [Search URL scans](/api/resources/url_scanner/subresources/scans/methods/l
154155

155156
Alternatively, you can search in the Security Center:
156157

157-
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/) and select your account.
158-
2. Go to **Security Center** > **Investigate**.
159-
3. Enter your query and select **Search**.
158+
1. In the Cloudflare dashboard, go to the **Investigate** page.
159+
160+
<DashButton url="/?to=/:account/security-center/investigate" />
161+
162+
2. Enter your query and select **Search**.
160163

161164
You can scan a URL by location. Scanning a URL by location allows you to analyze how a website may present different content depending on your location. This helps to expose and examine region-specific malicious activities.
162165

0 commit comments

Comments
 (0)