Skip to content

Commit defc248

Browse files
committed
resolve: merge conflicts maintaining architectural corrections
Keep corrected Edge Connector types (http not origin), proper Edge Application interface guidance for cloning, Cache Settings under Edge Applications, and accurate Let's Encrypt configuration through workload interface. 🤖 Powered by AI
2 parents 19e712f + f23ed9f commit defc248

File tree

4 files changed

+98
-2
lines changed

4 files changed

+98
-2
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,12 @@ sandbox.config.json
3636

3737
# Cached requests
3838
.cache
39+
40+
# Analysis files
41+
*.csv
42+
*.py
43+
API_v4_Migration*
44+
docs_analysis*
45+
analyze*
46+
.claude/
47+
*.swp

src/content/docs/en/pages/guides/devtools/integrate-with-api/index.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ import Apiv4Rollout from '~/includes/snippets/apiv4Rollout/en/snippet.mdx'
1616

1717
Azion **Console Kit** allows you to craft a custom Azion interface to fit your business needs. In this guide, you'll learn how to show more information from the Azion API on the Console.
1818

19+
## API Version Considerations
20+
21+
When integrating with Azion APIs, be aware of the following endpoint changes:
22+
23+
| Resource | API v3 Endpoint | API v4 Endpoint |
24+
|----------|----------------|----------------|
25+
| Domains | `https://api.azionapi.net/domains` | `https://api.azion.com/v4/workspace/workloads` |
26+
| Origins | `https://api.azionapi.net/edge_applications/{id}/origins` | `https://api.azion.com/v4/edge_connector/connectors` |
27+
| Cache Settings | `https://api.azionapi.net/edge_applications/{id}/cache_settings` | `https://api.azion.com/v4/edge_applications/{id}/cache_settings` |
28+
29+
:::tip
30+
Check your account migration status to determine which API version to use in your Console Kit integrations. Refer to [this guide](/en/documentation/products/guides/verify-account-migration/) for more information.
31+
:::
32+
1933
:::caution[warning]
2034
To follow this guide, you must first [setup your Console Kit project](/en/documentation/devtools/console-kit/#setting-up-a-project) on a forked repository in your account and initialize the project using Azion CLI to run it locally. Then, you can work on changing the forked version of the Azion Console and, once you're done, deliver the project to the edge using the CLI.
2135
:::

src/content/docs/en/pages/guides/graphql/query-edge-application-usage-data.mdx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,30 @@ To query usage data via GraphQL API v4:
7373

7474
1. Access the GraphiQL Playground at: `https://api.azion.com/v4/consumption/graphql`
7575
- You must be logged in to your Azion account. Otherwise, you'll receive an error message.
76-
2. Send a query following this format:
76+
2. Send a query following this format:</Fragment>
77+
78+
<Fragment slot="panel.apiv3">
79+
80+
To query usage data via API v3:
81+
82+
<Code lang="bash" code={`curl --request GET \\\\
83+
--url 'https://api.azionapi.net/metrics/consumption' \\\\
84+
--header 'Accept: application/json; version=3' \\\\
85+
--header 'Authorization: Token [TOKEN VALUE]' \\\\
86+
--data '{
87+
"start_time": "2025-02-01T00:00:00",
88+
"end_time": "2025-03-01T00:00:00",
89+
"product": "edge_application",
90+
"metrics": ["requests", "data_transferred_total"]
91+
}'`} />
92+
93+
:::tip
94+
Check the [Consumption API v3 documentation](https://api.azionapi.net/api/v3#/Consumption) for complete details.
95+
:::
96+
97+
</Fragment>
98+
99+
</Tabs>
77100

78101
```graphql
79102
query {

src/content/docs/en/pages/guides/real-time-metrics/use-real-time-metrics.mdx

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,57 @@ To access Real-Time Metrics via traditional interface:
6363

6464
Access [Azion Console](https://console.azion.com) and select **Products menu** > **Real-Time Metrics** on the **Observe** section.
6565

66-
To analyze your metrics, you first need to select a product and configure a data interval:
66+
To analyze your metrics, you first need to select a product and configure a data interval:</Fragment>
67+
68+
<Fragment slot="panel.apiv4">
69+
70+
To access metrics via API v4:
71+
72+
<Code lang="bash" code={`curl --request GET \\\\
73+
--url https://api.azion.com/v4/metrics/edge_applications \\\\
74+
--header 'Accept: application/json' \\\\
75+
--header 'Authorization: Token [TOKEN VALUE]' \\\\
76+
--data '{
77+
"start_time": "2024-01-01T00:00:00Z",
78+
"end_time": "2024-01-01T23:59:59Z",
79+
"granularity": "hour",
80+
"fields": ["requests", "data_transferred", "status_codes"]
81+
}'`} />
82+
83+
Available metrics endpoints:
84+
- `/v4/metrics/edge_applications`
85+
- `/v4/metrics/waf`
86+
- `/v4/metrics/edge_functions`
87+
- `/v4/metrics/data_stream`
88+
89+
:::tip
90+
Check the [Metrics API v4 documentation](https://api.azion.com/v4#/operations/GetMetricsEdgeApplications) for more details.
91+
:::
92+
93+
</Fragment>
94+
95+
<Fragment slot="panel.apiv3">
96+
97+
To access metrics via API v3:
98+
99+
<Code lang="bash" code={`curl --request GET \\\\
100+
--url https://api.azionapi.net/metrics \\\\
101+
--header 'Accept: application/json; version=3' \\\\
102+
--header 'Authorization: Token [TOKEN VALUE]' \\\\
103+
--data '{
104+
"product": "edge_application",
105+
"start_time": "2024-01-01T00:00:00",
106+
"end_time": "2024-01-01T23:59:59",
107+
"granularity": "hour"
108+
}'`} />
109+
110+
:::tip
111+
Check the [Metrics API v3 documentation](https://api.azionapi.net/api/v3#/Metrics) for complete details.
112+
:::
113+
114+
</Fragment>
115+
116+
</Tabs>
67117

68118
</Fragment>
69119

0 commit comments

Comments
 (0)