Class: DatadogAPIClient::V1::NotebooksResponsePage
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::NotebooksResponsePage
- Defined in:
- lib/datadog_api_client/v1/models/notebooks_response_page.rb
Overview
Pagination metadata returned by the API.
Instance Attribute Summary collapse
-
#total_count ⇒ Object
The total number of notebooks that would be returned if the request was not filtered by ‘start` and `count` parameters.
-
#total_filtered_count ⇒ Object
The total number of notebooks returned.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ NotebooksResponsePage
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ NotebooksResponsePage
Initializes the object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_page.rb', line 65 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::NotebooksResponsePage` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::NotebooksResponsePage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'total_count') self.total_count = attributes[:'total_count'] end if attributes.key?(:'total_filtered_count') self.total_filtered_count = attributes[:'total_filtered_count'] end end |
Instance Attribute Details
#total_count ⇒ Object
The total number of notebooks that would be returned if the request was not filtered by ‘start` and `count` parameters.
27 28 29 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_page.rb', line 27 def total_count @total_count end |
#total_filtered_count ⇒ Object
The total number of notebooks returned.
30 31 32 |
# File 'lib/datadog_api_client/v1/models/notebooks_response_page.rb', line 30 def total_filtered_count @total_filtered_count end |