Updating a predictive report

Ops Center Analyzer REST API Reference Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99ANA003-18

You can update the settings of a predictive report.

Execution permission

Admin, Modify

Request line

PUT baseURL/v1/objects/PredictiveReport/{id}

Request body

The structure of the request body and the object attributes are as follows:

PredictiveReport

{
        "name":"...",
        "description":"...",
        "profileIDs":["...", ...],
        "targets":[{
            "nodeType":"...",
            "resourceIDs":["...", ...],
            "withRelated":"..."
        },
        :
        ],
        "withRelated":"...",
        "owner":"...",
        "lastUpdated":,
        "systemDefined":"...",
        "isOndemand":"...",
        "actionIDs":,
        "lastHistoryID":"..."
}

PredictiveReport (Type: PredictiveReport)

Attribute

Type

Description

name

string

Name of the report.

description

string

Description of the report.

profileIDs

string[]

List of profile IDs.

targets

PredictionTargetCond[]

Target condition list.

withRelated

boolean

Whether or not the related resources are included in the targets.

owner

string

Name of the user who created the report.

lastUpdated

datetime

Last updated time.

systemDefined

boolean

Whether or not this report is system defined.

isOndemand

boolean

Whether or not this report was created for an ad hoc execution.

actionIDs

List

Action ID list.

lastHistoryID

string

Latest predictive report result ID.

targets (Type: PredictionTargetCond)

Attribute

Type

Description

nodeType

enum

Node type.

(For details about the valid values, see the table E2ENodeType in List of enumerators.)

resourceIDs

string[]

Resource ID list.

withRelated

boolean

Indicates whether the related resource is the same as the target.

Response body

The structure of the response body and the object attributes is as follows:

PredictiveReport

{
        "name":"...",
        "description":"...",
        "profileIDs":["...", ...],
        "targets":[{
            "nodeType":"...",
            "resourceIDs":["...", ...],
            "withRelated":"..."
        },
        :
        ],
        "withRelated":"...",
        "owner":"...",
        "lastUpdated":,
        "systemDefined":"...",
        "isOndemand":"...",
        "actionIDs":,
        "lastHistoryID":"..."
}

PredictiveReport (Type: PredictiveReport)

Attribute

Type

Description

name

string

Name of the report.

description

string

Description of the report.

profileIDs

string[]

List of profile IDs.

targets

PredictionTargetCond[]

Target condition list.

withRelated

boolean

Whether or not the related resources are included in the targets.

owner

string

Name of the user who created the report.

lastUpdated

datetime

Last updated time.

systemDefined

boolean

Whether or not this report is system defined.

isOndemand

boolean

Whether or not this report was created for an ad hoc execution.

actionIDs

List

Action ID list.

lastHistoryID

string

Latest predictive report result ID.

targets (Type: PredictionTargetCond)

Attribute

Type

Description

nodeType

enum

Node type.

(For details about the valid values, see the table E2ENodeType in List of enumerators.)

resourceIDs

string[]

Resource ID list.

withRelated

boolean

Indicates whether the related resource is the same as the target.

Status codes

Status code

Reason phrase

Description

200

OK

Success.

400

Bad Request

The format of the request body is invalid.

401

Unauthorized

No login privilege.

403

Forbidden

No update privilege.

404

Not Found

The resource was not found.

412

Precondition Failed

The server is not available.

500

Internal Server Error

Server processing error.