(
self,
orig, # type: pycbc_result
)
| 172 | class DiagnosticsResult(Result): |
| 173 | |
| 174 | def __init__( |
| 175 | self, |
| 176 | orig, # type: pycbc_result |
| 177 | ): |
| 178 | super().__init__(orig) |
| 179 | svc_endpoints = self._orig.raw_result.get('services', None) |
| 180 | self._endpoints = {} |
| 181 | if svc_endpoints: |
| 182 | for service, endpoints in svc_endpoints.items(): |
| 183 | service_type = ServiceType(service) |
| 184 | self._endpoints[service_type] = [] |
| 185 | for endpoint in endpoints: |
| 186 | self._endpoints[service_type].append( |
| 187 | EndpointDiagnosticsReport(service_type, endpoint)) |
| 188 | |
| 189 | @property |
| 190 | def id(self) -> str: |
nothing calls this directly
no test coverage detected