-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleControlAlert.cs
More file actions
62 lines (54 loc) · 1.68 KB
/
Copy pathExampleControlAlert.cs
File metadata and controls
62 lines (54 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.Xml.Linq;
using LabTech.Interfaces;
namespace Example.CustomAlerts
{
public class ExampleControlAlert : IControlAlert
{
private IControlCenter controlCenterHost;
// This property is used to display a name for the custom alert, in the alert type selection list, within the Control Center.
public string AlertName
{
get
{
return "CrankCall Voice";
}
}
// This number is set to one of the Alert Action Types and is used to control how the LabTech system creates the alert.
public int AlertNumber
{
get
{
return 8;
}
}
// Decommision is called when the Control Center is closing and is used to clean up objects created by the plugin.
public void Decommision()
{
controlCenterHost = null;
}
// Initialize is called when the Control Center is opened and is used to load properties, set variables and perform any other required operations for your plugin to integrate properly.
// After initialization your new alert type will be found in the alert templates section
// These are found in Dashboard -> Management -> Alert Templates
// From here you can either modify an existing Template or create a new one. Either way right clicking on the listview will allow you
// to add a "New Alert" and select the alert you have created.
// Be sure that the timeframe of your template is within the hours of your testing.
public void Initialize(LabTech.Interfaces.IControlCenter host)
{
controlCenterHost = host;
}
public string Name
{
get
{
return "CrankCall Voice";
}
}
}
}