Skip to content

Commit f3e4dac

Browse files
authored
Add last_sync and last_sync_error to switch (#85)
1 parent 5ea341c commit f3e4dac

File tree

9 files changed

+307
-262
lines changed

9 files changed

+307
-262
lines changed

doc/index.html

Lines changed: 58 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,10 @@ <h2>Table of Contents</h2>
13961396
<a href="#metalstack.api.v2.SwitchQuery"><span class="badge">M</span>SwitchQuery</a>
13971397
</li>
13981398

1399+
<li>
1400+
<a href="#metalstack.api.v2.SwitchSync"><span class="badge">M</span>SwitchSync</a>
1401+
</li>
1402+
13991403

14001404
<li>
14011405
<a href="#metalstack.api.v2.BGPState"><span class="badge">E</span>BGPState</a>
@@ -2062,10 +2066,6 @@ <h2>Table of Contents</h2>
20622066
<a href="#metalstack.infra.v2.SwitchServiceRegisterResponse"><span class="badge">M</span>SwitchServiceRegisterResponse</a>
20632067
</li>
20642068

2065-
<li>
2066-
<a href="#metalstack.infra.v2.SwitchSync"><span class="badge">M</span>SwitchSync</a>
2067-
</li>
2068-
20692069

20702070

20712071

@@ -11620,6 +11620,20 @@ <h3 id="metalstack.api.v2.Switch">Switch</h3>
1162011620
<td><p>MachineConnections map machines to the nics they are connected to. </p></td>
1162111621
</tr>
1162211622

11623+
<tr>
11624+
<td>last_sync</td>
11625+
<td><a href="#metalstack.api.v2.SwitchSync">SwitchSync</a></td>
11626+
<td></td>
11627+
<td><p>LastSync contains information about the last heartbeat of the switch. </p></td>
11628+
</tr>
11629+
11630+
<tr>
11631+
<td>last_sync_error</td>
11632+
<td><a href="#metalstack.api.v2.SwitchSync">SwitchSync</a></td>
11633+
<td></td>
11634+
<td><p>LastSyncError contains information about the last unsuccessful heartbeat of the switch. </p></td>
11635+
</tr>
11636+
1162311637
</tbody>
1162411638
</table>
1162511639

@@ -11873,6 +11887,44 @@ <h3 id="metalstack.api.v2.SwitchQuery">SwitchQuery</h3>
1187311887

1187411888

1187511889

11890+
<h3 id="metalstack.api.v2.SwitchSync">SwitchSync</h3>
11891+
<p>SwitchSync summarizes information about a switch sync.</p>
11892+
11893+
11894+
<table class="field-table">
11895+
<thead>
11896+
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
11897+
</thead>
11898+
<tbody>
11899+
11900+
<tr>
11901+
<td>time</td>
11902+
<td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
11903+
<td></td>
11904+
<td><p>Time of the sync. </p></td>
11905+
</tr>
11906+
11907+
<tr>
11908+
<td>duration</td>
11909+
<td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>
11910+
<td></td>
11911+
<td><p>Duration of the sync. </p></td>
11912+
</tr>
11913+
11914+
<tr>
11915+
<td>error</td>
11916+
<td><a href="#string">string</a></td>
11917+
<td>optional</td>
11918+
<td><p>Error if any occurred. </p></td>
11919+
</tr>
11920+
11921+
</tbody>
11922+
</table>
11923+
11924+
11925+
11926+
11927+
1187611928

1187711929

1187811930
<h3 id="metalstack.api.v2.BGPState">BGPState</h3>
@@ -16075,14 +16127,14 @@ <h3 id="metalstack.infra.v2.SwitchServiceHeartbeatResponse">SwitchServiceHeartbe
1607516127

1607616128
<tr>
1607716129
<td>last_sync</td>
16078-
<td><a href="#metalstack.infra.v2.SwitchSync">SwitchSync</a></td>
16130+
<td><a href="#metalstack.api.v2.SwitchSync">metalstack.api.v2.SwitchSync</a></td>
1607916131
<td></td>
1608016132
<td><p>LastSync holds information about the last sync. </p></td>
1608116133
</tr>
1608216134

1608316135
<tr>
1608416136
<td>last_sync_error</td>
16085-
<td><a href="#metalstack.infra.v2.SwitchSync">SwitchSync</a></td>
16137+
<td><a href="#metalstack.api.v2.SwitchSync">metalstack.api.v2.SwitchSync</a></td>
1608616138
<td></td>
1608716139
<td><p>LastSyncError holds information about the last erroneous sync. </p></td>
1608816140
</tr>
@@ -16142,44 +16194,6 @@ <h3 id="metalstack.infra.v2.SwitchServiceRegisterResponse">SwitchServiceRegister
1614216194

1614316195

1614416196

16145-
<h3 id="metalstack.infra.v2.SwitchSync">SwitchSync</h3>
16146-
<p>SwitchSync summarizes information about a switch sync.</p>
16147-
16148-
16149-
<table class="field-table">
16150-
<thead>
16151-
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
16152-
</thead>
16153-
<tbody>
16154-
16155-
<tr>
16156-
<td>time</td>
16157-
<td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
16158-
<td></td>
16159-
<td><p>Time of the sync. </p></td>
16160-
</tr>
16161-
16162-
<tr>
16163-
<td>duration</td>
16164-
<td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>
16165-
<td></td>
16166-
<td><p>Duration of the sync. </p></td>
16167-
</tr>
16168-
16169-
<tr>
16170-
<td>error</td>
16171-
<td><a href="#string">string</a></td>
16172-
<td>optional</td>
16173-
<td><p>Error if any occurred. </p></td>
16174-
</tr>
16175-
16176-
</tbody>
16177-
</table>
16178-
16179-
16180-
16181-
16182-
1618316197

1618416198

1618516199

go/metalstack/api/v2/switch.pb.go

Lines changed: 124 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)