2017-10-14 00:06:58 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
2025-11-09 02:30:31 +01:00
|
|
|
|
/// Process metrics information.
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// </summary>
|
2017-10-14 00:06:58 +02:00
|
|
|
|
public class ProcessMetric
|
|
|
|
|
|
{
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Process id of the process.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int PId { get; set; }
|
2017-10-14 00:06:58 +02:00
|
|
|
|
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Process type (Browser or Tab or GPU etc).
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Type { get; set; }
|
2017-10-14 00:06:58 +02:00
|
|
|
|
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// CPU usage of the process.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public CPUUsage Cpu { get; set; }
|
2017-10-14 00:06:58 +02:00
|
|
|
|
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <summary>
|
2025-11-09 02:30:31 +01:00
|
|
|
|
/// Creation time for this process in milliseconds since Unix epoch. Can exceed Int32 range and may contain fractional milliseconds.
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// </summary>
|
2025-11-09 02:30:31 +01:00
|
|
|
|
public double CreationTime { get; set; }
|
2020-05-31 03:09:54 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Memory information for the process.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public MemoryInfo Memory { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Whether the process is sandboxed on OS level.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool Sandboxed { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-02 02:43:16 +01:00
|
|
|
|
/// One of the following values:
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// untrusted | low | medium | high | unknown
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string IntegrityLevel { get; set; }
|
2025-11-02 02:43:16 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The name of the process.
|
|
|
|
|
|
/// Examples for utility: Audio Service, Content Decryption Module Service, Network Service, Video Capture, etc.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The non-localized name of the process.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ServiceName { get; set; }
|
2017-10-14 00:06:58 +02:00
|
|
|
|
}
|
2020-05-31 03:09:54 +02:00
|
|
|
|
}
|