/
OnmsSnmpInterface.ts
63 lines (45 loc) · 1.52 KB
/
OnmsSnmpInterface.ts
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
63
import {Moment} from 'moment';
import {IHasUrlValue} from '../api/IHasUrlValue';
import {OnmsCollectType} from './OnmsCollectType';
import {OnmsSnmpStatusType} from './OnmsSnmpStatusType';
import {PhysAddr} from './PhysAddr';
/**
* Represents an OpenNMS SNMP interface.
* @module OnmsSnmpInterface
*/
export class OnmsSnmpInterface implements IHasUrlValue {
/** the interface ID */
public id?: number;
/** the physical (MAC) address of the interface */
public physAddr?: PhysAddr;
/** the node associated with this interface */
public node?: any;
/** the SNMP interface index */
public ifIndex?: number;
/** the description of the interface */
public ifDescr?: string;
/** the type of interface */
public ifType?: number;
/** the name of the interface */
public ifName?: string;
/** the speed of the interface */
public ifSpeed?: number;
/** the administrative status of the interface */
public ifAdminStatus?: OnmsSnmpStatusType;
/** the operator status of the interface */
public ifOperStatus?: OnmsSnmpStatusType;
/** the alias of the interface */
public ifAlias?: string;
/** the last time the SNMP interface was provisioned */
public lastCapsdPoll?: Moment;
/** whether the SNMP interface will be collected */
public collect?: OnmsCollectType;
/** whether the interface is set to poll */
public poll?: boolean;
/** the last time the SNMP interface was polled */
public lastSnmpPoll?: Moment;
/** @inheritdoc */
public get urlValue() {
return String(this.id);
}
}