Module: Google::Cloud
- Defined in:
- lib/google-cloud-error_reporting.rb,
lib/google/cloud/error_reporting.rb,
lib/google/cloud/error_reporting/rails.rb,
lib/google/cloud/error_reporting/project.rb,
lib/google/cloud/error_reporting/service.rb,
lib/google/cloud/error_reporting/version.rb,
lib/google/cloud/error_reporting/middleware.rb,
lib/google/cloud/error_reporting/credentials.rb,
lib/google/cloud/error_reporting/error_event.rb,
lib/google/cloud/error_reporting/v1beta1/error_group_service_client.rb,
lib/google/cloud/error_reporting/v1beta1/error_stats_service_client.rb,
lib/google/cloud/error_reporting/v1beta1/report_errors_service_client.rb
Defined Under Namespace
Modules: ErrorReporting
Class Method Summary collapse
-
.error_reporting(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::ErrorReporting::Project
Create a new object for connecting to the Stackdriver Error Reporting service.
Instance Method Summary collapse
-
#error_reporting(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::ErrorReporting::Project
Create a new object for connecting to the Stackdriver Error Reporting service.
Class Method Details
.error_reporting(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::ErrorReporting::Project
Create a new object for connecting to the Stackdriver Error Reporting service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide
104 105 106 107 108 109 110 |
# File 'lib/google-cloud-error_reporting.rb', line 104 def self.error_reporting project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/error_reporting" Google::Cloud::ErrorReporting.new project: project, keyfile: keyfile, scope: scope, timeout: timeout, client_config: client_config end |
Instance Method Details
#error_reporting(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::ErrorReporting::Project
Create a new object for connecting to the Stackdriver Error Reporting service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide
58 59 60 61 62 63 |
# File 'lib/google-cloud-error_reporting.rb', line 58 def error_reporting scope: nil, timeout: nil, client_config: nil Google::Cloud.error_reporting @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |