Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Cpu.cs
1
using
System.Threading.Tasks;
2
using
Waher.Reports
;
3
using
Waher.Service.IoTBroker.Sources.Reports.Performance.Commands
;
4
5
namespace
Waher.Service.IoTBroker.Sources.Reports.Performance
6
{
10
public
class
Cpu
:
ServerAdminReportNode
11
{
16
public
Cpu
(
PerformanceRoot
Parent
)
17
: base(
"CPU"
,
Parent
)
18
{
19
}
20
26
public
override
Task<ExecuteReport>
GetExecuteCommand
()
27
{
28
return
Task.FromResult<
ExecuteReport
>(CreateCommand(
this
));
29
}
30
31
internal
static
SampleStatisticsCommand
CreateCommand(
ServerAdminReportNode
Node)
32
{
33
return
new
SampleStatisticsCommand
(
"CPU"
, 7,
"CPU usage"
,
"%"
, 0, 100,
"1 min"
, Node);
34
}
35
}
36
}
Waher.Reports.ExecuteReport
Abstract base class for commands executing a report.
Definition:
ExecuteReport.cs:13
Waher.Reports.ReportNode.Parent
INode Parent
Parent Node, or null if a root node.
Definition:
ReportNode.cs:107
Waher.Service.IoTBroker.Sources.Reports.Performance.Commands.SampleStatisticsCommand
Executes the HTTP Statistics report.
Definition:
SampleStatisticsCommand.cs:24
Waher.Service.IoTBroker.Sources.Reports.Performance.Cpu
Report on CPU usage.
Definition:
Cpu.cs:11
Waher.Service.IoTBroker.Sources.Reports.Performance.Cpu.GetExecuteCommand
override Task< ExecuteReport > GetExecuteCommand()
Gets the command object to execute a report. If null is returned, the report node is just a group pla...
Definition:
Cpu.cs:26
Waher.Service.IoTBroker.Sources.Reports.Performance.Cpu.Cpu
Cpu(PerformanceRoot Parent)
Report on CPU usage.
Definition:
Cpu.cs:16
Waher.Service.IoTBroker.Sources.Reports.Performance.PerformanceRoot
Root node of reports.
Definition:
PerformanceRoot.cs:11
Waher.Service.IoTBroker.Sources.Reports.ServerAdminReportNode
Abstract base class for server report nodes, requiring admin privileges to be seen and executed.
Definition:
ServerAdminReportNode.cs:12
Waher.Reports
Definition:
ExecuteReportFileCommand.cs:13
Waher.Service.IoTBroker.Sources.Reports.Performance.Commands
Definition:
LockedObjectsCommand.cs:13
Waher.Service.IoTBroker.Sources.Reports.Performance
Definition:
All.cs:6
Waher.Service.IoTBroker
Sources
Reports
Performance
Cpu.cs
Generated by
1.9.5