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
| #!/usr/bin/env python3 | |
| """Generate a .drawio diagram from a flow definition plus its registry. | |
| Reads the Git-native registry layout described in work/Data flow design.md | |
| (registry/components, registry/edges, registry/flows — one YAML file per | |
| ID) and emits a draw.io (mxGraph) XML file for a single flow: one vertex | |
| per component occurrence in the path, one edge per path step labelled with | |
| transport/format. | |
| Annotations render in two distinct ways depending on where they're |
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
| using Microsoft.AspNetCore.Http; | |
| using Prometheus; | |
| using System.Text.RegularExpressions; | |
| using System.Threading.Tasks; | |
| namespace mynamespace | |
| { | |
| /// <summary> | |
| /// Middleware component to add a histogram and gague for each HTTP request API endpoint | |
| /// </summary> |
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
| pipeline { | |
| agent { | |
| label 'docker' | |
| } | |
| stages{ | |
| stage('Create jobs'){ | |
| steps{ | |
| container('docker'){ | |
| script{ |
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 | |
| #get highest tag number | |
| VERSION=`git describe --abbrev=0 --tags` | |
| #replace . with space so can split into an array | |
| VERSION_BITS=(${VERSION//./ }) | |
| #get number parts and increase last one by 1 | |
| VNUM1=${VERSION_BITS[0]} |