<p>item.Status.ContainerStatuses.RestartCount doesn't exist. I cannot find the command. Reinstalling the nuget-package or updating it did not work either.</p>
<p>Down there I added the problem I have and the package I use. Sorry if my english is kinda rusty.</p>
<p><a href="https://i.stack.imgur.com/hKkTa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hKkTa.png" alt="the package I use" /></a></p>
<p><a href="https://i.stack.imgur.com/e2Hty.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e2Hty.png" alt="the problem I have" /></a></p>

Lukas Zauner
<p><code>ContainerStatuses</code> is a collection of <code>ContainerStatus</code>, not a <code>ContainerStatus</code> itself. You must choose from which container you want the <code>RestartCount</code>, per example:</p>
<pre><code> int restarts = item.Status.ContainerStatuses[0].RestartCount;
</code></pre>
