Create will send a create event to the endpoint for the record so the endpoint will create it if it doesn't exist. Update will send an update event to the endpoint for the record and fail if it doesn't exist.
FeedMonster.push_model_create_to_endpoint(Resource, EndPoint)
FeedMonster.push_model_update_to_endpoint(Resource, EndPoint)
select push_to_endpoint_name, state, count(*) ct from outbound_service_notifications where state != 'success' and created_at > NOW() - INTERVAL 60 DAY group by push_to_endpoint_name, state order by state;
select * from outbound_service_notifications where state != 'success' and created_at > NOW() - INTERVAL 60 DAY group by push_to_endpoint_name, state order by state\G
OutboundServiceNotification.where.not(state: 'success').where("created_at > ?", 60.days.ago).group(:push_to_endpoint_name).group(:state).order(:push_to_endpoint_name, :state).count
Note: remove ".not(push_to_endpoint_name: 'dex')" to include dex endpoint
OutboundServiceNotification.where.not(state: 'success').where.not(push_to_endpoint_name: 'dex').where("created_at > ?", 60.days.ago).order(:push_to_endpoint_name, :state).limit(5)