def _scan(self, initial=False): started_at = IMLDateTime.utcnow().isoformat() audit = local.LocalAudit() # Only set resource_locations if we have the management package try: from chroma_agent.action_plugins import manage_targets resource_locations = manage_targets.get_resource_locations() except ImportError: resource_locations = None mounts = self._scan_mounts() # FIXME: HYD-1095 we should be sending a delta instead of a full dump every time # FIXME: At this time the 'capabilities' attribute is unused on the manager return { "started_at": started_at, "agent_version": agent_version(), "capabilities": plugin_manager.ActionPluginManager().capabilities, "metrics": audit.metrics(), "properties": audit.properties(), "mounts": mounts, "resource_locations": resource_locations, }
def _scan(self, initial=False): started_at = IMLDateTime.utcnow().isoformat() audit = local.LocalAudit() # FIXME: HYD-1095 we should be sending a delta instead of a full dump every time # FIXME: At this time the 'capabilities' attribute is unused on the manager return { "started_at": started_at, "agent_version": agent_version(), "capabilities": plugin_manager.ActionPluginManager().capabilities, "metrics": audit.metrics(), "properties": audit.properties(), }