Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR monitor/resource-manager] [Hub Generated] Review request for Microsoft.Insights to add version 2018-11-27-preview #4508

Merged
merged 2 commits into from
Jan 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/services/monitorManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
59 changes: 59 additions & 0 deletions lib/services/monitorManagement/lib/models/dataContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Information about a container with data for a given resource.
*
*/
class DataContainer {
/**
* Create a DataContainer.
* @property {object} workspace Log Analytics workspace information.
* @property {string} [workspace.id] Azure Resource Manager identifier of the
* Log Analytics Workspace.
* @property {string} [workspace.location] Location of the Log Analytics
* workspace.
* @property {string} [workspace.customerId] Log Analytics workspace
* identifier.
*/
constructor() {
}

/**
* Defines the metadata of DataContainer
*
* @returns {object} metadata of DataContainer
*
*/
mapper() {
return {
required: false,
serializedName: 'DataContainer',
type: {
name: 'Composite',
className: 'DataContainer',
modelProperties: {
workspace: {
required: true,
serializedName: 'workspace',
type: {
name: 'Composite',
className: 'WorkspaceInfo'
}
}
}
}
};
}
}

module.exports = DataContainer;
60 changes: 60 additions & 0 deletions lib/services/monitorManagement/lib/models/errorModel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Error details.
*
*/
class ErrorModel {
/**
* Create a ErrorModel.
* @property {string} code Error code identifying the specific error.
* @property {string} [message] Error message in the caller's locale.
*/
constructor() {
}

/**
* Defines the metadata of ErrorModel
*
* @returns {object} metadata of ErrorModel
*
*/
mapper() {
return {
required: false,
serializedName: 'Error',
type: {
name: 'Composite',
className: 'ErrorModel',
modelProperties: {
code: {
required: true,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ErrorModel;
97 changes: 97 additions & 0 deletions lib/services/monitorManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2372,6 +2372,103 @@ export interface MetricNamespace {
properties?: MetricNamespaceName;
}

/**
* An azure resource object
*/
export interface ProxyResource extends BaseResource {
/**
* Azure resource Id
*/
readonly id?: string;
/**
* Azure resource name
*/
readonly name?: string;
/**
* Azure resource type
*/
readonly type?: string;
}

/**
* Error details.
*/
export interface ErrorModel {
/**
* Error code identifying the specific error.
*/
code: string;
/**
* Error message in the caller's locale.
*/
message?: string;
}

/**
* An error response from the API.
*/
export interface ResponseWithError {
/**
* Error information.
*/
error: ErrorModel;
}

/**
* Information about a Log Analytics Workspace.
*/
export interface WorkspaceInfo {
/**
* Azure Resource Manager identifier of the Log Analytics Workspace.
*/
id: string;
/**
* Location of the Log Analytics workspace.
*/
location: string;
/**
* Log Analytics workspace identifier.
*/
customerId: string;
}

/**
* Information about a container with data for a given resource.
*/
export interface DataContainer {
/**
* Log Analytics workspace information.
*/
workspace: WorkspaceInfo;
}

/**
* VM Insights onboarding status for a resource.
*/
export interface VMInsightsOnboardingStatus extends ProxyResource {
/**
* Azure Resource Manager identifier of the resource whose onboarding status is being
* represented.
*/
resourceId: string;
/**
* The onboarding status for the resource. Note that, a higher level scope, e.g., resource group
* or subscription, is considered onboarded if at least one resource under it is onboarded.
* Possible values include: 'onboarded', 'notOnboarded', 'unknown'
*/
onboardingStatus: string;
/**
* The status of VM Insights data from the resource. When reported as `present` the data array
* will contain information about the data containers to which data for the specified resource is
* being routed. Possible values include: 'present', 'notPresent'
*/
dataStatus: string;
/**
* Containers that currently store VM Insights data for the specified resource.
*/
data?: DataContainer[];
}

/**
* Represents a collection of autoscale setting resources.
*/
Expand Down
6 changes: 6 additions & 0 deletions lib/services/monitorManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ exports.Criteria = require('./criteria');
exports.LogToMetricAction = require('./logToMetricAction');
exports.MetricNamespaceName = require('./metricNamespaceName');
exports.MetricNamespace = require('./metricNamespace');
exports.ProxyResource = require('./proxyResource');
exports.ErrorModel = require('./errorModel');
exports.ResponseWithError = require('./responseWithError');
exports.WorkspaceInfo = require('./workspaceInfo');
exports.DataContainer = require('./dataContainer');
exports.VMInsightsOnboardingStatus = require('./vMInsightsOnboardingStatus');
exports.AutoscaleSettingResourceCollection = require('./autoscaleSettingResourceCollection');
exports.IncidentListResult = require('./incidentListResult');
exports.AlertRuleResourceCollection = require('./alertRuleResourceCollection');
Expand Down
75 changes: 75 additions & 0 deletions lib/services/monitorManagement/lib/models/proxyResource.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* An azure resource object
*
* @extends models['BaseResource']
*/
class ProxyResource extends models['BaseResource'] {
/**
* Create a ProxyResource.
* @property {string} [id] Azure resource Id
* @property {string} [name] Azure resource name
* @property {string} [type] Azure resource type
*/
constructor() {
super();
}

/**
* Defines the metadata of ProxyResource
*
* @returns {object} metadata of ProxyResource
*
*/
mapper() {
return {
required: false,
serializedName: 'ProxyResource',
type: {
name: 'Composite',
className: 'ProxyResource',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ProxyResource;
55 changes: 55 additions & 0 deletions lib/services/monitorManagement/lib/models/responseWithError.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* An error response from the API.
*
*/
class ResponseWithError {
/**
* Create a ResponseWithError.
* @property {object} error Error information.
* @property {string} [error.code] Error code identifying the specific error.
* @property {string} [error.message] Error message in the caller's locale.
*/
constructor() {
}

/**
* Defines the metadata of ResponseWithError
*
* @returns {object} metadata of ResponseWithError
*
*/
mapper() {
return {
required: false,
serializedName: 'ResponseWithError',
type: {
name: 'Composite',
className: 'ResponseWithError',
modelProperties: {
error: {
required: true,
serializedName: 'error',
type: {
name: 'Composite',
className: 'ErrorModel'
}
}
}
}
};
}
}

module.exports = ResponseWithError;
Loading