azure-arm-insights
Version:
Microsoft Azure Insights Management Client Library for node
65 lines (60 loc) • 1.45 kB
JavaScript
/*
* 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.
*/
;
/**
* @class
* Initializes a new instance of the RetentionPolicy class.
* @constructor
* Specifies the retention policy for the log.
*
* @member {boolean} enabled a value indicating whether the retention policy is
* enabled.
*
* @member {number} days the number of days for the retention in days. A value
* of 0 will retain the events indefinitely.
*
*/
class RetentionPolicy {
constructor() {
}
/**
* Defines the metadata of RetentionPolicy
*
* @returns {object} metadata of RetentionPolicy
*
*/
mapper() {
return {
required: false,
serializedName: 'RetentionPolicy',
type: {
name: 'Composite',
className: 'RetentionPolicy',
modelProperties: {
enabled: {
required: true,
serializedName: 'enabled',
type: {
name: 'Boolean'
}
},
days: {
required: true,
serializedName: 'days',
type: {
name: 'Number'
}
}
}
}
};
}
}
module.exports = RetentionPolicy;