...

Text file src/edge-infra.dev/pkg/edge/rollouts/examples/simple-graph.json

Documentation: edge-infra.dev/pkg/edge/rollouts/examples

     1{
     2    "id": "my-example-rollout",
     3    "current": [
     4        "tg1"
     5    ],
     6    "nodes": [
     7        {
     8            "nodeType": "TimerGate",
     9            "data": {
    10                "state": "pending",
    11                "key": "g1",
    12                "label": "TimerGate",
    13                "startTime": "2024-08-30T17:01:29.639722Z",
    14                "delayMinutes": 10
    15            }
    16        },
    17        {
    18            "nodeType": "ApprovalGate",
    19            "data": {
    20                "state": "pending",
    21                "key": "ag1",
    22                "label": "ApprovalGate"
    23            }
    24        },
    25        {
    26            "nodeType": "TargetGroup",
    27            "data": {
    28                "state": "pending",
    29                "key": "tg1",
    30                "label": "TargetGroup",
    31                "selector": "dev",
    32                "artifactName": "store",
    33                "artifactVersion": "0.21"
    34            }
    35        },
    36        {
    37            "nodeType": "TargetGroup",
    38            "data": {
    39                "state": "pending",
    40                "key": "tg2",
    41                "label": "TargetGroup",
    42                "selector": "staging:east",
    43                "artifactName": "store",
    44                "artifactVersion": "0.21"
    45            }
    46        },
    47        {
    48            "nodeType": "TargetGroup",
    49            "data": {
    50                "state": "pending",
    51                "key": "tg3",
    52                "label": "TargetGroup",
    53                "selector": "staging:west",
    54                "artifactName": "store",
    55                "artifactVersion": "0.21"
    56            }
    57        },
    58        {
    59            "nodeType": "TargetGroup",
    60            "data": {
    61                "state": "pending",
    62                "key": "tg4",
    63                "label": "TargetGroup",
    64                "selector": "prod:us",
    65                "artifactName": "store",
    66                "artifactVersion": "0.21"
    67            }
    68        }
    69    ],
    70    "edges": [
    71        {
    72            "From": "tg1",
    73            "To": "g1"
    74        },
    75        {
    76            "From": "g1",
    77            "To": "tg2"
    78        },
    79        {
    80            "From": "g1",
    81            "To": "tg3"
    82        },
    83        {
    84            "From": "tg2",
    85            "To": "ag1"
    86        },
    87        {
    88            "From": "tg3",
    89            "To": "ag1"
    90        },
    91        {
    92            "From": "ag1",
    93            "To": "tg4"
    94        }
    95    ]
    96}

View as plain text