Powershell中get-scomalert | get-member -membertype property
的部分输出:
Name MemberType Definition
---- ---------- ----------
TimeAdded Property datetime TimeAdded {get;}
TimeRaised Property datetime TimeRaised {get;}
两个字段的定义链接:alert-logging-latency
TimeRaised: 在代理上引发警报时创建的时间戳。
TimeAdded: 将警报写入OpsMgr数据库时创建的时间戳。
时间和时间的价值应如何:
Powershell中get-scomalert | select name, timeraised, timeadded
的输出:
Name TimeRaised TimeAdded
---- ---------- ---------
All Management Servers Pool Unavaila... 5/14/2018 11:25:30 AM <time raised^ > 5/14/2018 11:18:16 AM
All Management Servers Pool Unavaila... 5/14/2018 11:17:30 AM 5/14/2018 11:10:16 AM
All Management Servers Pool Unavaila... 5/14/2018 11:09:30 AM 5/14/2018 11:02:16 AM
All Management Servers Pool Unavaila... 5/14/2018 11:01:30 AM 5/14/2018 10:54:16 AM
Power Shell Script failed to run 4/30/2018 4:26:53 PM <time added^ > 4/30/2018 6:06:50 PM
Power Shell Script failed to run 4/30/2018 4:26:53 PM 4/30/2018 6:06:50 PM