Skip to content

Commit bd78dba

Browse files
authored
fix: replaced api v3 in observe journey (#1675)
1 parent 37cf32f commit bd78dba

File tree

8 files changed

+54
-44
lines changed

8 files changed

+54
-44
lines changed

src/content/docs/en/pages/observe-journey/data-stream/advanced-configurations/configure-sampling.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,18 @@ Once you enable the Sampling feature, you can only have one active stream. If yo
4444

4545
For this section, you'll be creating a stream with an Apache Kafka connector via API. See other connector options in the [Data Stream Endpoints](https://api.azion.com/#04257075-3691-4b5f-b22b-22a5b6653f3f) table.
4646

47-
1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/):
47+
1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/):
4848

4949
```bash
50-
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
51-
--header 'Accept: application/json; version=3' \
52-
--header 'Authorization: Token [TOKEN VALUE]' \
53-
--header 'Content-Type: application/json' \
50+
curl --request POST \
51+
--url https://api.azion.com/v4/data_stream/streams \
52+
--header 'Accept: application/json' \
53+
--header 'Authorization: [TOKEN VALUE]' \
54+
--header 'Content-Type: application/json' \
5455
--data '{
5556
"name": "Kafka Connector",
5657
"template_id": 2,
57-
"domain_ids": [1656613172],
58+
"workloads": [1656613172],
5859
"data_source": "http",
5960
"endpoint": {
6061
"endpoint_type": "kafka",

src/content/docs/en/pages/observe-journey/data-stream/edit-stream/configure-main-settings.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,21 @@ Check the [Data Stream Properties](https://api.azion.com/#04257075-3691-4b5f-b22
5353
1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your `<data_streaming_id>`:
5454

5555
```bash
56-
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
57-
--header 'Accept: application/json; version=3' \
58-
--header 'Authorization: Token [TOKEN VALUE]'
56+
curl --request GET \
57+
--url https://api.azion.com/v4/data_stream/streams \
58+
--header 'Accept: application/json' \
59+
--header 'Authorization: [TOKEN VALUE]'
5960
```
6061

6162
2. You'll receive a response with all your existing streams. Copy the value of the `<id>` that you want to configure.
6263
3. Run a `PATCH` request to modify the stream as follows:
6364

6465
```bash
65-
curl --location --request PATCH 'https://api.azionapi.net/data_streaming/streamings/<data_streaming_id>' \
66-
--header 'Accept: application/json; version=3' \
67-
--header 'Authorization: Token [TOKEN VALUE]' \
68-
--header 'Content-Type: application/json' \
66+
curl --request PATCH \
67+
--url https://api.azion.com/v4/data_stream/streams/id \
68+
--header 'Accept: application/json' \
69+
--header 'Authorization: [TOKEN VALUE]' \
70+
--header 'Content-Type: application/json' \
6971
--data '{
7072
"name": "My Elasticsearch connector",
7173
"template_id": 2,

src/content/docs/en/pages/observe-journey/data-stream/edit-stream/set-payload.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ In this guide, you'll learn how to configure a payload in NDJSON format.
3939
1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/):
4040

4141
```bash
42-
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
43-
--header 'Accept: application/json; version=3' \
44-
--header 'Authorization: Token [TOKEN VALUE]' \
45-
--header 'Content-Type: application/json' \
42+
curl --request POST \
43+
--url https://api.azion.com/v4/data_stream/streams \
44+
--header 'Accept: application/json' \
45+
--header 'Authorization: [TOKEN VALUE]' \
46+
--header 'Content-Type: application/json' \
4647
--data '{
4748
"name": "My HTTPS connector",
4849
"template_id": 2,

src/content/docs/en/pages/observe-journey/data-stream/integrations/connector-standard-http-https-post.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ In the **Destination** configurations:
6060

6161
<Fragment slot="panel.api">
6262

63-
1. Run the following `GET` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to retrieve your `<data_streaming_id>`:
63+
1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/) to create your data stream.
6464

6565
```bash
66-
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
67-
--header 'Accept: application/json; version=3' \
68-
--header 'Authorization: Token [TOKEN VALUE]' \
69-
--header 'Content-Type: application/json' \
66+
curl --request POST \
67+
--url https://api.azion.com/v4/data_stream/streams \
68+
--header 'Accept: application/json' \
69+
--header 'Authorization: [TOKEN VALUE]' \
70+
--header 'Content-Type: application/json' \
7071
--data '{
7172
"name": "HTTPS connector",
7273
"template_id": 2,

src/content/docs/pt-br/pages/observe-jornada/data-stream/configuracoes-avancadas/configure-sampling.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@ Após ativar a função de Sampling, você só poderá ter um stream ativo. Se v
4141

