Skip to content

[EDU-6404] fix: replaced api v3 in observe journey #1675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,18 @@ Once you enable the Sampling feature, you can only have one active stream. If yo

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.

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

```bash
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
curl --request POST \
--url https://api.azion.com/v4/data_stream/streams \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "Kafka Connector",
"template_id": 2,
"domain_ids": [1656613172],
"workloads": [1656613172],
"data_source": "http",
"endpoint": {
"endpoint_type": "kafka",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,21 @@ Check the [Data Stream Properties](https://api.azion.com/#04257075-3691-4b5f-b22
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>`:

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

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

```bash
curl --location --request PATCH 'https://api.azionapi.net/data_streaming/streamings/<data_streaming_id>' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
curl --request PATCH \
--url https://api.azion.com/v4/data_stream/streams/id \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "My Elasticsearch connector",
"template_id": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ In this guide, you'll learn how to configure a payload in NDJSON format.
1. Run the following `POST` request in your terminal, replacing `[TOKEN VALUE]` with your [personal token](/en/documentation/products/guides/personal-tokens/):

```bash
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
curl --request POST \
--url https://api.azion.com/v4/data_stream/streams \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "My HTTPS connector",
"template_id": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ In the **Destination** configurations:

<Fragment slot="panel.api">

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>`:
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.

```bash
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
curl --request POST \
--url https://api.azion.com/v4/data_stream/streams \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "HTTPS connector",
"template_id": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@ Após ativar a função de Sampling, você só poderá ter um stream ativo. Se v

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).

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/):
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/):

```bash
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
curl --request POST \
--url https://api.azion.com/v4/data_stream/streams \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "Kafka Connector",
"template_id": 2,
"domain_ids": [1656613172],
"workloads": [1656613172],
"data_source": "http",
"endpoint": {
"endpoint_type": "kafka",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ Neste guia, você aprenderá como configurar um payload no formato NDJSON.
1. Execute a seguinte requisição `POST` em seu terminal, substituindo `[TOKEN VALUE]` pelo seu [personal token](/pt-br/documentacao/produtos/guias/personal-tokens/):

```bash
curl --location 'https://api.azionapi.net/data_streaming/streamings' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
curl --request POST \
--url https://api.azion.com/v4/data_stream/streams \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "My HTTPS connector",
"template_id": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,21 @@ Consulte a tabela de [Data Stream Properties](https://api.azion.com/#ed05fed1-9e
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>`:

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

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

```bash
curl --location --request PATCH 'https://api.azionapi.net/data_streaming/streamings/<data_streaming_id>' \
--header 'Accept: application/json; version=3' \
--header 'Authorization: Token [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
curl --request PATCH \
--url https://api.azion.com/v4/data_stream/streams/id \
--header 'Accept: application/json' \
--header 'Authorization: [TOKEN VALUE]' \
--header 'Content-Type: application/json' \
--data '{
"name": "My Elasticsearch connector",
"template_id": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ Nas configurações de **Destination**:

<Fragment slot="panel.api">

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>`:
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.

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