Google Search Appliance Administrative API Developers Gui Manual de usuario Pagina 42

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 55
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 41
Google Search Appliance: Administrative API Developer’s Guide: .NET 42
Listing a Search Report
List search report entries by sending an authenticated
GET
request to the
root
entry of the
searchReport
feed. Query parameter:
A list of search report entries returns:
GsaFeed myFeed = myService.GetFeed("searchReport");
foreach(GsaEntry entry in myFeed.Entries) {
Console.WriteLine("Entry Name: " + entry.GetGsaContent("entryID"));
Console.WriteLine("Report State: " + entry.GetGsaContent("reportState"));
Console.WriteLine("Report Creation Date: " +
entry.GetGsaContent("reportCreationDate"));
Console.WriteLine("Report Date: " + entry.GetGsaContent("reportDate"));
Console.WriteLine("Is Final: " + entry.GetGsaContent("isFinal"));
Console.WriteLine("With Results: " + entry.GetGsaContent("withResults"));
Console.WriteLine("Top Count: " + entry.GetGsaContent("topCount"));
Console.WriteLine("Diagnostic Terms: " +
entry.GetGsaContent("diagnosticTerms"));
}
Creating a Search Report
Create a new search report entry by sending an authenticated
POST
request to the
root
entry of the
searchReport
feed.
The possible date formats for reports are as follows.
reportState
(Read only) The status of a search report:
0
: The search report is initializing.
1
: The search report is generating.
2
: The search report is complete.
3
: A non-final complete report is generating.
4
: The last report generation failed.
topCount
The number of top queries to generate.
withResults
Indicates if a query should only count searches that have results. The
default value is
false
.
Parameter Description
collectionName
Collection Name of search report. The default value is
all.collections
.
Purpose Format
Date
date_month_day_year
Month
month_month_year
Property Description
Vista de pagina 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 54 55

Comentarios a estos manuales

Sin comentarios