Class DeviceHealthScriptRunSummary

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class DeviceHealthScriptRunSummary
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties for the run summary of a device management script.”
    • Field Detail

      • detectionScriptErrorDeviceCount

        protected Integer detectionScriptErrorDeviceCount
      • detectionScriptNotApplicableDeviceCount

        protected Integer detectionScriptNotApplicableDeviceCount
      • detectionScriptPendingDeviceCount

        protected Integer detectionScriptPendingDeviceCount
      • issueDetectedDeviceCount

        protected Integer issueDetectedDeviceCount
      • issueRemediatedCumulativeDeviceCount

        protected Integer issueRemediatedCumulativeDeviceCount
      • issueRemediatedDeviceCount

        protected Integer issueRemediatedDeviceCount
      • issueReoccurredDeviceCount

        protected Integer issueReoccurredDeviceCount
      • lastScriptRunDateTime

        protected OffsetDateTime lastScriptRunDateTime
      • noIssueDetectedDeviceCount

        protected Integer noIssueDetectedDeviceCount
      • remediationScriptErrorDeviceCount

        protected Integer remediationScriptErrorDeviceCount
      • remediationSkippedDeviceCount

        protected Integer remediationSkippedDeviceCount
    • Constructor Detail

      • DeviceHealthScriptRunSummary

        protected DeviceHealthScriptRunSummary()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderDeviceHealthScriptRunSummary

        public static DeviceHealthScriptRunSummary.Builder builderDeviceHealthScriptRunSummary()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getDetectionScriptErrorDeviceCount

        public Optional<Integer> getDetectionScriptErrorDeviceCount()
        “Number of devices on which the detection script execution encountered an error and did not complete”
        Returns:
        property detectionScriptErrorDeviceCount
      • withDetectionScriptErrorDeviceCount

        public DeviceHealthScriptRunSummary withDetectionScriptErrorDeviceCount​(Integer detectionScriptErrorDeviceCount)
        Returns an immutable copy of this with just the detectionScriptErrorDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices on which the detection script execution encountered an error and did not complete”

        Parameters:
        detectionScriptErrorDeviceCount - new value of detectionScriptErrorDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the detectionScriptErrorDeviceCount field changed
      • getDetectionScriptNotApplicableDeviceCount

        public Optional<Integer> getDetectionScriptNotApplicableDeviceCount()
        “Number of devices for which the detection script was not applicable”
        Returns:
        property detectionScriptNotApplicableDeviceCount
      • withDetectionScriptNotApplicableDeviceCount

        public DeviceHealthScriptRunSummary withDetectionScriptNotApplicableDeviceCount​(Integer detectionScriptNotApplicableDeviceCount)
        Returns an immutable copy of this with just the detectionScriptNotApplicableDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices for which the detection script was not applicable”

        Parameters:
        detectionScriptNotApplicableDeviceCount - new value of detectionScriptNotApplicableDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the detectionScriptNotApplicableDeviceCount field changed
      • getDetectionScriptPendingDeviceCount

        public Optional<Integer> getDetectionScriptPendingDeviceCount()
        “Number of devices which have not yet run the latest version of the device health script”
        Returns:
        property detectionScriptPendingDeviceCount
      • withDetectionScriptPendingDeviceCount

        public DeviceHealthScriptRunSummary withDetectionScriptPendingDeviceCount​(Integer detectionScriptPendingDeviceCount)
        Returns an immutable copy of this with just the detectionScriptPendingDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices which have not yet run the latest version of the device health script”

        Parameters:
        detectionScriptPendingDeviceCount - new value of detectionScriptPendingDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the detectionScriptPendingDeviceCount field changed
      • getIssueDetectedDeviceCount

        public Optional<Integer> getIssueDetectedDeviceCount()
        “Number of devices for which the detection script found an issue”
        Returns:
        property issueDetectedDeviceCount
      • withIssueDetectedDeviceCount

        public DeviceHealthScriptRunSummary withIssueDetectedDeviceCount​(Integer issueDetectedDeviceCount)
        Returns an immutable copy of this with just the issueDetectedDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices for which the detection script found an issue”

        Parameters:
        issueDetectedDeviceCount - new value of issueDetectedDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the issueDetectedDeviceCount field changed
      • getIssueRemediatedCumulativeDeviceCount

        public Optional<Integer> getIssueRemediatedCumulativeDeviceCount()
        “Number of devices that were remediated over the last 30 days”
        Returns:
        property issueRemediatedCumulativeDeviceCount
      • withIssueRemediatedCumulativeDeviceCount

        public DeviceHealthScriptRunSummary withIssueRemediatedCumulativeDeviceCount​(Integer issueRemediatedCumulativeDeviceCount)
        Returns an immutable copy of this with just the issueRemediatedCumulativeDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices that were remediated over the last 30 days”

        Parameters:
        issueRemediatedCumulativeDeviceCount - new value of issueRemediatedCumulativeDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the issueRemediatedCumulativeDeviceCount field changed
      • getIssueRemediatedDeviceCount

        public Optional<Integer> getIssueRemediatedDeviceCount()
        “Number of devices for which the remediation script was able to resolve the detected issue”
        Returns:
        property issueRemediatedDeviceCount
      • withIssueRemediatedDeviceCount

        public DeviceHealthScriptRunSummary withIssueRemediatedDeviceCount​(Integer issueRemediatedDeviceCount)
        Returns an immutable copy of this with just the issueRemediatedDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices for which the remediation script was able to resolve the detected issue”

        Parameters:
        issueRemediatedDeviceCount - new value of issueRemediatedDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the issueRemediatedDeviceCount field changed
      • getIssueReoccurredDeviceCount

        public Optional<Integer> getIssueReoccurredDeviceCount()
        “Number of devices for which the remediation script executed successfully but failed to resolve the detected issue”
        Returns:
        property issueReoccurredDeviceCount
      • withIssueReoccurredDeviceCount

        public DeviceHealthScriptRunSummary withIssueReoccurredDeviceCount​(Integer issueReoccurredDeviceCount)
        Returns an immutable copy of this with just the issueReoccurredDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices for which the remediation script executed successfully but failed to resolve the detected issue”

        Parameters:
        issueReoccurredDeviceCount - new value of issueReoccurredDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the issueReoccurredDeviceCount field changed
      • getLastScriptRunDateTime

        public Optional<OffsetDateTime> getLastScriptRunDateTime()
        “Last run time for the script across all devices”
        Returns:
        property lastScriptRunDateTime
      • withLastScriptRunDateTime

        public DeviceHealthScriptRunSummary withLastScriptRunDateTime​(OffsetDateTime lastScriptRunDateTime)
        Returns an immutable copy of this with just the lastScriptRunDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Last run time for the script across all devices”

        Parameters:
        lastScriptRunDateTime - new value of lastScriptRunDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastScriptRunDateTime field changed
      • getNoIssueDetectedDeviceCount

        public Optional<Integer> getNoIssueDetectedDeviceCount()
        “Number of devices for which the detection script did not find an issue and the device is healthy”
        Returns:
        property noIssueDetectedDeviceCount
      • withNoIssueDetectedDeviceCount

        public DeviceHealthScriptRunSummary withNoIssueDetectedDeviceCount​(Integer noIssueDetectedDeviceCount)
        Returns an immutable copy of this with just the noIssueDetectedDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices for which the detection script did not find an issue and the device is healthy”

        Parameters:
        noIssueDetectedDeviceCount - new value of noIssueDetectedDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the noIssueDetectedDeviceCount field changed
      • getRemediationScriptErrorDeviceCount

        public Optional<Integer> getRemediationScriptErrorDeviceCount()
        “Number of devices for which the remediation script execution encountered an error and did not complete”
        Returns:
        property remediationScriptErrorDeviceCount
      • withRemediationScriptErrorDeviceCount

        public DeviceHealthScriptRunSummary withRemediationScriptErrorDeviceCount​(Integer remediationScriptErrorDeviceCount)
        Returns an immutable copy of this with just the remediationScriptErrorDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices for which the remediation script execution encountered an error and did not complete”

        Parameters:
        remediationScriptErrorDeviceCount - new value of remediationScriptErrorDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the remediationScriptErrorDeviceCount field changed
      • getRemediationSkippedDeviceCount

        public Optional<Integer> getRemediationSkippedDeviceCount()
        “Number of devices for which remediation was skipped”
        Returns:
        property remediationSkippedDeviceCount
      • withRemediationSkippedDeviceCount

        public DeviceHealthScriptRunSummary withRemediationSkippedDeviceCount​(Integer remediationSkippedDeviceCount)
        Returns an immutable copy of this with just the remediationSkippedDeviceCount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Number of devices for which remediation was skipped”

        Parameters:
        remediationSkippedDeviceCount - new value of remediationSkippedDeviceCount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the remediationSkippedDeviceCount field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public DeviceHealthScriptRunSummary patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public DeviceHealthScriptRunSummary put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected