Class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation
- Inherits:
-
Object
- Object
- Google::Apis::ClouderrorreportingV1beta1::SourceLocation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouderrorreporting_v1beta1/classes.rb,
lib/google/apis/clouderrorreporting_v1beta1/representations.rb,
lib/google/apis/clouderrorreporting_v1beta1/representations.rb
Overview
Indicates a location in the source code of the service for which errors are
reported. functionName must be provided by the application when reporting an
error, unless the error report contains a message with a supported exception
stack trace. All fields are optional for the later case.
Instance Attribute Summary collapse
-
#file_path ⇒ String
The source code filename, which can include a truncated relative path, or a full path from a production machine.
-
#function_name ⇒ String
Human-readable name of a function or method.
-
#line_number ⇒ Fixnum
1-based.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceLocation
constructor
A new instance of SourceLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SourceLocation
Returns a new instance of SourceLocation.
516 517 518 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 516 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_path ⇒ String
The source code filename, which can include a truncated relative path, or a
full path from a production machine.
Corresponds to the JSON property filePath
502 503 504 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 502 def file_path @file_path end |
#function_name ⇒ String
Human-readable name of a function or method. The value can include optional
context like the class or package name. For example, my.package.MyClass.
method in case of Java.
Corresponds to the JSON property functionName
509 510 511 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 509 def function_name @function_name end |
#line_number ⇒ Fixnum
1-based. 0 indicates that the line number is unknown.
Corresponds to the JSON property lineNumber
514 515 516 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 514 def line_number @line_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
521 522 523 524 525 |
# File 'lib/google/apis/clouderrorreporting_v1beta1/classes.rb', line 521 def update!(**args) @file_path = args[:file_path] if args.key?(:file_path) @function_name = args[:function_name] if args.key?(:function_name) @line_number = args[:line_number] if args.key?(:line_number) end |