[Alarm] Update type match check.

* JIRA: PTSDK-1141, PTSDK-1142
Merge pull request #189 from lpguo/next

[Alarm] Update type match check.