@@ -2385,15 +2385,18 @@ export const MockLicenseResponse: GetLicensesResponse[] = [
2385
2385
} ,
2386
2386
] ;
2387
2387
2388
- export const MockHealth = {
2388
+ export const MockHealth : TypesGen . HealthcheckReport = {
2389
2389
time : "2023-08-01T16:51:03.29792825Z" ,
2390
2390
healthy : true ,
2391
- failing_sections : null ,
2391
+ warning : false ,
2392
+ failing_sections : [ ] ,
2392
2393
derp : {
2393
2394
healthy : true ,
2395
+ warning : false ,
2394
2396
regions : {
2395
2397
"999" : {
2396
2398
healthy : true ,
2399
+ warning : false ,
2397
2400
region : {
2398
2401
EmbeddedRelay : true ,
2399
2402
RegionID : 999 ,
@@ -2419,6 +2422,7 @@ export const MockHealth = {
2419
2422
node_reports : [
2420
2423
{
2421
2424
healthy : true ,
2425
+ warning : false ,
2422
2426
node : {
2423
2427
Name : "999stun0" ,
2424
2428
RegionID : 999 ,
@@ -2431,19 +2435,19 @@ export const MockHealth = {
2431
2435
TokenBucketBytesBurst : 0 ,
2432
2436
} ,
2433
2437
can_exchange_messages : false ,
2434
- round_trip_ping : 0 ,
2438
+ round_trip_ping : "0" ,
2439
+ round_trip_ping_ms : 0 ,
2435
2440
uses_websocket : false ,
2436
2441
client_logs : [ ] ,
2437
2442
client_errs : [ ] ,
2438
- error : null ,
2439
2443
stun : {
2440
2444
Enabled : true ,
2441
2445
CanSTUN : true ,
2442
- Error : null ,
2443
2446
} ,
2444
2447
} ,
2445
2448
{
2446
2449
healthy : true ,
2450
+ warning : false ,
2447
2451
node : {
2448
2452
Name : "999b" ,
2449
2453
RegionID : 999 ,
@@ -2456,7 +2460,8 @@ export const MockHealth = {
2456
2460
TokenBucketBytesBurst : 0 ,
2457
2461
} ,
2458
2462
can_exchange_messages : true ,
2459
- round_trip_ping : 7674330 ,
2463
+ round_trip_ping : "7674330" ,
2464
+ round_trip_ping_ms : 7674330 ,
2460
2465
uses_websocket : false ,
2461
2466
client_logs : [
2462
2467
[
@@ -2467,18 +2472,16 @@ export const MockHealth = {
2467
2472
] ,
2468
2473
] ,
2469
2474
client_errs : [ [ ] , [ ] ] ,
2470
- error : null ,
2471
2475
stun : {
2472
2476
Enabled : false ,
2473
2477
CanSTUN : false ,
2474
- Error : null ,
2475
2478
} ,
2476
2479
} ,
2477
2480
] ,
2478
- error : null ,
2479
2481
} ,
2480
2482
"10007" : {
2481
2483
healthy : true ,
2484
+ warning : false ,
2482
2485
region : {
2483
2486
EmbeddedRelay : false ,
2484
2487
RegionID : 10007 ,
@@ -2504,6 +2507,7 @@ export const MockHealth = {
2504
2507
node_reports : [
2505
2508
{
2506
2509
healthy : true ,
2510
+ warning : false ,
2507
2511
node : {
2508
2512
Name : "10007stun0" ,
2509
2513
RegionID : 10007 ,
@@ -2516,19 +2520,19 @@ export const MockHealth = {
2516
2520
TokenBucketBytesBurst : 0 ,
2517
2521
} ,
2518
2522
can_exchange_messages : false ,
2519
- round_trip_ping : 0 ,
2523
+ round_trip_ping : "0" ,
2524
+ round_trip_ping_ms : 0 ,
2520
2525
uses_websocket : false ,
2521
2526
client_logs : [ ] ,
2522
2527
client_errs : [ ] ,
2523
- error : null ,
2524
2528
stun : {
2525
2529
Enabled : true ,
2526
2530
CanSTUN : true ,
2527
- Error : null ,
2528
2531
} ,
2529
2532
} ,
2530
2533
{
2531
2534
healthy : true ,
2535
+ warning : false ,
2532
2536
node : {
2533
2537
Name : "10007a" ,
2534
2538
RegionID : 10007 ,
@@ -2541,7 +2545,8 @@ export const MockHealth = {
2541
2545
TokenBucketBytesBurst : 0 ,
2542
2546
} ,
2543
2547
can_exchange_messages : true ,
2544
- round_trip_ping : 170527034 ,
2548
+ round_trip_ping : "170527034" ,
2549
+ round_trip_ping_ms : 170527034 ,
2545
2550
uses_websocket : false ,
2546
2551
client_logs : [
2547
2552
[
@@ -2552,18 +2557,16 @@ export const MockHealth = {
2552
2557
] ,
2553
2558
] ,
2554
2559
client_errs : [ [ ] , [ ] ] ,
2555
- error : null ,
2556
2560
stun : {
2557
2561
Enabled : false ,
2558
2562
CanSTUN : false ,
2559
- Error : null ,
2560
2563
} ,
2561
2564
} ,
2562
2565
] ,
2563
- error : null ,
2564
2566
} ,
2565
2567
"10008" : {
2566
2568
healthy : true ,
2569
+ warning : false ,
2567
2570
region : {
2568
2571
EmbeddedRelay : false ,
2569
2572
RegionID : 10008 ,
@@ -2589,6 +2592,7 @@ export const MockHealth = {
2589
2592
node_reports : [
2590
2593
{
2591
2594
healthy : true ,
2595
+ warning : false ,
2592
2596
node : {
2593
2597
Name : "10008stun0" ,
2594
2598
RegionID : 10008 ,
@@ -2601,19 +2605,19 @@ export const MockHealth = {
2601
2605
TokenBucketBytesBurst : 0 ,
2602
2606
} ,
2603
2607
can_exchange_messages : false ,
2604
- round_trip_ping : 0 ,
2608
+ round_trip_ping : "0" ,
2609
+ round_trip_ping_ms : 0 ,
2605
2610
uses_websocket : false ,
2606
2611
client_logs : [ ] ,
2607
2612
client_errs : [ ] ,
2608
- error : null ,
2609
2613
stun : {
2610
2614
Enabled : true ,
2611
2615
CanSTUN : true ,
2612
- Error : null ,
2613
2616
} ,
2614
2617
} ,
2615
2618
{
2616
2619
healthy : true ,
2620
+ warning : false ,
2617
2621
node : {
2618
2622
Name : "10008a" ,
2619
2623
RegionID : 10008 ,
@@ -2626,7 +2630,8 @@ export const MockHealth = {
2626
2630
TokenBucketBytesBurst : 0 ,
2627
2631
} ,
2628
2632
can_exchange_messages : true ,
2629
- round_trip_ping : 111329690 ,
2633
+ round_trip_ping : "111329690" ,
2634
+ round_trip_ping_ms : 111329690 ,
2630
2635
uses_websocket : false ,
2631
2636
client_logs : [
2632
2637
[
@@ -2637,18 +2642,16 @@ export const MockHealth = {
2637
2642
] ,
2638
2643
] ,
2639
2644
client_errs : [ [ ] , [ ] ] ,
2640
- error : null ,
2641
2645
stun : {
2642
2646
Enabled : false ,
2643
2647
CanSTUN : false ,
2644
- Error : null ,
2645
2648
} ,
2646
2649
} ,
2647
2650
] ,
2648
- error : null ,
2649
2651
} ,
2650
2652
"10009" : {
2651
2653
healthy : true ,
2654
+ warning : false ,
2652
2655
region : {
2653
2656
EmbeddedRelay : false ,
2654
2657
RegionID : 10009 ,
@@ -2674,6 +2677,7 @@ export const MockHealth = {
2674
2677
node_reports : [
2675
2678
{
2676
2679
healthy : true ,
2680
+ warning : false ,
2677
2681
node : {
2678
2682
Name : "10009stun0" ,
2679
2683
RegionID : 10009 ,
@@ -2686,19 +2690,19 @@ export const MockHealth = {
2686
2690
TokenBucketBytesBurst : 0 ,
2687
2691
} ,
2688
2692
can_exchange_messages : false ,
2689
- round_trip_ping : 0 ,
2693
+ round_trip_ping : "0" ,
2694
+ round_trip_ping_ms : 0 ,
2690
2695
uses_websocket : false ,
2691
2696
client_logs : [ ] ,
2692
2697
client_errs : [ ] ,
2693
- error : null ,
2694
2698
stun : {
2695
2699
Enabled : true ,
2696
2700
CanSTUN : true ,
2697
- Error : null ,
2698
2701
} ,
2699
2702
} ,
2700
2703
{
2701
2704
healthy : true ,
2705
+ warning : false ,
2702
2706
node : {
2703
2707
Name : "10009a" ,
2704
2708
RegionID : 10009 ,
@@ -2711,7 +2715,8 @@ export const MockHealth = {
2711
2715
TokenBucketBytesBurst : 0 ,
2712
2716
} ,
2713
2717
can_exchange_messages : true ,
2714
- round_trip_ping : 138185506 ,
2718
+ round_trip_ping : "138185506" ,
2719
+ round_trip_ping_ms : 138185506 ,
2715
2720
uses_websocket : false ,
2716
2721
client_logs : [
2717
2722
[
@@ -2722,15 +2727,12 @@ export const MockHealth = {
2722
2727
] ,
2723
2728
] ,
2724
2729
client_errs : [ [ ] , [ ] ] ,
2725
- error : null ,
2726
2730
stun : {
2727
2731
Enabled : false ,
2728
2732
CanSTUN : false ,
2729
- Error : null ,
2730
2733
} ,
2731
2734
} ,
2732
2735
] ,
2733
- error : null ,
2734
2736
} ,
2735
2737
} ,
2736
2738
netcheck : {
@@ -2764,7 +2766,6 @@ export const MockHealth = {
2764
2766
GlobalV6 : "" ,
2765
2767
CaptivePortal : null ,
2766
2768
} ,
2767
- netcheck_err : null ,
2768
2769
netcheck_logs : [
2769
2770
"netcheck: netcheck.runProbe: got STUN response for 10007stun0 from 34.71.26.24:55368 (9b07930007da49dd7df79bc7) in 1.791799ms" ,
2770
2771
"netcheck: netcheck.runProbe: got STUN response for 999stun0 from 34.71.26.24:55368 (7397fec097f1d5b01364566b) in 1.791529ms" ,
@@ -2777,29 +2778,24 @@ export const MockHealth = {
2777
2778
"netcheck: [v1] measureAllICMPLatency: listen ip4:icmp 0.0.0.0: socket: operation not permitted" ,
2778
2779
"netcheck: [v1] report: udp=true v6=false v6os=true mapvarydest=false hair= portmap= v4a=34.71.26.24:55368 derp=999 derpdist=999v4:2ms,10007v4:175ms,10008v4:112ms,10009v4:139ms" ,
2779
2780
] ,
2780
- error : null ,
2781
2781
} ,
2782
2782
access_url : {
2783
2783
access_url : "https://dev.coder.com" ,
2784
2784
healthy : true ,
2785
2785
reachable : true ,
2786
2786
status_code : 200 ,
2787
2787
healthz_response : "OK" ,
2788
- error : null ,
2789
2788
} ,
2790
2789
websocket : {
2791
2790
healthy : true ,
2792
- response : {
2793
- body : "" ,
2794
- code : 101 ,
2795
- } ,
2796
- error : null ,
2791
+ body : "" ,
2792
+ code : 101 ,
2797
2793
} ,
2798
2794
database : {
2799
2795
healthy : true ,
2800
2796
reachable : true ,
2801
- latency : 92570 ,
2802
- error : null ,
2797
+ latency : " 92570" ,
2798
+ latency_ms : 92570 ,
2803
2799
} ,
2804
2800
coder_version : "v0.27.1-devel+c575292" ,
2805
2801
} ;
0 commit comments