lib/twilio-ruby/rest/monitor/v1/event.rb in twilio-ruby-5.27.0 vs lib/twilio-ruby/rest/monitor/v1/event.rb in twilio-ruby-5.27.1

- old
+ new

@@ -25,26 +25,25 @@ ## # Lists EventInstance records from the API as a list. # Unlike stream(), this operation is eager and will load `limit` records into # memory before returning. - # @param [String] actor_sid Only include Events initiated by this Actor. Useful + # @param [String] actor_sid Only include events initiated by this Actor. Useful # for auditing actions taken by specific users or API credentials. - # @param [String] event_type Only include Events of this EventType. - # @param [String] resource_sid Only include Events referring to this resource. + # @param [String] event_type Only include events of this [Event + # Type](https://www.twilio.com/docs/usage/monitor-events#event-types). + # @param [String] resource_sid Only include events that refer to this resource. # Useful for discovering the history of a specific resource. - # @param [String] source_ip_address Only include Events that originated from this + # @param [String] source_ip_address Only include events that originated from this # IP address. Useful for tracking suspicious activity originating from the API or # the Twilio Console. - # @param [Time] start_date Only show events on or after this date. Useful in - # combination with `EndDate` to define a date-range of events. Input is a [UTC ISO - # 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is - # ignored by the filter. - # @param [Time] end_date Only show events on or before this date. Useful in - # combination with `StartDate` to define a date-range of events. Input is a [UTC - # ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day - # is ignored by the filter. + # @param [Time] start_date Only include events that occurred on or after this + # date. Specify the date in GMT and [ISO + # 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # @param [Time] end_date Only include events that occurred on or before this date. + # Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) + # format. # @param [Integer] limit Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit # @param [Integer] page_size Number of records to fetch per request, when # not set will use the default value of 50 records. If no page_size is defined # but a limit is defined, stream() will attempt to read the limit with the most @@ -65,26 +64,25 @@ ## # Streams EventInstance records from the API as an Enumerable. # This operation lazily loads records as efficiently as possible until the limit # is reached. - # @param [String] actor_sid Only include Events initiated by this Actor. Useful + # @param [String] actor_sid Only include events initiated by this Actor. Useful # for auditing actions taken by specific users or API credentials. - # @param [String] event_type Only include Events of this EventType. - # @param [String] resource_sid Only include Events referring to this resource. + # @param [String] event_type Only include events of this [Event + # Type](https://www.twilio.com/docs/usage/monitor-events#event-types). + # @param [String] resource_sid Only include events that refer to this resource. # Useful for discovering the history of a specific resource. - # @param [String] source_ip_address Only include Events that originated from this + # @param [String] source_ip_address Only include events that originated from this # IP address. Useful for tracking suspicious activity originating from the API or # the Twilio Console. - # @param [Time] start_date Only show events on or after this date. Useful in - # combination with `EndDate` to define a date-range of events. Input is a [UTC ISO - # 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is - # ignored by the filter. - # @param [Time] end_date Only show events on or before this date. Useful in - # combination with `StartDate` to define a date-range of events. Input is a [UTC - # ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day - # is ignored by the filter. + # @param [Time] start_date Only include events that occurred on or after this + # date. Specify the date in GMT and [ISO + # 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # @param [Time] end_date Only include events that occurred on or before this date. + # Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) + # format. # @param [Integer] limit Upper limit for the number of records to return. stream() # guarantees to never return more than limit. Default is no limit. # @param [Integer] page_size Number of records to fetch per request, when # not set will use the default value of 50 records. If no page_size is defined # but a limit is defined, stream() will attempt to read the limit with the most @@ -121,26 +119,25 @@ end ## # Retrieve a single page of EventInstance records from the API. # Request is executed immediately. - # @param [String] actor_sid Only include Events initiated by this Actor. Useful + # @param [String] actor_sid Only include events initiated by this Actor. Useful # for auditing actions taken by specific users or API credentials. - # @param [String] event_type Only include Events of this EventType. - # @param [String] resource_sid Only include Events referring to this resource. + # @param [String] event_type Only include events of this [Event + # Type](https://www.twilio.com/docs/usage/monitor-events#event-types). + # @param [String] resource_sid Only include events that refer to this resource. # Useful for discovering the history of a specific resource. - # @param [String] source_ip_address Only include Events that originated from this + # @param [String] source_ip_address Only include events that originated from this # IP address. Useful for tracking suspicious activity originating from the API or # the Twilio Console. - # @param [Time] start_date Only show events on or after this date. Useful in - # combination with `EndDate` to define a date-range of events. Input is a [UTC ISO - # 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day is - # ignored by the filter. - # @param [Time] end_date Only show events on or before this date. Useful in - # combination with `StartDate` to define a date-range of events. Input is a [UTC - # ISO 8601 Timestamp](http://en.wikipedia.org/wiki/ISO_8601#UTC), but time of day - # is ignored by the filter. + # @param [Time] start_date Only include events that occurred on or after this + # date. Specify the date in GMT and [ISO + # 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + # @param [Time] end_date Only include events that occurred on or before this date. + # Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) + # format. # @param [String] page_token PageToken provided by the API # @param [Integer] page_number Page Number, this value is simply for client state # @param [Integer] page_size Number of records to return, defaults to 50 # @return [Page] Page of EventInstance def page(actor_sid: :unset, event_type: :unset, resource_sid: :unset, source_ip_address: :unset, start_date: :unset, end_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset) @@ -214,11 +211,11 @@ class EventContext < InstanceContext ## # Initialize the EventContext # @param [Version] version Version that contains the resource - # @param [String] sid A 34 character string that uniquely identifies this event. + # @param [String] sid The SID of the Event resource to fetch. # @return [EventContext] EventContext def initialize(version, sid) super(version) # Path Solution @@ -259,11 +256,11 @@ class EventInstance < InstanceResource ## # Initialize the EventInstance # @param [Version] version Version that contains the resource # @param [Hash] payload payload that contains response from Twilio - # @param [String] sid A 34 character string that uniquely identifies this event. + # @param [String] sid The SID of the Event resource to fetch. # @return [EventInstance] EventInstance def initialize(version, payload, sid: nil) super(version) # Marshaled Properties @@ -299,53 +296,53 @@ end @instance_context end ## - # @return [String] A 34 character string identifying the Account for which this Event was recorded. + # @return [String] The SID of the Account that created the resource def account_sid @properties['account_sid'] end ## - # @return [String] If available, a 34 character string identifying the actor that caused this event. May be null. + # @return [String] The SID of the actor that caused the event, if available def actor_sid @properties['actor_sid'] end ## - # @return [String] The type of actor that caused this event + # @return [String] The type of actor that caused the event def actor_type @properties['actor_type'] end ## - # @return [String] A human-readable description of the event. May be null. + # @return [String] A description of the event def description @properties['description'] end ## - # @return [Hash] A freeform json object encoding additional data about the event + # @return [Hash] A JSON string that represents an object with additional data about the event def event_data @properties['event_data'] end ## - # @return [Time] The date-time the event was recorded + # @return [Time] The ISO 8601 date and time in GMT when the event was recorded def event_date @properties['event_date'] end ## - # @return [String] The event's type, as a string. + # @return [String] The event's type def event_type @properties['event_type'] end ## - # @return [String] A 34 character string identifying the resource that was affected. + # @return [String] The SID of the resource that was affected def resource_sid @properties['resource_sid'] end ## @@ -353,17 +350,17 @@ def resource_type @properties['resource_type'] end ## - # @return [String] A 34 character string that uniquely identifies this event. + # @return [String] The unique string that identifies the resource def sid @properties['sid'] end ## - # @return [String] The originating system or interface that caused the event. web for events caused by user action in the Twilio Console. api for events caused through a request to the REST API. twilio for events caused by an automated or internal Twilio system. + # @return [String] The originating system or interface that caused the event def source @properties['source'] end ## @@ -371,16 +368,16 @@ def source_ip_address @properties['source_ip_address'] end ## - # @return [String] The url + # @return [String] The absolute URL of the resource that was affected def url @properties['url'] end ## - # @return [String] The links + # @return [String] The absolute URLs of related resources def links @properties['links'] end ## \ No newline at end of file