Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9006

Support projection on ServerStatus sections, and defaulting exclusion

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible

      Description

      Extend support for full projection for each ServerStatus section.

      And allow toggling the default inclusion state via "$default" or "$excludeByDefault".

      > db.serverStatus({$default:0, mem:1, metrics:{record:1, "ttl.passes":1}})
      {
      	"host" : "pans.local",
      	"version" : "2.5.0-pre-",
      	"process" : "mongod",
      	"pid" : 20578,
      	"uptime" : 400,
      	"uptimeMillis" : NumberLong(399493),
      	"uptimeEstimate" : 369,
      	"localTime" : ISODate("2013-03-18T00:12:07.147Z"),
      	"mem" : {
      		"bits" : 64,
      		"resident" : 39,
      		"virtual" : 2727,
      		"supported" : true,
      		"mapped" : 272
      	},
      	"metrics" : {
      		"record" : {
      			"moves" : NumberLong(0)
      		},
      		"ttl" : {
      			"passes" : NumberLong(6)
      		}
      	},
      	"ok" : 1
      }

        Attachments

          Activity

            People

            Assignee:
            backlog-server-query Backlog - Query Team
            Reporter:
            scotthernandez Scott Hernandez
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: