I am looking for a service for my rails application to monitor and alert/notify based on transaction based tests. I already looked at pingdom but it doesn't support uploading files and that's crucial to my use case. what other services i can use to test and monitor my transaction. My use case is as follows:
User logs in to their iTunesConnect account via our login form
User selects multiple image(s) to upload to iTunesConnect
The images get uploaded locally
User see the preview screen to preview the images and pass validations
Final upload which is through a background service where the images get uploaded to users' iTunesConnect account.
WDT.io can be used to monitor transactions with an "on-demand timer". At the beginning of your transaction, your code makes an HTTP request to wdt.io, and then again at the end of the transaction. If the second request doesn't come in within predefined time, you'll get an alert.
I'm not familiar with iTunesConnect, so this may not help. Also, if you have multiple transactions running concurrently, this won't be of help either.
Related
Ok, I hope I don't get too beat up here for this question as it is kind of complex. At least in my view, with what I know so far. So the details first:
I built a nice app with django that brings in event data for users, utilizes that data for many things (not relevant to this question) but one of the things is that it syncs these events to the users Google calendar. I made the google app within the developer console, and it uses the provided credentials.json file to allow users to authenticate the app, thus creating individual user token.json files per user, then I have another script (not within django, just a custom python file) that runs from a cron job to automatically sync/ update the calendar info from the database to the google calendars.
Now, the new problem is having this work without my help. IE: a new user logs in and creates a profile, then if they should choose to sync to their Google calendars I have to be there, running the authentication process from my personal server. So I did that, by moving the whole app to a hosted platform and brought it up to speed in production mode.
Users can create a profile, using django-allauth it works to make an initial user account where they can fill in the rest of the profile. It does populate the token string for their account, but here is where I'm stuck.
What process is there to make the token.json file OR use the existing token string (the one it saves now on the server version) to allow the system to sync the calendars? Once the token files are created, the rest of this works. I just can't get the right answers to how django-allauth will handshake with Google and do this?
Thanks for any help!
Update: ultimately wound up using a service account with google api, and directing my users to combine the service account email (adding it as a shared user to the specific calendar) and they copy/paste the shared calendar ID in their profile on my app. All the logic now just uses this share function to sync the calendars, and it works great.
I'm working on a digital photo frame app with the new Google Photo Library API beta.
Assume that multiple devices are able to access the same album (shared album, or login with the same account), when there is a picture uploaded from one device, can other devices receive any notification regarding the new upload? If polling is needed for now (that's not really something efficient), what's the recommended interval for polling?
The platforms are Android (TV+Mobile)/iOS/tvOS
Right now there's no way to be notified of any changes to the library or albums.
You will need to poll an album (ie. list its contents) or the library to see if any new media has been added. For albums you could also just list the albums and check if the number of media inside it has changed.
The polling interval depends on your use case and how long of a wait is acceptable to your users. For example, you could run a manual refresh in the background every hour if your app isn't open and refresh more frequently when the user is interacting with your app. Maybe you could also include a 'refresh' button to trigger it manually?
Alternatively, if the entire process is handled through your application, you could also send a notification through a different notification service (Firebase Cloud Messaging) to notify your apps and server that a new media item has been added. This is something you'd need to implement yourself though.
This is definitely something that has come up before and I'd encourage you to file a feature request on our public issue tracker: https://developers.google.com/photos/library/support/how-to-get-help#missing-features
I am new to Jmeter and with the help of blogs and SOF, I could able to manage the record and parameterize the Script.
I am testing ASP.Net web application which uses Windows Authentication and AD.
The problem here is after execution in View Result Tree I can see the old user http page. For example I recorded the script with USer A and I parameterized all the varaible required to run the same script with user B. But at execution I can see User A session is loading and the data created by this transaction is corrupted which has some values of User A and User B.
I tried using Post processor >> Regular expression extractor for capturing ViewState and EventValidation and kept it back to post request now error is resolved but transaction itself is not happening. No new data created after this change.
Please help me. I am confused now what I am doing wrong here.
It seems that you have hard-coded "Authorization" header which identifies all your virtual users as "User A". If it is the case - this header needs to be removed from all the requests and you need to construct a proper one with HTTP Authorization Manager.
See Windows Authentication with Apache JMeter to learn about how to properly setup JMeter for dealing with Active Directory logins. It is possible to parametrize usernames, passwords,domains, etc. as normal using CSV Data Set Config.
I have recently started working on WSO2 API manager and I have added a user signup workflow to it by following on this link :
https://docs.wso2.com/display/AM180/Adding+a+User+Signup+Workflow
It was pretty simple and straightforward, but the thing is, in my case I am the admin as well as the user. So Once I send a signup request, I manually log on to workflow-admin console and approve the request and once i approve the request I can login to the API Store. But in a typical production environment, the admin as well as the user must get some kind of email notification so that they can approve/reject as well as login once request is approved. How do I achieve this kind of scenario wherein the user will get an email notification once his/ her request has been approved as well as the admin will get a notification once a request is sent?
I have checked the adding a workflow-extension module in the documentation:
https://docs.wso2.com/display/AM180/Adding+Workflow+Extensions
But i'm still trying to figure it out.
Looking forward to some help.
As far as I know the current release of the Business Process Server doesnt have support for email notifications for HumanTasks. But this will be available from the next release of the Business Process Server (v3.5). As a work around what you can do is create a service in the ESB to send out emails and create a BPEL workflow (with humanTasks) which will trigger this email service in the ESB. But if you can wait till the next release (which should be available by end of Aug), then this feature would be available with the new Business Process Server.
Ok I finally got it working.
Write a class in java similar to UserSignUpWSWorkflowExecutor.java, make sure it extends the UserSignUpWorkflowExecutor class in the org.wso2.carbon.apimgt.impl.workflow package. And now in the complete method of your class, check for the signup status and write the logic for sending mail here. After this step make a jar of the particular package/component and add it to the patches directory in binary file of wso2 API Manager, while doing so make sure the name of the jar is similar to the one in the plugins directory. After this Step start your API Manager and in the admin console there is a workflow-extensions.xml file. Edit that file and add give the name of jar that you just created along with its package name. save it and restart the API Manager.
Note : Enable the user sign up worflow executor by following this link first
https://docs.wso2.com/display/AM180/Adding+a+User+Signup+Workflow
I have written an application that is able to write posts from the command line, to a particular users account. This, with the required permissions, is successfully posting messages with location and places information.
My next step was to upload images to a user account, but the problem is, I'm getting the following error:
A user access token is required to request this resource.
Now the script that does the API post, does not run from a browser, but rather as a Linux service daemon implemented with PHP. This script contains a game loop, that posts messages, and uploads photos to participants accounts at certain times throughout the day, simulating a holiday their profiles are attending.
So when calling BaseFacebook::getUser from my application script, I get a result of 0, which means, that BaseFacebook::getAccessToken will return an application access token, rather than a user access token.
I checked also, and noticed that the protected method BaseFacebook::getUserAccessToken doesn't return a valid token, since the command line app has no session, and it has to post to separate different user accounts in succession, during the game loop.
As I mentioned, I am able to make posts, and even attach places to my posts, but is there a way to upload photos to different user accounts without requiring a user access token?
I understand that I can use offline_access, but this is being deprecated on 3 October 2012, which is the time when our clients application will already be running live.
The players/users of our app do however visit the application from time to time, so would it be possible to use a token from the browser, store it in our database, and just utilize that from the command line applciation?
The players/users of our app do however visit the application from time to time, so would it be possible to use a token from the browser, store it in our database, and just utilize that from the command line application?
That’s exactly the way to go.
And this document describes how to handle these token, how to get long-lived ones, etc. – https://developers.facebook.com/roadmap/offline-access-removal/
And https://developers.facebook.com/blog/post/2011/05/13/how-to--handle-expired-access-tokens/ is also something that one should have read.