4242
Para esta seção, você estará criando um stream com um conector Apache Kafka via API. Veja outras opções de conectores na tabela [Data Stream Endpoints](https://api.azion.com/#04257075-3691-4b5f-b22b-22a5b6653f3f).
4343

44-
1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[VALOR DO TOKEN]` pelo seu [token pessoal](/pt-br/documentacao/produtos/guias/personal-tokens/):
44+
1. Execute a seguinte requisição `POST` em seu terminal, substituindo `[VALOR DO TOKEN]` pelo seu [token pessoal](/pt-br/documentacao/produtos/guias/personal-tokens/):
4545

4646
```bash
47-
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
48-
--header 'Accept: application/json; version=3' \
49-
--header 'Authorization: Token [TOKEN VALUE]' \
50-
--header 'Content-Type: application/json' \
47+
curl --request POST \
48+
--url https://api.azion.com/v4/data_stream/streams \
49+
--header 'Accept: application/json' \
50+
--header 'Authorization: [TOKEN VALUE]' \
51+
--header 'Content-Type: application/json' \
5152
--data '{
5253
"name": "Kafka Connector",
5354
"template_id": 2,
54-
"domain_ids": [1656613172],
55+
"workloads": [1656613172],
5556
"data_source": "http",
5657
"endpoint": {
5758
"endpoint_type": "kafka",

src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/adicionar-payload.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ Neste guia, você aprenderá como configurar um payload no formato NDJSON.
3737
1. Execute a seguinte requisição `POST` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/):
3838

3939
```bash
40-
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
41-
--header 'Accept: application/json; version=3' \
42-
--header 'Authorization: Token [TOKEN VALUE]' \
43-
--header 'Content-Type: application/json' \
40+
curl --request POST \
41+
--url https://api.azion.com/v4/data_stream/streams \
42+
--header 'Accept: application/json' \
43+
--header 'Authorization: [TOKEN VALUE]' \
44+
--header 'Content-Type: application/json' \
4445
--data '{
4546
"name": "My HTTPS connector",
4647
"template_id": 2,

src/content/docs/pt-br/pages/observe-jornada/data-stream/editar-stream/configure-main-settings.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,21 @@ Consulte a tabela de [Data Stream Properties](https://api.azion.com/#ed05fed1-9e
5151
1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/) para recuperar seu `<data_streaming_id>`:
5252

5353
```bash
54-
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
55-
--header 'Accept: application/json; version=3' \
56-
--header 'Authorization: Token [TOKEN VALUE]'
54+
curl --request GET \
55+
--url https://api.azion.com/v4/data_stream/streams \
56+
--header 'Accept: application/json' \
57+
--header 'Authorization: [TOKEN VALUE]'
5758
```
5859

5960
2. Você receberá uma resposta com todos os seus streams existentes. Copie o valor do `<id>` que deseja configurar.
6061
3. Execute uma requisição `PATCH` para modificar o stream da seguinte forma:
6162

6263
```bash
63-
curl --location --request PATCH 'https://api.azionapi.net/data_streaming/streamings/<data_streaming_id>' \
64-
--header 'Accept: application/json; version=3' \
65-
--header 'Authorization: Token [TOKEN VALUE]' \
66-
--header 'Content-Type: application/json' \
64+
curl --request PATCH \
65+
--url https://api.azion.com/v4/data_stream/streams/id \
66+
--header 'Accept: application/json' \
67+
--header 'Authorization: [TOKEN VALUE]' \
68+
--header 'Content-Type: application/json' \
6769
--data '{
6870
"name": "My Elasticsearch connector",
6971
"template_id": 2,

src/content/docs/pt-br/pages/observe-jornada/data-stream/integracoes/conector-standard-http-https-post.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ Nas configurações de **Destination**:
6060

6161
<Fragment slot="panel.api">
6262

63-
1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token]/pt-br/documentacao/produtos/guias/personal-tokens/) para recuperar seu `<data_streaming_id>`:
63+
1. Execute a seguinte requisição `GET` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token]/pt-br/documentacao/produtos/guias/personal-tokens/) para criar seu data stream.
6464

6565
```bash
66-
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
67-
--header 'Accept: application/json; version=3' \
68-
--header 'Authorization: Token [TOKEN VALUE]' \
69-
--header 'Content-Type: application/json' \
66+
curl --request POST \
67+
--url https://api.azion.com/v4/data_stream/streams \
68+
--header 'Accept: application/json' \
69+
--header 'Authorization: [TOKEN VALUE]' \
70+
--header 'Content-Type: application/json' \
7071
--data '{
7172
"name": "HTTPS connector",
7273
"template_id": 2,

0 commit comments

Comments
 (0)