Listing messages with more precision than yyyy/mm/dd - google-api

I'm trying to get all the messages sent to a user after a certain point in time, by using the Gmail API. I've successfully retrieved messages after a certain date by using the query q=after:2015/01/19 in the API Explorer.
I would like to be more specific than this and specify an hour and a minute of the day. Is this possible? I ask since the Advanced Search-specification only contains the most useful operators.

You can use a search query to list messages after a certain date with second accuracy.
Use the search term after:SOME_TIME_IN_SECONDS_SINCE_EPOCH. Gmail supports the after keyword using a timestamp instead of the yyyy/mm/dd format.

Related

Query on Ali baba Cloud Billing API BOA

I was trying to get some data by using one of the api call QueryInstanceBill
The resulted JSON seems to be long and there is no date column to filter on how i got those many records.
Could someone here help me out
To be able to filter by date, The billing date only used when Granularity is DAILY,format: YYYY-MM-DD. Example 2020-07-29
You can also use the "BillingCycle" field in the request:
The billing cycle. Format: YYYY-MM. Example: 2020-07
Documentation:
https://www.alibabacloud.com/help/doc-detail/100400.htm
QueryInstanceBill API returns data for billing cycle which is usually for a month (YYYY-MM)
If you want data for a particular date then in request parameter provide the value for field "BillingDate" in format: YYYY-MM-DD
and the value for field "Granularity" should be "DAILY"
Check out the documentation:
https://www.alibabacloud.com/help/doc-detail/100400.htm
Also, you can use OpenAPI Explorer, I have provided BillingCycle as "2019-10", BillingDate as "2019-10-15" and Granularity as "DAILY":
https://api.aliyun.com/#/?product=BssOpenApi&version=2017-12-14&api=QueryInstanceBill&params={%22RegionId%22:%22cn-hangzhou%22,%22Granularity%22:%22DAILY%22,%22BillingCycle%22:%222019-10%22,%22BillingDate%22:%222019-10-15%22}&tab=DEMO&lang=JAVA

Why does Stackdriver logging does not respect the advanced filter condition for timestamp?

I have selected 'No limit' then I wrote a simply filter in Logs Viewer console
timestamp>="2020-01-30T15:00:00Z" AND timestamp<="2020-01-30T16:00:00Z"
There is one log for this condition but it returned nothing in the console. When I changed the filter as follows,
timestamp>="2020-01-30T10:00:00Z" AND timestamp<="2020-01-30T16:00:00Z"
it shows me the result for timestamp>="2020-01-30T15:00:00Z" AND timestamp<="2020-01-30T16:00:00Z".
And timestamp>="2020-01-30T09:00:00Z" AND timestamp<="2020-01-30T16:00:00Z" shows result for timestamp>="2020-01-30T14:00:00Z" AND timestamp<="2020-01-30T16:00:00Z".
What am I doing wrong?
For the base of my answer, I will be using this documentation on advanced logs queries as the document shows you how to write advanced logs queries, which are the expressions that can specify a set of log entries from any number of logs.
To begin, the timestamp field type that you are using permits query value string in RFC 3339 or ISO 8601 format. In your case, you are using the RFC 3339 type.
In query expressions, timestamps in RFC 3339 format can specify a timezone with "Z" or ±hh:mm. Also, timestamps are represented to nanosecond accuracy.
More importantly, when writing a query with a timestamp, you must also select No limit from the time-range selector below the search-query box. Check image below to have a visual.
So overall, there is nothing wrong with your query search:
timestamp>="2020-01-30T15:00:00Z" AND timestamp<="2020-01-30T16:00:00Z"
Just make sure that you have the No limit selected from the time-range selector.
If that still does not work for you, then you can try writing the same query search in a different format, like this:
timestamp >= "2020-01-30T15:00:00Z" timestamp <= "2020-01-30T16:00:00Z"
I hope this helps!

Microsoft Graph API: Filter messages received last month

I was wondering if Microsoft Graph has filtering available to retrieve emails only received last month that is from 1st day of last month to last day of last month.
Also, I save custom user properties with each email called "CompletedTime". I would also like to know if there is any filtering which would only pull emails which has value in custom user property "CompletedTime".
Thank you in advance.
KQL has a reserved keyword for last month https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference so something like
https://graph.microsoft.com/v1.0/me/messages?$search="received:\"last month\""&$select=subject,receivedDateTime&$Top=1000
Should work to return the last months email, you could also do a filter or a search using a date range.
Also, I save custom user properties with each email called "CompletedTime". I would also like to know if there is any filtering which would only pull emails which has value in custom user property "CompletedTime".
If you know what the extended property representation of the property is then you can use a Filter on that. (If you don't know what the extended property is then use a MAPI editor like OutlookSpy of mfcmapi to work it out.

Capture only the updated value

We are getting only the updated record using Time based Filter option in Integration Center?
How to get only the updated field value from "HCM SAP SuccessFactor" using ETL tool "Integration center"?
You must use the last modified date if you want to have records on a specific date. And you can even further filter them via events and events reasons.

Facebook Graph API feed order by created_time

I`m using query like
me/feed?fields=id,status_type,link,full_picture,type,description,name&since=2014-08-28T11:24:13&limit=30
But API response contains latest post at top
I want to see the post that created after 2014-08-28
What can I do for it?
As https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#paging outlines, you have to use Unix timestamps for the since parameter:
since : A Unix timestamp or strtotime data value that points to the start of the range of time-based data.

Resources