This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.1 | |
info: | |
title: Yeah | |
description: Foobar | |
version: "1.0.0" | |
servers: | |
- url: https://example.com | |
paths: | |
/foo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.1.0", | |
"paths": { | |
"/catalog": { | |
"get": { | |
"parameters": [ | |
{ | |
"in": "query", | |
"name": "url", | |
"schema": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "Minimal API", | |
"version": "1.0.0" | |
}, | |
"paths": { | |
"/object": { | |
"get": { | |
"summary": "Get Objects", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "Minimal API", | |
"version": "1.0.0", | |
"description": "A minimal OpenAPI 3.0.1 specification with a single /documents endpoint" | |
}, | |
"paths": { | |
"/test": { | |
"post": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.1.0 | |
info: | |
title: Test API | |
description: Test API. | |
version: 1.0.0 | |
servers: | |
- url: https://localhost/api/v1 | |
- url: https://localhost/api/v2 | |
paths: | |
/test-multiple-success: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_role_assignment" "cosmosdb_reader" { | |
scope = azurerm_cosmosdb_account.cosmos.id | |
role_definition_name = "Cosmos DB Built-in Data Reader" | |
principal_id = azurerm_api_management.apim.identity[0].principal_id | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { SpanProcessor, Span, ReadableSpan } from '@opentelemetry/sdk-trace-base'; | |
class RemoveQueryParamsProcessor implements SpanProcessor { | |
onStart(span: Span): void { | |
// No action on span start for this processor | |
} | |
onEnd(span: ReadableSpan): void { | |
// Check if the span has an attribute that represents a URL | |
const url = span.attributes['http.url'] as string | undefined; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Directory dei moduli | |
MODULES_DIR=".terraform/modules" | |
HASHES_FILE="tfmodules.lock.json" | |
# Scaricare i moduli | |
terraform init | |
# Funzione per calcolare l'hash di un modulo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import appinsights from 'applicationinsights'; | |
import winston from 'winston'; | |
import { transports, format, Logger } from 'winston'; | |
// Configura Application Insights | |
appinsights.setup(process.env.APPINSIGHTS_INSTRUMENTATIONKEY) | |
.setAutoCollectConsole(false) | |
.start(); | |
const aiClient = appinsights.defaultClient; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Analytics Analytics/Analytics.puml | |
Athena Analytics/Athena.puml | |
AthenaDataSourceConnectors Analytics/AthenaDataSourceConnectors.puml | |
CleanRooms Analytics/CleanRooms.puml | |
CloudSearch Analytics/CloudSearch.puml | |
CloudSearchSearchDocuments Analytics/CloudSearchSearchDocuments.puml | |
DataExchange Analytics/DataExchange.puml | |
DataExchangeforAPIs Analytics/DataExchangeforAPIs.puml | |
DataPipeline Analytics/DataPipeline.puml | |
DataZone Analytics/DataZone.puml |
NewerOlder