Class: ApolloDeploySignalSdkRails::GetTopicPerformanceQuery
- Inherits:
-
Object
- Object
- ApolloDeploySignalSdkRails::GetTopicPerformanceQuery
- Defined in:
- lib/apollo_deploy_signal_sdk_rails/types.rb
Overview
Schema type: GetTopicPerformanceQuery
Instance Attribute Summary collapse
-
#project_id ⇒ String
Required for session auth; ignored for API key auth.
-
#window ⇒ String
Time window.
Class Method Summary collapse
-
.from_json(attributes) ⇒ GetTopicPerformanceQuery
Create an instance from a parsed JSON hash.
Instance Method Summary collapse
-
#initialize(window: nil, project_id: nil) ⇒ GetTopicPerformanceQuery
constructor
A new instance of GetTopicPerformanceQuery.
-
#to_h ⇒ Hash
A hash representation of this object.
Constructor Details
#initialize(window: nil, project_id: nil) ⇒ GetTopicPerformanceQuery
Returns a new instance of GetTopicPerformanceQuery.
4750 4751 4752 4753 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4750 def initialize(window: nil, project_id: nil) @window = window @project_id = project_id end |
Instance Attribute Details
#project_id ⇒ String
Returns Required for session auth; ignored for API key auth.
4747 4748 4749 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4747 def project_id @project_id end |
#window ⇒ String
Returns Time window.
4745 4746 4747 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4745 def window @window end |
Class Method Details
.from_json(attributes) ⇒ GetTopicPerformanceQuery
Create an instance from a parsed JSON hash.
4766 4767 4768 4769 4770 4771 4772 4773 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4766 def self.from_json(attributes) return nil unless attributes.is_a?(Hash) new( window: attributes.key?("window") ? attributes["window"] : attributes[:window], project_id: attributes.key?("projectId") ? attributes["projectId"] : attributes[:project_id], ) end |
Instance Method Details
#to_h ⇒ Hash
Returns a hash representation of this object.
4756 4757 4758 4759 4760 4761 |
# File 'lib/apollo_deploy_signal_sdk_rails/types.rb', line 4756 def to_h { window: @window, project_id: @project_id, }.compact end |