AnalyzerModule.analyze

You're seeing just the function analyze, go back to AnalyzerModule module for more information.
Link to this function

analyze(url, source, options)

View Source

Specs

analyze(binary() | maybe_improper_list(), any(), any()) :: {:ok, map()}
Link to this function

analyze(urls, source \\ "lei", start_time \\ DateTime.utc_now(), options \\ %{})

View Source

Specs

analyze([binary()], any(), any(), any()) :: {:ok, map()}

analyze/3: returns the LowEndInsight report as JSON for multiple_repos. Takes in a "list" of urls, a source id for the calling client, and the start_time of analysis as an optional way to capture the time actually started at whatever the client is (e.g. an async API).

Returns Map.

Examples

  iex> {:ok, report} = AnalyzerModule.analyze(["https://github.com/kitplummer/xmpp4rails","https://github.com/kitplummer/lita-cron"], "iex")
  iex> _count = report[:metadata][:repo_count]
  2