blob: d3dee4783b57d3b943405d53806edc610a3ed12d [file] [log] [blame]
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="gmailpostmastertools_v1beta1.html">Gmail Postmaster Tools API</a> . <a href="gmailpostmastertools_v1beta1.domains.html">domains</a> . <a href="gmailpostmastertools_v1beta1.domains.trafficStats.html">trafficStats</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070080<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Get traffic statistics for a domain on a specific date. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.</p>
83<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070084 <code><a href="#list">list(parent, endDate_month=None, startDate_day=None, pageSize=None, endDate_year=None, startDate_year=None, startDate_month=None, pageToken=None, endDate_day=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">List traffic statistics for all available days. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.</p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070086<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096 <code class="details" id="get">get(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097 <pre>Get traffic statistics for a domain on a specific date. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070098
99Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 name: string, The resource name of the traffic statistics to get. E.g., domains/mymail.mydomain.com/trafficStats/20160807. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106Returns:
107 An object of the form:
108
109 { # Email traffic statistics pertaining to a specific date.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700110 &quot;dmarcSuccessRatio&quot;: 3.14, # The ratio of mail that passed [DMARC](https://dmarc.org/) alignment checks vs all mail received from the domain that successfully authenticated with either of [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111 &quot;inboundEncryptionRatio&quot;: 3.14, # The ratio of incoming mail (to Gmail), that passed secure transport (TLS) vs all mail received from that domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112 &quot;userReportedSpamRatio&quot;: 3.14, # The ratio of user-report spam vs. email that was sent to the inbox. This metric only pertains to emails authenticated by [DKIM](http://www.dkim.org/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700113 &quot;spfSuccessRatio&quot;: 3.14, # The ratio of mail that successfully authenticated with SPF vs. all mail that attempted to authenticate with [SPF](http://www.openspf.org/). Spoofed mail is excluded.
114 &quot;spammyFeedbackLoops&quot;: [ # Spammy [Feedback loop identifiers] (https://support.google.com/mail/answer/6254652) with their individual spam rates. This metric only pertains to traffic that is authenticated by [DKIM](http://www.dkim.org/).
115 { # [Feedback loop](https://support.google.com/mail/answer/6254652) identifier information.
116 &quot;spamRatio&quot;: 3.14, # The ratio of user marked spam messages with the identifier vs the total number of inboxed messages with that identifier.
117 &quot;id&quot;: &quot;A String&quot;, # Feedback loop identifier that uniquely identifies individual campaigns.
118 },
119 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700120 &quot;deliveryErrors&quot;: [ # Delivery errors for the domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
121 { # Metric on a particular delivery error type.
122 &quot;errorRatio&quot;: 3.14, # The ratio of messages where the error occurred vs all authenticated traffic.
123 &quot;errorType&quot;: &quot;A String&quot;, # The type of delivery error.
124 &quot;errorClass&quot;: &quot;A String&quot;, # The class of delivery error.
125 },
126 ],
127 &quot;ipReputations&quot;: [ # Reputation information pertaining to the IP addresses of the email servers for the domain. There is exactly one entry for each reputation category except REPUTATION_CATEGORY_UNSPECIFIED.
128 { # IP Reputation information for a set of IPs in a specific reputation category.
129 &quot;reputation&quot;: &quot;A String&quot;, # The reputation category this IP reputation represents.
130 &quot;sampleIps&quot;: [ # A sample of IPs in this reputation category.
131 &quot;A String&quot;,
132 ],
133 &quot;numIps&quot;: &quot;A String&quot;, # Total number of unique IPs in this reputation category. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
134 },
135 ],
136 &quot;name&quot;: &quot;A String&quot;, # The resource name of the traffic statistics. Traffic statistic names have the form `domains/{domain}/trafficStats/{date}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com) of the domain this traffic statistics pertains to and date is the date in yyyymmdd format that these statistics corresponds to. For example: domains/mymail.mydomain.com/trafficStats/20160807
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700137 &quot;outboundEncryptionRatio&quot;: 3.14, # The ratio of outgoing mail (from Gmail) that was accepted over secure transport (TLS).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700138 &quot;dkimSuccessRatio&quot;: 3.14, # The ratio of mail that successfully authenticated with DKIM vs. all mail that attempted to authenticate with [DKIM](http://www.dkim.org/). Spoofed mail is excluded.
139 &quot;domainReputation&quot;: &quot;A String&quot;, # Reputation of the domain.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 }</pre>
141</div>
142
143<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700144 <code class="details" id="list">list(parent, endDate_month=None, startDate_day=None, pageSize=None, endDate_year=None, startDate_year=None, startDate_month=None, pageToken=None, endDate_day=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 <pre>List traffic statistics for all available days. Returns PERMISSION_DENIED if user does not have permission to access TrafficStats for the domain.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700146
147Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700148 parent: string, The resource name of the domain whose traffic statistics we&#x27;d like to list. It should have the form `domains/{domain_name}`, where domain_name is the fully qualified domain name. (required)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700149 endDate_month: integer, Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
150 startDate_day: integer, Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700151 pageSize: integer, Requested page size. Server may return fewer TrafficStats than requested. If unspecified, server will pick an appropriate default.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700152 endDate_year: integer, Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
153 startDate_year: integer, Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
154 startDate_month: integer, Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
155 pageToken: string, The next_page_token value returned from a previous List request, if any. This is the value of ListTrafficStatsResponse.next_page_token returned from the previous call to `ListTrafficStats` method.
156 endDate_day: integer, Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700157 x__xgafv: string, V1 error format.
158 Allowed values
159 1 - v1 error format
160 2 - v2 error format
161
162Returns:
163 An object of the form:
164
165 { # Response message for ListTrafficStats.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700166 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 &quot;trafficStats&quot;: [ # The list of TrafficStats.
168 { # Email traffic statistics pertaining to a specific date.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 &quot;dmarcSuccessRatio&quot;: 3.14, # The ratio of mail that passed [DMARC](https://dmarc.org/) alignment checks vs all mail received from the domain that successfully authenticated with either of [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700170 &quot;inboundEncryptionRatio&quot;: 3.14, # The ratio of incoming mail (to Gmail), that passed secure transport (TLS) vs all mail received from that domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 &quot;userReportedSpamRatio&quot;: 3.14, # The ratio of user-report spam vs. email that was sent to the inbox. This metric only pertains to emails authenticated by [DKIM](http://www.dkim.org/).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700172 &quot;spfSuccessRatio&quot;: 3.14, # The ratio of mail that successfully authenticated with SPF vs. all mail that attempted to authenticate with [SPF](http://www.openspf.org/). Spoofed mail is excluded.
173 &quot;spammyFeedbackLoops&quot;: [ # Spammy [Feedback loop identifiers] (https://support.google.com/mail/answer/6254652) with their individual spam rates. This metric only pertains to traffic that is authenticated by [DKIM](http://www.dkim.org/).
174 { # [Feedback loop](https://support.google.com/mail/answer/6254652) identifier information.
175 &quot;spamRatio&quot;: 3.14, # The ratio of user marked spam messages with the identifier vs the total number of inboxed messages with that identifier.
176 &quot;id&quot;: &quot;A String&quot;, # Feedback loop identifier that uniquely identifies individual campaigns.
177 },
178 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700179 &quot;deliveryErrors&quot;: [ # Delivery errors for the domain. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
180 { # Metric on a particular delivery error type.
181 &quot;errorRatio&quot;: 3.14, # The ratio of messages where the error occurred vs all authenticated traffic.
182 &quot;errorType&quot;: &quot;A String&quot;, # The type of delivery error.
183 &quot;errorClass&quot;: &quot;A String&quot;, # The class of delivery error.
184 },
185 ],
186 &quot;ipReputations&quot;: [ # Reputation information pertaining to the IP addresses of the email servers for the domain. There is exactly one entry for each reputation category except REPUTATION_CATEGORY_UNSPECIFIED.
187 { # IP Reputation information for a set of IPs in a specific reputation category.
188 &quot;reputation&quot;: &quot;A String&quot;, # The reputation category this IP reputation represents.
189 &quot;sampleIps&quot;: [ # A sample of IPs in this reputation category.
190 &quot;A String&quot;,
191 ],
192 &quot;numIps&quot;: &quot;A String&quot;, # Total number of unique IPs in this reputation category. This metric only pertains to traffic that passed [SPF](http://www.openspf.org/) or [DKIM](http://www.dkim.org/).
193 },
194 ],
195 &quot;name&quot;: &quot;A String&quot;, # The resource name of the traffic statistics. Traffic statistic names have the form `domains/{domain}/trafficStats/{date}`, where domain_name is the fully qualified domain name (i.e., mymail.mydomain.com) of the domain this traffic statistics pertains to and date is the date in yyyymmdd format that these statistics corresponds to. For example: domains/mymail.mydomain.com/trafficStats/20160807
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700196 &quot;outboundEncryptionRatio&quot;: 3.14, # The ratio of outgoing mail (from Gmail) that was accepted over secure transport (TLS).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700197 &quot;dkimSuccessRatio&quot;: 3.14, # The ratio of mail that successfully authenticated with DKIM vs. all mail that attempted to authenticate with [DKIM](http://www.dkim.org/). Spoofed mail is excluded.
198 &quot;domainReputation&quot;: &quot;A String&quot;, # Reputation of the domain.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700199 },
200 ],
201 }</pre>
202</div>
203
204<div class="method">
205 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
206 <pre>Retrieves the next page of results.
207
208Args:
209 previous_request: The request for the previous page. (required)
210 previous_response: The response from the request for the previous page. (required)
211
212Returns:
213 A request object that you can call &#x27;execute()&#x27; on to request the next
214 page. Returns None if there are no more items in the collection.
215 </pre>
216</div>
217
218</body></html>