Revision eb4ed8c6 iooclient/eos_pmd.py

b/iooclient/eos_pmd.py
49 49
        
50 50
        Usage:
51 51
        
52
        >>> pmd = eosPmd('1.2.3.4', 20007, 'password')
53
        >>> pmd.list_pm_data()
54
        [{'{'friendlyName': 'elementName',
55
          'neLocationName': Athens,
56
          'notificationType': 'pmPointList',
57
          ...
52
            >>> from iooclient.eos_pmd import * 
53
            >>> pmd = eosPmd('1.2.3.4', 20007, 'password')
54
            >>> pmd.list_pm_data()
55
            [{'{'friendlyName': 'elementName',
56
              'neLocationName': Athens,
57
              'notificationType': 'pmPointList',
58
              ...
58 59
        
59
        or
60
        or:
60 61
        
61
        >>> with eosPmd('1.2.3.4', 20007, 'password') as pmd:
62
        >>>    pmd.list_pm_data()
63
        [{'{'friendlyName': 'elementName',
64
          'neLocationName': Athens,
65
          'notificationType': 'pmPointList',
66
          ... 
62
            >>> from iooclient.eos_pmd import * 
63
            >>> with eosPmd('1.2.3.4', 20007, 'password') as pmd:
64
            >>>    pmd.list_pm_data()
65
            [{'{'friendlyName': 'elementName',
66
              'neLocationName': Athens,
67
              'notificationType': 'pmPointList',
68
              ... 
67 69
        
68 70
        @type startPeriod: String
69 71
        @param startPeriod: From when to collect PM data. Format: YYYYMMDDQH where QH in [00,96] representing 15min periods in a day.
......
120 122
        or structured python data 
121 123
        
122 124
        Usage:
123
        
124
        >>> pmd = eosPmd('1.2.3.4', 20007, 'password')
125
        >>> pmd.list_pm_point()
126
        [{'{'friendlyName': 'elementName',
127
          'neLocationName': Athens,
128
          'notificationType': 'pmPointList',
129
          ...
130
        
131
        or
132
        
133
        >>> with eosPmd('1.2.3.4', 20007, 'password') as pmd:
134
        >>>    pmd.list_pm_point()
135
        [{'{'friendlyName': 'elementName',
136
          'neLocationName': Athens,
137
          'notificationType': 'pmPointList',
138
          ...
125
            
126
            >>> from iooclient.eos_pmd import * 
127
            >>> pmd = eosPmd('1.2.3.4', 20007, 'password')
128
            >>> pmd.list_pm_point()
129
            [{'{'friendlyName': 'elementName',
130
              'neLocationName': Athens,
131
              'notificationType': 'pmPointList',
132
              ...
133
            
134
        or:
135
            
136
            >>> from iooclient.eos_pmd import * 
137
            >>> with eosPmd('1.2.3.4', 20007, 'password') as pmd:
138
            >>>    pmd.list_pm_point()
139
            [{'{'friendlyName': 'elementName',
140
              'neLocationName': Athens,
141
              'notificationType': 'pmPointList',
142
            ...
139 143
        
140 144
        @type neNames: A list of strings
141 145
        @param neNames: A list of NetworkElement names with pmPoints assigned. If omitted, all NEs are assumed

Also available in: Unified diff