Raxol.Cloud.Core (Raxol v0.5.0)

View Source

Core functionality for Raxol cloud integrations.

This module combines edge computing and monitoring capabilities, providing a unified interface for cloud operations.

Summary

Functions

Deploys an application component.

Discovers services available in the current environment.

Executes a function in the optimal location (edge or cloud).

Gets a connection to a cloud service.

Initializes the cloud core components.

Records an error or exception.

Records a metric with the given name and value.

Registers the current application as a service.

Runs a health check on the system.

Scales a service based on current metrics and conditions.

Starts all cloud services.

Returns the current status of all cloud services.

Stops all cloud services.

Triggers an alert with the given type and data.

Functions

deploy(opts)

Deploys an application component.

discover_services(opts \\ [])

Discovers services available in the current environment.

execute(fun, opts \\ [])

Executes a function in the optimal location (edge or cloud).

Options

  • :priority - Priority for execution (:speed, :reliability, :cost)
  • :location - Preferred location (:auto, :edge, :cloud)
  • :timeout - Timeout in milliseconds

get_service_connection(opts)

Gets a connection to a cloud service.

init(opts \\ [])

Initializes the cloud core components.

Options

  • :edge - Edge computing options
  • :monitoring - Monitoring options
  • :providers - List of cloud providers to enable

record_error(error, opts \\ [])

Records an error or exception.

record_metric(name, value, opts \\ [])

Records a metric with the given name and value.

register_service(opts)

Registers the current application as a service.

run_health_check(opts \\ [])

Runs a health check on the system.

scale(opts)

Scales a service based on current metrics and conditions.

start()

Starts all cloud services.

status()

Returns the current status of all cloud services.

stop()

Stops all cloud services.

trigger_alert(type, data, opts \\ [])

Triggers an alert with the given type and data.