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/async_error_reporter.rb
Defined Under Namespace
Modules: ErrorReporting
Class Method Summary collapse
-
.error_reporting(project_id = nil, credentials = nil, scope: nil, timeout: nil) ⇒ Google::Cloud::ErrorReporting::Project
Create a new object for connecting to the Error Reporting service.
Instance Method Summary collapse
-
#error_reporting(scope: nil, timeout: nil) ⇒ Google::Cloud::ErrorReporting::Project
Create a new object for connecting to the Error Reporting service.
Class Method Details
.error_reporting(project_id = nil, credentials = nil, scope: nil, timeout: nil) ⇒ Google::Cloud::ErrorReporting::Project
Create a new object for connecting to the Error Reporting service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
106 107 108 109 110 111 |
# File 'lib/google-cloud-error_reporting.rb', line 106 def self.error_reporting project_id = nil, credentials = nil, scope: nil, timeout: nil require "google/cloud/error_reporting" Google::Cloud::ErrorReporting.new project_id: project_id, credentials: credentials, scope: scope, timeout: timeout end |
Instance Method Details
#error_reporting(scope: nil, timeout: nil) ⇒ Google::Cloud::ErrorReporting::Project
Create a new object for connecting to the Error Reporting service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
60 61 62 63 64 65 |
# File 'lib/google-cloud-error_reporting.rb', line 60 def error_reporting scope: nil, timeout: nil timeout ||= @timeout Google::Cloud.error_reporting @project, @keyfile, scope: scope, timeout: timeout end |