Full name: projects.locations.modelMonitors.searchModelMonitoringStats
Searches Model Monitoring Stats generated within a given time window.
Endpoint
posthttps://{service-endpoint}/v1beta1/{modelMonitor}:searchModelMonitoringStats    
              
            
            Where {service-endpoint} is one of the supported service endpoints.
Path parameters
modelMonitorstring
                  
                Required. ModelMonitor resource name. Format: projects/{project}/locations/{location}/modelMonitors/{modelMonitor}
Request body
The request body contains data with the following structure:
Filter for search different stats.
The time interval for which results should be returned.
pageSizeinteger
                    
                  The standard list page size.
pageTokenstring
                    
                  A page token received from a previous ModelMonitoringService.SearchModelMonitoringStats call.
Response body
Response message for ModelMonitoringService.SearchModelMonitoringStats.
If successful, the response body contains data with the following structure:
Stats retrieved for requested objectives.
nextPageTokenstring
                    
                  The page token that can be used by the next ModelMonitoringService.SearchModelMonitoringStats call.
| JSON representation | 
|---|
| {
  "monitoringStats": [
    {
      object ( | 
SearchModelMonitoringStatsFilter
Filter for searching ModelMonitoringStats.
filterUnion type
                    
                  filter can be only one of the following:Tabular statistics filter.
| JSON representation | 
|---|
| {
  // filter
  "tabularStatsFilter": {
    object ( | 
TabularStatsFilter
Tabular statistics filter.
statsNamestring
                    
                  If not specified, will return all the stats_names.
objectiveTypestring
                    
                  One of the supported monitoring objectives: raw-feature-drift prediction-output-drift feature-attribution
modelMonitoringJobstring
                    
                  From a particular monitoring job.
modelMonitoringSchedulestring
                    
                  From a particular monitoring schedule.
algorithmstring
                    
                  Specify the algorithm type used for distance calculation, eg: jensen_shannon_divergence, l_infinity.
| JSON representation | 
|---|
| { "statsName": string, "objectiveType": string, "modelMonitoringJob": string, "modelMonitoringSchedule": string, "algorithm": string } | 
ModelMonitoringStats
Represents the collection of statistics for a metric.
statsUnion type
                    
                  stats can be only one of the following:Generated tabular statistics.
| JSON representation | 
|---|
| {
  // stats
  "tabularStats": {
    object ( | 
ModelMonitoringTabularStats
A collection of data points that describes the time-varying values of a tabular metric.
statsNamestring
                    
                  The stats name.
objectiveTypestring
                    
                  One of the supported monitoring objectives: raw-feature-drift prediction-output-drift feature-attribution
The data points of this time series. When listing time series, points are returned in reverse time order.
| JSON representation | 
|---|
| {
  "statsName": string,
  "objectiveType": string,
  "dataPoints": [
    {
      object ( | 
ModelMonitoringStatsDataPoint
Represents a single statistics data point.
Statistics from current dataset.
Statistics from baseline dataset.
thresholdValuenumber
                    
                  Threshold value.
hasAnomalyboolean
                    
                  Indicate if the statistics has anomaly.
modelMonitoringJobstring
                    
                  Model monitoring job resource name.
schedulestring
                    
                  Schedule resource name.
Statistics create time.
Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
algorithmstring
                    
                  algorithm used to calculated the metrics, eg: jensen_shannon_divergence, l_infinity.
| JSON representation | 
|---|
| { "currentStats": { object ( | 
TypedValue
Typed value of the statistics.
valueUnion type
                    
                  value can be only one of the following:doubleValuenumber
                          
                        Double.
Distribution.
| JSON representation | 
|---|
| {
  // value
  "doubleValue": number,
  "distributionValue": {
    object ( | 
DistributionDataValue
Summary statistics for a population of values.
Predictive monitoring drift distribution in tensorflow.metadata.v0.DatasetFeatureStatistics format.
distributionDeviationnumber
                    
                  Distribution distance deviation from the current dataset's statistics to baseline dataset's statistics. * For categorical feature, the distribution distance is calculated by L-inifinity norm or Jensen–Shannon divergence. * For numerical feature, the distribution distance is calculated by Jensen–Shannon divergence.
| JSON representation | 
|---|
| { "distribution": value, "distributionDeviation": number } |